1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/t/mcs7524_view_sp.test
2022-12-09 02:24:40 +00:00

41 lines
881 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);
--disable_warnings
drop procedure sp_simple_select;
drop procedure sp_simple_variable;
drop view v_temp;
--enable_warnings
#