1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-30 14:21:11 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/t/mcs7524_view_sp.test
Daniel Lee 4c9d6e39ac Dlee mtr restructure (#2494)
* Restructured test suites and added autopilot and extended suites

* Updated autopilot with correct branch - develop

* Moved setup test case to a 'setup' directory, for consistency

* Fixed a path issue

* Updated some tests cases to keep up with development

Co-authored-by: root <root@rocky8.localdomain>
2022-08-09 21:20:56 +03:00

36 lines
835 B
Plaintext

#
# Test case migrated from regression test suite:
# queries/working_tpch1/view/view_sp.sql
#
# Author: Susil, susil.behera@mariadb.com
#
-- source ../include/have_columnstore.inc
USE tpch1;
# VIEW used by Stored Procedure
create or replace view v_temp as select * from part where p_partkey<10;
DELIMITER $$;
drop procedure if exists sp_simple_select;
Create Procedure sp_simple_select( )
begin
select * from v_temp where p_partkey < 5;
end $$
# Simple SP with 1 arg
drop procedure if exists sp_simple_variable;
Create Procedure sp_simple_variable(in arg_key int)
begin
select * from v_temp where p_partkey <= arg_key;
end $$
DELIMITER ;$$
call sp_simple_select;
call sp_simple_variable(2);
drop procedure sp_simple_select;
drop procedure sp_simple_variable;
drop view v_temp;