1 # suite/funcs_1/t/storedproc.test
3 # Check general properties of stored procedures.
6 # 2008-08-27 mleich - Fix Bug#37744 Expected result of "<engine>_storedproc"
8 # - remove variation of storage engines
9 # - restore global sort_buffer_size after some subtest
11 ############################################################################
13 # Bug#37746 - Arithmetic range ("int") is smaller than expected
14 # This code is in place to ensure this test is only skipped
15 # for the Win64 platform
16 if(`SELECT CONVERT(@@version_compile_os using latin1) IN ("Win64")`)
18 --skip Bug#37746 2009-07-07 pcrews Arithmetic range ("int") is smaller than expected
24 # This test cannot be used for the embedded server because we check here
26 --source include/not_embedded.inc
28 # It is assumed that the storage engine used for some tables has no impact on
29 # the outcome of this test. Therefor we use simply the fastest engine.
30 let $engine_type= memory;
32 --source suite/funcs_1/storedproc/load_sp_tb.inc
35 # ==============================================================================
38 Section 3.1.1 - Syntax checks for the CREATE PROCEDURE, CREATE
39 FUNCTION, ALTER PROCEDURE, ALTER FUNCTION, DROP PROCEDURE, DROP FUNCTION, SHOW
40 CREATE PROCEDURE, SHOW CREATE FUNCTION, SHOW CREATE PROCEDURE STATUS, SHOW
41 CREATE FUNCTION STATUS, and CALL statements:;
42 echo --------------------------------------------------------------------------------;
45 # ------------------------------------------------------------------------------
50 Ensure that all clauses that should be supported are supported
52 echo --------------------------------------------------------------------------------;
57 --error ER_TOO_LONG_IDENT
58 DROP PROCEDURE IF EXISTS sp1_thisisaveryverylongname234872934_thisisaveryverylongname234872934;
61 --error ER_TOO_LONG_IDENT
62 CREATE PROCEDURE sp1_thisisaveryverylongname234872934_thisisaveryverylongname234872934 (f1 char(20) )
63 SELECT * from t1 where f2 = f1;
64 --error ER_TOO_LONG_IDENT
65 CALL sp1_thisisaveryverylongname234872934_thisisaveryverylongname234872934('aaaa');
68 --error ER_TOO_LONG_IDENT
69 DROP PROCEDURE IF EXISTS sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcde;
73 --error ER_TOO_LONG_IDENT
74 CREATE PROCEDURE sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcde( f1 TINYTEXT )
75 LANGUAGE SQL DETERMINISTIC SQL SECURITY DEFINER COMMENT 'this is simple'
82 --error ER_TOO_LONG_IDENT
83 CALL sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcde( 'abc' );
85 --replace_column 5 <modified> 6 <created>
86 SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
89 DROP PROCEDURE IF EXISTS sp1;
93 CREATE PROCEDURE sp1( f1 BINARY )
94 LANGUAGE SQL DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
103 --replace_column 5 <modified> 6 <created>
104 SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
107 DROP PROCEDURE IF EXISTS sp1;
111 CREATE PROCEDURE sp1( f1 BLOB )
112 LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
121 --replace_column 5 <modified> 6 <created>
122 SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
125 DROP PROCEDURE IF EXISTS sp1;
129 CREATE PROCEDURE sp1( f1 INT )
130 LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
139 --replace_column 5 <modified> 6 <created>
140 SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
143 DROP PROCEDURE IF EXISTS sp1;
147 --error ER_TOO_BIG_PRECISION
148 CREATE PROCEDURE sp1( f1 DECIMAL(256, 30) )
149 LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
154 DROP PROCEDURE IF EXISTS sp1//
156 --error ER_TOO_BIG_PRECISION
157 CREATE PROCEDURE sp1( f1 DECIMAL(66, 30) )
158 LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
163 DROP PROCEDURE IF EXISTS sp1//
167 # Check assignment of float values to DECIMAL(65, 30) parameters of
168 # PRODDUREs and FUNCTIONs.
169 ###########################################################################
170 # - The assignment of float values causes that conversions with OS/compiler
171 # specific math libraries are involved.
172 # --> The content depends on the testing box and simple printing
173 # of content will often lead to differences.
174 # - We have the same conversions when assigning float values to columns
176 # --> Reveal that we have a consistent behaviour per testing box.
178 # Checks that floating point values assigned to objects of type DECIMAL
179 # end up with correct DECIMAL values (truncated to a border of the DECIMAL
180 # value range or reasonable nearby the floating point value) must be done
182 ###########################################################################
184 DROP TABLE IF EXISTS t1_aux;
185 DROP PROCEDURE IF EXISTS sproc_1;
186 DROP FUNCTION IF EXISTS func_1;
188 CREATE TABLE t1_aux ( f1 DECIMAL(65, 30) );
189 INSERT INTO t1_aux SET f1 = NULL;
191 CREATE PROCEDURE sproc_1(f1 DECIMAL(65, 30), OUT f2 DECIMAL(65, 30))
192 LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
198 CREATE FUNCTION func_1(f1 DECIMAL(65, 30)) RETURNS DECIMAL(65,30)
199 LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
204 --replace_column 5 <modified> 6 <created>
205 SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
206 --replace_column 5 <modified> 6 <created>
207 SHOW FUNCTION STATUS WHERE db = 'db_storedproc';
209 let $test_value = 1.7976931348623157493578e+308;
210 --source suite/funcs_1/storedproc/param_check.inc
217 let $test_value = 0.1234567890987654321e+$digits;
218 --source suite/funcs_1/storedproc/param_check.inc
219 let $run = `SELECT $digits > 0`;
230 let $test_value = 0.1234567890987654321e-$digits;
231 --source suite/funcs_1/storedproc/param_check.inc
232 let $run = `SELECT $digits > 0`;
240 DROP PROCEDURE sproc_1;
241 DROP FUNCTION func_1;
245 DROP PROCEDURE IF EXISTS sp1;
249 CREATE PROCEDURE sp1( f1 ENUM("value1", "value1") )
250 LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
256 CALL sp1( "value1" );
258 --replace_column 5 <modified> 6 <created>
259 SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
262 DROP PROCEDURE IF EXISTS sp1;
266 CREATE PROCEDURE sp1( f1 SET("value1", "value1") )
267 LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
273 CALL sp1( "value1, value1" );
275 --replace_column 5 <modified> 6 <created>
276 SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
279 DROP PROCEDURE IF EXISTS sp1;
283 CREATE PROCEDURE sp1( f1 ENUM("value1", "value1") )
284 LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
290 CALL sp1( "value1" );
292 --replace_column 5 <modified> 6 <created>
293 SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
296 DROP PROCEDURE IF EXISTS sp1;
299 CREATE PROCEDURE sp1( f1 TEXT ) LANGUAGE SQL SELECT f1;
303 --replace_column 5 <modified> 6 <created>
304 SHOW PROCEDURE STATUS LIKE 'sp1';
307 DROP PROCEDURE IF EXISTS sp1;
310 CREATE PROCEDURE sp1( f1 text ) deterministic SELECT f1;
313 --replace_column 5 <modified> 6 <created>
314 SHOW PROCEDURE STATUS LIKE 'sp1';
317 DROP PROCEDURE IF EXISTS sp1;
320 CREATE PROCEDURE sp1( f1 TEXT ) NOT DETERMINISTIC SELECT f1;
323 --replace_column 5 <modified> 6 <created>
324 SHOW PROCEDURE STATUS LIKE 'sp1';
327 DROP PROCEDURE IF EXISTS sp1;
330 CREATE PROCEDURE sp1( f1 TEXT ) SQL SECURITY DEFINER SELECT f1;
333 --replace_column 5 <modified> 6 <created>
334 SHOW PROCEDURE STATUS LIKE 'sp1';
337 DROP PROCEDURE IF EXISTS sp1;
340 CREATE PROCEDURE sp1( f1 TEXT ) SQL SECURITY INVOKER SELECT f1;
343 --replace_column 5 <modified> 6 <created>
344 SHOW PROCEDURE STATUS LIKE 'sp1';
347 DROP PROCEDURE IF EXISTS sp1;
350 CREATE PROCEDURE sp1( f1 TEXT ) COMMENT 'this is simple' SELECT f1;
353 --replace_column 5 <modified> 6 <created>
354 SHOW PROCEDURE STATUS LIKE 'sp1';
357 DROP PROCEDURE sp1_thisisaveryverylongname234872934_thisisaveryverylongname234872934;
358 DROP PROCEDURE sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcde;
361 # ------------------------------------------------------------------------------
362 let $message= Testcase 4.1.2:
364 Ensure that all clauses that should be supported are supported
366 --source include/show_msg80.inc
370 DROP FUNCTION IF EXISTS fn1;
373 CREATE FUNCTION fn1 (s CHAR(20)) RETURNS CHAR(50)
374 RETURN CONCAT('hello, ', s, '!');
378 DROP FUNCTION IF EXISTS fn1;
382 CREATE FUNCTION fn1( f1 MEDIUMTEXT ) RETURNS MEDIUMTEXT
383 LANGUAGE SQL DETERMINISTIC SQL SECURITY DEFINER COMMENT 'this is simple'
386 SET f1 = CONCAT( @v1, f1 );
391 SELECT fn1( ' world');
393 --replace_column 5 <modified> 6 <created>
394 SHOW FUNCTION STATUS LIKE 'fn1';
397 DROP FUNCTION IF EXISTS fn1;
401 CREATE FUNCTION fn1( f1 SMALLINT ) RETURNS SMALLINT
402 LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
411 --replace_column 5 <modified> 6 <created>
412 SHOW FUNCTION STATUS LIKE 'fn1';
415 DROP FUNCTION IF EXISTS fn1;
419 # 1425: Too big scale 63 specified for column ''. Maximum is 30.
420 --error ER_TOO_BIG_SCALE
421 CREATE FUNCTION fn1( f1 DECIMAL(63, 31) ) RETURNS DECIMAL(63, 31)
422 LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
424 SET f1 = 1000000 + f1;
429 --error ER_SP_DOES_NOT_EXIST
430 SELECT fn1( 1.3326e+8 );
433 CREATE FUNCTION fn1( f1 DECIMAL(63, 30) ) RETURNS DECIMAL(63, 30)
434 LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
436 SET f1 = 1000000 + f1;
441 SELECT fn1( 1.3326e+8 );
443 --replace_column 5 <modified> 6 <created>
444 SHOW FUNCTION STATUS LIKE 'fn1';
447 DROP FUNCTION IF EXISTS fn1;
451 CREATE FUNCTION fn1( f1 ENUM("value1", "value1") ) RETURNS DECIMAL(63, 30)
452 LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
458 # warnings for this select disabled due to diffs with/without --ps-protocol:
459 # without ps-protocol the following warning is shown:
460 # +Note 1291 Column '' has duplicated value 'value1' in SET
461 # +Warning 1265 Data truncated for column 'f1' at row 1
462 # Reported as BUG#33396
464 SELECT fn1( "value1" );
467 --replace_column 5 <modified> 6 <created>
468 SHOW FUNCTION STATUS LIKE 'fn1';
471 DROP FUNCTION IF EXISTS fn1;
475 CREATE FUNCTION fn1( f1 SET("value1", "value1") ) RETURNS DECIMAL(63, 30)
476 LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
482 # warnings for this select disabled due to diffs with/without --ps-protocol:
483 # without ps-protocol the following warning is shown:
484 # +Note 1291 Column '' has duplicated value 'value1' in SET
485 # +Warning 1265 Data truncated for column 'f1' at row 1
486 # Reported as BUG#33396
488 SELECT fn1( "value1, value1" );
491 --replace_column 5 <modified> 6 <created>
492 SHOW FUNCTION STATUS LIKE 'fn1';
495 DROP FUNCTION IF EXISTS fn1;
499 CREATE FUNCTION fn1( f1 SMALLINT ) RETURNS SMALLINT LANGUAGE SQL
508 --replace_column 5 <modified> 6 <created>
509 SHOW FUNCTION STATUS LIKE 'fn1';
512 DROP FUNCTION IF EXISTS fn1;
516 CREATE FUNCTION fn1( f1 SMALLINT ) RETURNS SMALLINT DETERMINISTIC
525 --replace_column 5 <modified> 6 <created>
526 SHOW FUNCTION STATUS LIKE 'fn1';
529 DROP FUNCTION IF EXISTS fn1;
533 CREATE FUNCTION fn1( f1 SMALLINT ) RETURNS SMALLINT NOT DETERMINISTIC
542 --replace_column 5 <modified> 6 <created>
543 SHOW FUNCTION STATUS LIKE 'fn1';
546 DROP FUNCTION IF EXISTS fn1;
550 CREATE FUNCTION fn1( f1 SMALLINT ) RETURNS SMALLINT SQL SECURITY DEFINER
559 --replace_column 5 <modified> 6 <created>
560 SHOW FUNCTION STATUS LIKE 'fn1';
563 DROP FUNCTION IF EXISTS fn1;
567 CREATE FUNCTION fn1( f1 SMALLINT ) RETURNS SMALLINT SQL SECURITY INVOKER
576 --replace_column 5 <modified> 6 <created>
577 SHOW FUNCTION STATUS LIKE 'fn1';
580 DROP FUNCTION IF EXISTS fn1;
584 CREATE FUNCTION fn1( f1 SMALLINT ) RETURNS SMALLINT COMMENT 'this is simple'
593 --replace_column 5 <modified> 6 <created>
594 SHOW FUNCTION STATUS LIKE 'fn1';
599 # ------------------------------------------------------------------------------
600 let $message= Testcase 4.1.3:
602 Ensure that all clauses that should be supported are supported
604 --source include/show_msg80.inc
607 DROP PROCEDURE IF EXISTS sp1;
610 CREATE PROCEDURE sp1 (f1 char(20) )
611 SELECT * from t1 where f2 = f1;
613 --replace_column 5 <modified> 6 <created>
614 show CREATE PROCEDURE sp1;
619 # ------------------------------------------------------------------------------
620 let $message= Testcase 4.1.4:
622 show create function;
623 --source include/show_msg80.inc
626 DROP FUNCTION IF EXISTS fn1;
629 CREATE FUNCTION fn1 (s char(20)) returns char(50)
630 return concat('hello, ', s, '!');
632 --replace_column 5 <modified> 6 <created>
633 show CREATE FUNCTION fn1;
638 # ------------------------------------------------------------------------------
639 let $message= Testcase 4.1.5:
641 SHOW PROCEDURE status;
642 --source include/show_msg80.inc
645 CREATE PROCEDURE sp5()
648 --replace_column 5 <modified> 6 <created>
649 SHOW PROCEDURE status like 'sp5';
654 # ------------------------------------------------------------------------------
655 let $message= Testcase 4.1.6:
657 show function status;
658 --source include/show_msg80.inc
662 CREATE FUNCTION fn5(a int) returns int
669 --replace_column 5 <modified> 6 <created>
670 SHOW FUNCTION STATUS LIKE 'fn5';
675 # ------------------------------------------------------------------------------
676 let $message= Testcase 4.1.7:
679 --source include/show_msg80.inc
682 DROP PROCEDURE IF EXISTS sp7a;
683 DROP PROCEDURE IF EXISTS sp7b;
684 DROP PROCEDURE IF EXISTS sp7c;
687 CREATE PROCEDURE sp7a(a char(20))
688 SELECT * from t1 where t1.f2 = a;
692 CREATE PROCEDURE sp7b (a char (20), out b char(20))
693 SELECT f1 into b from t1 where t1.f2= a;
695 CALL sp7b('xyz', @out_param);
699 CREATE PROCEDURE sp7c (a char (20), out b char(20), inout c int)
701 SELECT f1 into b from t1 where t1.f2=a;
702 update t1 set t1.f2=999 where t1.f4=c;
703 SELECT f2 into c from t1 where t1.f2=999;
709 CALL sp7c('xyz', @out_param, @c);
720 # ------------------------------------------------------------------------------
721 let $message= Testcase 4.1.8:
724 --source include/show_msg80.inc
727 CREATE FUNCTION fn8(a char(20)) returns char(50)
728 return concat('hello, ', a, '!');
734 # ------------------------------------------------------------------------------
735 let $message= Testcase 4.1.9:
738 --source include/show_msg80.inc
741 --replace_column 13 created 14 modified
742 SELECT * from mysql.proc where specific_name='sp9';
745 DROP PROCEDURE IF EXISTS sp9;
749 --replace_column 13 created 14 modified
750 SELECT * from mysql.proc where specific_name='sp9';
752 CREATE PROCEDURE sp9()SELECT * from t1;
755 --replace_column 13 created 14 modified
756 SELECT * from mysql.proc where specific_name='sp9';
761 --replace_column 13 created 14 modified
762 SELECT * from mysql.proc where specific_name='sp9';
764 CREATE PROCEDURE sp9()SELECT * from t1;
767 --replace_column 13 created 14 modified
768 SELECT * from mysql.proc where specific_name='sp9';
770 DROP PROCEDURE IF EXISTS sp9;
773 --replace_column 13 created 14 modified
774 SELECT * from mysql.proc where specific_name='sp9';
776 # ------------------------------------------------------------------------------
777 let $message= Testcase 4.1.10:
780 --source include/show_msg80.inc
782 --replace_column 13 created 14 modified
783 SELECT * from mysql.proc where specific_name='fn10' and type='function';
786 DROP FUNCTION IF EXISTS fn10;
789 --replace_column 13 created 14 modified
790 SELECT * from mysql.proc where specific_name='fn10' and type='function';
793 CREATE FUNCTION fn10() returns int return 100;
795 --replace_column 13 created 14 modified
796 SELECT * from mysql.proc where specific_name='fn10' and type='function';
800 --replace_column 13 created 14 modified
801 SELECT * from mysql.proc where specific_name='fn10' and type='function';
803 CREATE FUNCTION fn10() returns int return 100;
805 --replace_column 13 created 14 modified
806 SELECT * from mysql.proc where specific_name='fn10' and type='function';
808 DROP FUNCTION IF EXISTS fn10;
810 --replace_column 13 created 14 modified
811 SELECT * from mysql.proc where specific_name='fn10' and type='function';
814 # ------------------------------------------------------------------------------
815 let $message= Testcase 4.1.11:
818 --source include/show_msg80.inc
821 create user 'user_1'@'localhost';
822 grant execute on db_storedproc.* to 'user_1'@'localhost';
824 drop table IF EXISTS mysql.t1;
825 create table mysql.t1( f1 char );
826 DROP PROCEDURE IF EXISTS sp11;
827 CREATE PROCEDURE sp11() insert into mysql.t1 values('a');
828 --replace_column 13 created 14 modified
829 SELECT security_type from mysql.proc where specific_name='sp11';
831 --replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK
832 connect (u_1, localhost, user_1, , db_storedproc);
833 --source suite/funcs_1/include/show_connection.inc
839 --source suite/funcs_1/include/show_connection.inc
841 alter procedure sp11 sql security invoker;
842 --replace_column 13 created 14 modified
843 SELECT security_type from mysql.proc where specific_name='sp11';
845 --replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK
847 --source suite/funcs_1/include/show_connection.inc
850 --error ER_TABLEACCESS_DENIED_ERROR
856 --source suite/funcs_1/include/show_connection.inc
858 alter procedure sp11 sql security DEFINER;
859 --replace_column 13 created 14 modified
860 SELECT security_type from mysql.proc where specific_name='sp11';
864 DROP USER 'user_1'@'localhost';
869 # ------------------------------------------------------------------------------
870 let $message= Testcase 4.1.12:
873 --source include/show_msg80.inc
876 CREATE FUNCTION fn12() returns int
878 SELECT security_type from mysql.proc where specific_name='fn12';
879 --replace_column 13 created 14 modified
882 alter function fn12 sql security invoker;
883 SELECT security_type from mysql.proc where specific_name='fn12';
884 --replace_column 13 created 14 modified
887 alter function fn12 sql security DEFINER;
888 SELECT security_type from mysql.proc where specific_name='fn12';
889 --replace_column 13 created 14 modified
896 # ------------------------------------------------------------------------------
897 let $message= Testcase 4.1.13:
900 --source include/show_msg80.inc
903 DROP PROCEDURE IF EXISTS sp11;
904 CREATE PROCEDURE sp11()
907 SELECT comment from mysql.proc where specific_name='sp11';
908 --replace_column 13 created 14 modified
909 alter procedure sp11 comment 'this is simple';
910 SELECT comment from mysql.proc where specific_name='sp11';
911 --replace_column 13 created 14 modified
917 # ------------------------------------------------------------------------------
918 let $message= Testcase 4.1.14:
921 --source include/show_msg80.inc
923 DROP FUNCTION IF EXISTS fn12;
924 CREATE FUNCTION fn12() returns int
926 SELECT comment from mysql.proc where specific_name='fn12';
927 --replace_column 13 created 14 modified
929 alter function fn12 comment 'this is simple';
930 SELECT comment from mysql.proc where specific_name='fn12';
931 --replace_column 13 created 14 modified
937 # ------------------------------------------------------------------------------
938 let $message= Testcase 4.1.15:
940 Ensure that any invalid stored procedure name is never accepted, and that an
941 appropriate error message is returned when the name is rejected;
942 --source include/show_msg80.inc
945 --error ER_SP_NO_DROP_SP
946 CREATE PROCEDURE sp1()
949 --error ER_PARSE_ERROR
950 CREATE PROCEDURE !_sp1( f1 char(20) )
951 SELECT * from t1 where f2 = f1;
953 CREATE PROCEDURE function()
954 SELECT * from t1 where f2=f1;
955 DROP PROCEDURE function;
957 --error ER_PARSE_ERROR
958 CREATE PROCEDURE accessible()
959 SELECT * from t1 where f2=f1;
961 --error ER_PARSE_ERROR
962 CREATE PROCEDURE add()
963 SELECT * from t1 where f2=f1;
965 --error ER_PARSE_ERROR
966 CREATE PROCEDURE all()
967 SELECT * from t1 where f2=f1;
969 --error ER_PARSE_ERROR
970 CREATE PROCEDURE alter()
971 SELECT * from t1 where f2=f1;
973 --error ER_PARSE_ERROR
974 CREATE PROCEDURE analyze()
975 SELECT * from t1 where f2=f1;
977 --error ER_PARSE_ERROR
978 CREATE PROCEDURE and()
979 SELECT * from t1 where f2=f1;
981 --error ER_PARSE_ERROR
982 CREATE PROCEDURE as()
983 SELECT * from t1 where f2=f1;
985 --error ER_PARSE_ERROR
986 CREATE PROCEDURE asc()
987 SELECT * from t1 where f2=f1;
989 --error ER_PARSE_ERROR
990 CREATE PROCEDURE asensitive()
991 SELECT * from t1 where f2=f1;
993 --error ER_PARSE_ERROR
994 CREATE PROCEDURE before()
995 SELECT * from t1 where f2=f1;
997 --error ER_PARSE_ERROR
998 CREATE PROCEDURE between()
999 SELECT * from t1 where f2=f1;
1001 --error ER_PARSE_ERROR
1002 CREATE PROCEDURE bigint()
1003 SELECT * from t1 where f2=f1;
1005 --error ER_PARSE_ERROR
1006 CREATE PROCEDURE binary()
1007 SELECT * from t1 where f2=f1;
1009 --error ER_PARSE_ERROR
1010 CREATE PROCEDURE blob()
1011 SELECT * from t1 where f2=f1;
1013 --error ER_PARSE_ERROR
1014 CREATE PROCEDURE both()
1015 SELECT * from t1 where f2=f1;
1017 --error ER_PARSE_ERROR
1018 CREATE PROCEDURE by()
1019 SELECT * from t1 where f2=f1;
1021 --error ER_PARSE_ERROR
1022 CREATE PROCEDURE call()
1023 SELECT * from t1 where f2=f1;
1025 --error ER_PARSE_ERROR
1026 CREATE PROCEDURE cascade()
1027 SELECT * from t1 where f2=f1;
1029 --error ER_PARSE_ERROR
1030 CREATE PROCEDURE case()
1031 SELECT * from t1 where f2=f1;
1033 --error ER_PARSE_ERROR
1034 CREATE PROCEDURE change()
1035 SELECT * from t1 where f2=f1;
1037 --error ER_PARSE_ERROR
1038 CREATE PROCEDURE char()
1039 SELECT * from t1 where f2=f1;
1041 --error ER_PARSE_ERROR
1042 CREATE PROCEDURE character()
1043 SELECT * from t1 where f2=f1;
1045 --error ER_PARSE_ERROR
1046 CREATE PROCEDURE check()
1047 SELECT * from t1 where f2=f1;
1049 --error ER_PARSE_ERROR
1050 CREATE PROCEDURE collate()
1051 SELECT * from t1 where f2=f1;
1053 --error ER_PARSE_ERROR
1054 CREATE PROCEDURE column()
1055 SELECT * from t1 where f2=f1;
1057 --error ER_PARSE_ERROR
1058 CREATE PROCEDURE condition()
1059 SELECT * from t1 where f2=f1;
1061 --error ER_PARSE_ERROR
1062 CREATE PROCEDURE constraint()
1063 SELECT * from t1 where f2=f1;
1065 --error ER_PARSE_ERROR
1066 CREATE PROCEDURE continue()
1067 SELECT * from t1 where f2=f1;
1069 --error ER_PARSE_ERROR
1070 CREATE PROCEDURE convert()
1071 SELECT * from t1 where f2=f1;
1073 --error ER_PARSE_ERROR
1074 CREATE PROCEDURE create()
1075 SELECT * from t1 where f2=f1;
1077 --error ER_PARSE_ERROR
1078 CREATE PROCEDURE cross()
1079 SELECT * from t1 where f2=f1;
1081 --error ER_PARSE_ERROR
1082 CREATE PROCEDURE current_date()
1083 SELECT * from t1 where f2=f1;
1085 --error ER_PARSE_ERROR
1086 CREATE PROCEDURE current_time()
1087 SELECT * from t1 where f2=f1;
1089 --error ER_PARSE_ERROR
1090 CREATE PROCEDURE current_timestamp()
1091 SELECT * from t1 where f2=f1;
1093 --error ER_PARSE_ERROR
1094 CREATE PROCEDURE current_user()
1095 SELECT * from t1 where f2=f1;
1097 --error ER_PARSE_ERROR
1098 CREATE PROCEDURE cursor()
1099 SELECT * from t1 where f2=f1;
1101 --error ER_PARSE_ERROR
1102 CREATE PROCEDURE database()
1103 SELECT * from t1 where f2=f1;
1105 --error ER_PARSE_ERROR
1106 CREATE PROCEDURE databases()
1107 SELECT * from t1 where f2=f1;
1109 --error ER_PARSE_ERROR
1110 CREATE PROCEDURE day_hour()
1111 SELECT * from t1 where f2=f1;
1113 --error ER_PARSE_ERROR
1114 CREATE PROCEDURE day_microsecond()
1115 SELECT * from t1 where f2=f1;
1117 --error ER_PARSE_ERROR
1118 CREATE PROCEDURE day_minute()
1119 SELECT * from t1 where f2=f1;
1121 --error ER_PARSE_ERROR
1122 CREATE PROCEDURE day_second()
1123 SELECT * from t1 where f2=f1;
1125 --error ER_PARSE_ERROR
1126 CREATE PROCEDURE dec()
1127 SELECT * from t1 where f2=f1;
1129 --error ER_PARSE_ERROR
1130 CREATE PROCEDURE decimal()
1131 SELECT * from t1 where f2=f1;
1133 --error ER_PARSE_ERROR
1134 CREATE PROCEDURE declare()
1135 SELECT * from t1 where f2=f1;
1137 --error ER_PARSE_ERROR
1138 CREATE PROCEDURE default()
1139 SELECT * from t1 where f2=f1;
1141 --error ER_PARSE_ERROR
1142 CREATE PROCEDURE delayed()
1143 SELECT * from t1 where f2=f1;
1145 --error ER_PARSE_ERROR
1146 CREATE PROCEDURE delete()
1147 SELECT * from t1 where f2=f1;
1149 --error ER_PARSE_ERROR
1150 CREATE PROCEDURE desc()
1151 SELECT * from t1 where f2=f1;
1153 --error ER_PARSE_ERROR
1154 CREATE PROCEDURE describe()
1155 SELECT * from t1 where f2=f1;
1157 --error ER_PARSE_ERROR
1158 CREATE PROCEDURE deterministic()
1159 SELECT * from t1 where f2=f1;
1161 --error ER_PARSE_ERROR
1162 CREATE PROCEDURE distinct()
1163 SELECT * from t1 where f2=f1;
1165 --error ER_PARSE_ERROR
1166 CREATE PROCEDURE distinctrow()
1167 SELECT * from t1 where f2=f1;
1169 --error ER_PARSE_ERROR
1170 CREATE PROCEDURE div()
1171 SELECT * from t1 where f2=f1;
1173 --error ER_PARSE_ERROR
1174 CREATE PROCEDURE double()
1175 SELECT * from t1 where f2=f1;
1177 --error ER_PARSE_ERROR
1178 CREATE PROCEDURE drop()
1179 SELECT * from t1 where f2=f1;
1181 --error ER_PARSE_ERROR
1182 CREATE PROCEDURE dual()
1183 SELECT * from t1 where f2=f1;
1185 --error ER_PARSE_ERROR
1186 CREATE PROCEDURE each()
1187 SELECT * from t1 where f2=f1;
1189 --error ER_PARSE_ERROR
1190 CREATE PROCEDURE else()
1191 SELECT * from t1 where f2=f1;
1193 --error ER_PARSE_ERROR
1194 CREATE PROCEDURE elseif()
1195 SELECT * from t1 where f2=f1;
1197 --error ER_PARSE_ERROR
1198 CREATE PROCEDURE enclosed()
1199 SELECT * from t1 where f2=f1;
1201 --error ER_PARSE_ERROR
1202 CREATE PROCEDURE escaped()
1203 SELECT * from t1 where f2=f1;
1205 --error ER_PARSE_ERROR
1206 CREATE PROCEDURE exists()
1207 SELECT * from t1 where f2=f1;
1209 --error ER_PARSE_ERROR
1210 CREATE PROCEDURE exit()
1211 SELECT * from t1 where f2=f1;
1213 --error ER_PARSE_ERROR
1214 CREATE PROCEDURE explain()
1215 SELECT * from t1 where f2=f1;
1217 --error ER_PARSE_ERROR
1218 CREATE PROCEDURE false()
1219 SELECT * from t1 where f2=f1;
1221 --error ER_PARSE_ERROR
1222 CREATE PROCEDURE fetch()
1223 SELECT * from t1 where f2=f1;
1225 #--error ER_PARSE_ERROR
1226 CREATE PROCEDURE fields()
1227 SELECT * from t1 where f2=f1;
1228 DROP PROCEDURE fields;
1230 --error ER_PARSE_ERROR
1231 CREATE PROCEDURE float()
1232 SELECT * from t1 where f2=f1;
1234 --error ER_PARSE_ERROR
1235 CREATE PROCEDURE for()
1236 SELECT * from t1 where f2=f1;
1238 --error ER_PARSE_ERROR
1239 CREATE PROCEDURE force()
1240 SELECT * from t1 where f2=f1;
1242 --error ER_PARSE_ERROR
1243 CREATE PROCEDURE foreign()
1244 SELECT * from t1 where f2=f1;
1246 --error ER_PARSE_ERROR
1247 CREATE PROCEDURE from()
1248 SELECT * from t1 where f2=f1;
1250 --error ER_PARSE_ERROR
1251 CREATE PROCEDURE fulltext()
1252 SELECT * from t1 where f2=f1;
1254 --error ER_PARSE_ERROR
1255 CREATE PROCEDURE grant()
1256 SELECT * from t1 where f2=f1;
1258 --error ER_PARSE_ERROR
1259 CREATE PROCEDURE group()
1260 SELECT * from t1 where f2=f1;
1262 --error ER_PARSE_ERROR
1263 CREATE PROCEDURE having()
1264 SELECT * from t1 where f2=f1;
1266 --error ER_PARSE_ERROR
1267 CREATE PROCEDURE high_priority()
1268 SELECT * from t1 where f2=f1;
1270 --error ER_PARSE_ERROR
1271 CREATE PROCEDURE hour_microsecond()
1272 SELECT * from t1 where f2=f1;
1274 --error ER_PARSE_ERROR
1275 CREATE PROCEDURE hour_minute()
1276 SELECT * from t1 where f2=f1;
1278 --error ER_PARSE_ERROR
1279 CREATE PROCEDURE hour_second()
1280 SELECT * from t1 where f2=f1;
1282 --error ER_PARSE_ERROR
1283 CREATE PROCEDURE if()
1284 SELECT * from t1 where f2=f1;
1286 --error ER_PARSE_ERROR
1287 CREATE PROCEDURE ignore()
1288 SELECT * from t1 where f2=f1;
1290 --error ER_PARSE_ERROR
1291 CREATE PROCEDURE in()
1292 SELECT * from t1 where f2=f1;
1294 --error ER_PARSE_ERROR
1295 CREATE PROCEDURE index()
1296 SELECT * from t1 where f2=f1;
1298 --error ER_PARSE_ERROR
1299 CREATE PROCEDURE infile()
1300 SELECT * from t1 where f2=f1;
1302 --error ER_PARSE_ERROR
1303 CREATE PROCEDURE inner()
1304 SELECT * from t1 where f2=f1;
1306 --error ER_PARSE_ERROR
1307 CREATE PROCEDURE inout()
1308 SELECT * from t1 where f2=f1;
1310 --error ER_PARSE_ERROR
1311 CREATE PROCEDURE insensitive()
1312 SELECT * from t1 where f2=f1;
1314 --error ER_PARSE_ERROR
1315 CREATE PROCEDURE insert()
1316 SELECT * from t1 where f2=f1;
1318 --error ER_PARSE_ERROR
1319 CREATE PROCEDURE int()
1320 SELECT * from t1 where f2=f1;
1322 --error ER_PARSE_ERROR
1323 CREATE PROCEDURE int1()
1324 SELECT * from t1 where f2=f1;
1326 --error ER_PARSE_ERROR
1327 CREATE PROCEDURE int2()
1328 SELECT * from t1 where f2=f1;
1330 --error ER_PARSE_ERROR
1331 CREATE PROCEDURE int3()
1332 SELECT * from t1 where f2=f1;
1334 --error ER_PARSE_ERROR
1335 CREATE PROCEDURE int4()
1336 SELECT * from t1 where f2=f1;
1338 --error ER_PARSE_ERROR
1339 CREATE PROCEDURE int8()
1340 SELECT * from t1 where f2=f1;
1342 --error ER_PARSE_ERROR
1343 CREATE PROCEDURE integer()
1344 SELECT * from t1 where f2=f1;
1346 --error ER_PARSE_ERROR
1347 CREATE PROCEDURE interval()
1348 SELECT * from t1 where f2=f1;
1350 --error ER_PARSE_ERROR
1351 CREATE PROCEDURE into()
1352 SELECT * from t1 where f2=f1;
1354 --error ER_PARSE_ERROR
1355 CREATE PROCEDURE is()
1356 SELECT * from t1 where f2=f1;
1358 --error ER_PARSE_ERROR
1359 CREATE PROCEDURE iterate()
1360 SELECT * from t1 where f2=f1;
1362 --error ER_PARSE_ERROR
1363 CREATE PROCEDURE join()
1364 SELECT * from t1 where f2=f1;
1366 --error ER_PARSE_ERROR
1367 CREATE PROCEDURE key()
1368 SELECT * from t1 where f2=f1;
1370 --error ER_PARSE_ERROR
1371 CREATE PROCEDURE keys()
1372 SELECT * from t1 where f2=f1;
1374 --error ER_PARSE_ERROR
1375 CREATE PROCEDURE kill()
1376 SELECT * from t1 where f2=f1;
1378 --error ER_PARSE_ERROR
1379 CREATE PROCEDURE leading()
1380 SELECT * from t1 where f2=f1;
1382 --error ER_PARSE_ERROR
1383 CREATE PROCEDURE leave()
1384 SELECT * from t1 where f2=f1;
1386 --error ER_PARSE_ERROR
1387 CREATE PROCEDURE left()
1388 SELECT * from t1 where f2=f1;
1390 --error ER_PARSE_ERROR
1391 CREATE PROCEDURE like()
1392 SELECT * from t1 where f2=f1;
1394 --error ER_PARSE_ERROR
1395 CREATE PROCEDURE limit()
1396 SELECT * from t1 where f2=f1;
1398 --error ER_PARSE_ERROR
1399 CREATE PROCEDURE linear()
1400 SELECT * from t1 where f2=f1;
1402 --error ER_PARSE_ERROR
1403 CREATE PROCEDURE lines()
1404 SELECT * from t1 where f2=f1;
1406 --error ER_PARSE_ERROR
1407 CREATE PROCEDURE load()
1408 SELECT * from t1 where f2=f1;
1410 --error ER_PARSE_ERROR
1411 CREATE PROCEDURE localtime()
1412 SELECT * from t1 where f2=f1;
1414 --error ER_PARSE_ERROR
1415 CREATE PROCEDURE localtimestamp()
1416 SELECT * from t1 where f2=f1;
1418 --error ER_PARSE_ERROR
1419 CREATE PROCEDURE lock()
1420 SELECT * from t1 where f2=f1;
1422 --error ER_PARSE_ERROR
1423 CREATE PROCEDURE long()
1424 SELECT * from t1 where f2=f1;
1426 --error ER_PARSE_ERROR
1427 CREATE PROCEDURE longblob()
1428 SELECT * from t1 where f2=f1;
1430 --error ER_PARSE_ERROR
1431 CREATE PROCEDURE longtext()
1432 SELECT * from t1 where f2=f1;
1434 --error ER_PARSE_ERROR
1435 CREATE PROCEDURE loop()
1436 SELECT * from t1 where f2=f1;
1438 --error ER_PARSE_ERROR
1439 CREATE PROCEDURE low_priority()
1440 SELECT * from t1 where f2=f1;
1442 --error ER_PARSE_ERROR
1443 CREATE PROCEDURE master_ssl_verify_server_cert()
1444 SELECT * from t1 where f2=f1;
1446 --error ER_PARSE_ERROR
1447 CREATE PROCEDURE match()
1448 SELECT * from t1 where f2=f1;
1450 --error ER_PARSE_ERROR
1451 CREATE PROCEDURE mediumblob()
1452 SELECT * from t1 where f2=f1;
1454 --error ER_PARSE_ERROR
1455 CREATE PROCEDURE mediumint()
1456 SELECT * from t1 where f2=f1;
1458 --error ER_PARSE_ERROR
1459 CREATE PROCEDURE mediumtext()
1460 SELECT * from t1 where f2=f1;
1462 --error ER_PARSE_ERROR
1463 CREATE PROCEDURE middleint()
1464 SELECT * from t1 where f2=f1;
1466 --error ER_PARSE_ERROR
1467 CREATE PROCEDURE minute_microsecond()
1468 SELECT * from t1 where f2=f1;
1470 --error ER_PARSE_ERROR
1471 CREATE PROCEDURE minute_second()
1472 SELECT * from t1 where f2=f1;
1474 --error ER_PARSE_ERROR
1475 CREATE PROCEDURE mod()
1476 SELECT * from t1 where f2=f1;
1478 --error ER_PARSE_ERROR
1479 CREATE PROCEDURE modifies()
1480 SELECT * from t1 where f2=f1;
1482 --error ER_PARSE_ERROR
1483 CREATE PROCEDURE natural()
1484 SELECT * from t1 where f2=f1;
1486 --error ER_PARSE_ERROR
1487 CREATE PROCEDURE not()
1488 SELECT * from t1 where f2=f1;
1490 --error ER_PARSE_ERROR
1491 CREATE PROCEDURE no_write_to_binlog()
1492 SELECT * from t1 where f2=f1;
1494 --error ER_PARSE_ERROR
1495 CREATE PROCEDURE null()
1496 SELECT * from t1 where f2=f1;
1498 --error ER_PARSE_ERROR
1499 CREATE PROCEDURE numeric()
1500 SELECT * from t1 where f2=f1;
1502 --error ER_PARSE_ERROR
1503 CREATE PROCEDURE on()
1504 SELECT * from t1 where f2=f1;
1506 --error ER_PARSE_ERROR
1507 CREATE PROCEDURE optimize()
1508 SELECT * from t1 where f2=f1;
1510 --error ER_PARSE_ERROR
1511 CREATE PROCEDURE option()
1512 SELECT * from t1 where f2=f1;
1514 --error ER_PARSE_ERROR
1515 CREATE PROCEDURE optionally()
1516 SELECT * from t1 where f2=f1;
1518 --error ER_PARSE_ERROR
1519 CREATE PROCEDURE or()
1520 SELECT * from t1 where f2=f1;
1522 --error ER_PARSE_ERROR
1523 CREATE PROCEDURE order()
1524 SELECT * from t1 where f2=f1;
1526 --error ER_PARSE_ERROR
1527 CREATE PROCEDURE out()
1528 SELECT * from t1 where f2=f1;
1530 --error ER_PARSE_ERROR
1531 CREATE PROCEDURE outer()
1532 SELECT * from t1 where f2=f1;
1534 --error ER_PARSE_ERROR
1535 CREATE PROCEDURE outfile()
1536 SELECT * from t1 where f2=f1;
1538 --error ER_PARSE_ERROR
1539 CREATE PROCEDURE precision()
1540 SELECT * from t1 where f2=f1;
1542 --error ER_PARSE_ERROR
1543 CREATE PROCEDURE primary()
1544 SELECT * from t1 where f2=f1;
1546 --error ER_PARSE_ERROR
1547 CREATE PROCEDURE procedure()
1548 SELECT * from t1 where f2=f1;
1550 --error ER_PARSE_ERROR
1551 CREATE PROCEDURE purge()
1552 SELECT * from t1 where f2=f1;
1554 --error ER_PARSE_ERROR
1555 CREATE PROCEDURE range()
1556 SELECT * from t1 where f2=f1;
1558 --error ER_PARSE_ERROR
1559 CREATE PROCEDURE read()
1560 SELECT * from t1 where f2=f1;
1562 --error ER_PARSE_ERROR
1563 CREATE PROCEDURE reads()
1564 SELECT * from t1 where f2=f1;
1566 --error ER_PARSE_ERROR
1567 CREATE PROCEDURE real()
1568 SELECT * from t1 where f2=f1;
1570 --error ER_PARSE_ERROR
1571 CREATE PROCEDURE references()
1572 SELECT * from t1 where f2=f1;
1574 --error ER_PARSE_ERROR
1575 CREATE PROCEDURE regexp()
1576 SELECT * from t1 where f2=f1;
1578 --error ER_PARSE_ERROR
1579 CREATE PROCEDURE release()
1580 SELECT * from t1 where f2=f1;
1582 --error ER_PARSE_ERROR
1583 CREATE PROCEDURE rename()
1584 SELECT * from t1 where f2=f1;
1586 --error ER_PARSE_ERROR
1587 CREATE PROCEDURE repeat()
1588 SELECT * from t1 where f2=f1;
1590 --error ER_PARSE_ERROR
1591 CREATE PROCEDURE replace()
1592 SELECT * from t1 where f2=f1;
1594 --error ER_PARSE_ERROR
1595 CREATE PROCEDURE require()
1596 SELECT * from t1 where f2=f1;
1598 --error ER_PARSE_ERROR
1599 CREATE PROCEDURE restrict()
1600 SELECT * from t1 where f2=f1;
1602 --error ER_PARSE_ERROR
1603 CREATE PROCEDURE return()
1604 SELECT * from t1 where f2=f1;
1606 --error ER_PARSE_ERROR
1607 CREATE PROCEDURE revoke()
1608 SELECT * from t1 where f2=f1;
1610 --error ER_PARSE_ERROR
1611 CREATE PROCEDURE right()
1612 SELECT * from t1 where f2=f1;
1614 --error ER_PARSE_ERROR
1615 CREATE PROCEDURE rlike()
1616 SELECT * from t1 where f2=f1;
1618 --error ER_PARSE_ERROR
1619 CREATE PROCEDURE schema()
1620 SELECT * from t1 where f2=f1;
1622 --error ER_PARSE_ERROR
1623 CREATE PROCEDURE schemas()
1624 SELECT * from t1 where f2=f1;
1626 --error ER_PARSE_ERROR
1627 CREATE PROCEDURE second_microsecond()
1628 SELECT * from t1 where f2=f1;
1630 --error ER_PARSE_ERROR
1631 CREATE PROCEDURE select()
1632 SELECT * from t1 where f2=f1;
1634 --error ER_PARSE_ERROR
1635 CREATE PROCEDURE sensitive()
1636 SELECT * from t1 where f2=f1;
1638 --error ER_PARSE_ERROR
1639 CREATE PROCEDURE separator()
1640 SELECT * from t1 where f2=f1;
1642 --error ER_PARSE_ERROR
1643 CREATE PROCEDURE set()
1644 SELECT * from t1 where f2=f1;
1646 --error ER_PARSE_ERROR
1647 CREATE PROCEDURE show()
1648 SELECT * from t1 where f2=f1;
1650 --error ER_PARSE_ERROR
1651 CREATE PROCEDURE smallint()
1652 SELECT * from t1 where f2=f1;
1654 --error ER_PARSE_ERROR
1655 CREATE PROCEDURE spatial()
1656 SELECT * from t1 where f2=f1;
1658 --error ER_PARSE_ERROR
1659 CREATE PROCEDURE specific()
1660 SELECT * from t1 where f2=f1;
1662 --error ER_PARSE_ERROR
1663 CREATE PROCEDURE sql()
1664 SELECT * from t1 where f2=f1;
1666 --error ER_PARSE_ERROR
1667 CREATE PROCEDURE sqlexception()
1668 SELECT * from t1 where f2=f1;
1670 --error ER_PARSE_ERROR
1671 CREATE PROCEDURE sqlstate()
1672 SELECT * from t1 where f2=f1;
1674 --error ER_PARSE_ERROR
1675 CREATE PROCEDURE sqlwarning()
1676 SELECT * from t1 where f2=f1;
1678 --error ER_PARSE_ERROR
1679 CREATE PROCEDURE sql_big_result()
1680 SELECT * from t1 where f2=f1;
1682 --error ER_PARSE_ERROR
1683 CREATE PROCEDURE sql_calc_found_rows()
1684 SELECT * from t1 where f2=f1;
1686 --error ER_PARSE_ERROR
1687 CREATE PROCEDURE sql_small_result()
1688 SELECT * from t1 where f2=f1;
1690 --error ER_PARSE_ERROR
1691 CREATE PROCEDURE ssl()
1692 SELECT * from t1 where f2=f1;
1694 --error ER_PARSE_ERROR
1695 CREATE PROCEDURE starting()
1696 SELECT * from t1 where f2=f1;
1698 --error ER_PARSE_ERROR
1699 CREATE PROCEDURE straight_join()
1700 SELECT * from t1 where f2=f1;
1702 --error ER_PARSE_ERROR
1703 CREATE PROCEDURE table()
1704 SELECT * from t1 where f2=f1;
1706 --error ER_PARSE_ERROR
1707 CREATE PROCEDURE terminated()
1708 SELECT * from t1 where f2=f1;
1710 --error ER_PARSE_ERROR
1711 CREATE PROCEDURE then()
1712 SELECT * from t1 where f2=f1;
1714 --error ER_PARSE_ERROR
1715 CREATE PROCEDURE tinyblob()
1716 SELECT * from t1 where f2=f1;
1718 --error ER_PARSE_ERROR
1719 CREATE PROCEDURE tinyint()
1720 SELECT * from t1 where f2=f1;
1722 --error ER_PARSE_ERROR
1723 CREATE PROCEDURE tinytext()
1724 SELECT * from t1 where f2=f1;
1726 --error ER_PARSE_ERROR
1727 CREATE PROCEDURE to()
1728 SELECT * from t1 where f2=f1;
1730 --error ER_PARSE_ERROR
1731 CREATE PROCEDURE trailing()
1732 SELECT * from t1 where f2=f1;
1734 --error ER_PARSE_ERROR
1735 CREATE PROCEDURE trigger()
1736 SELECT * from t1 where f2=f1;
1738 --error ER_PARSE_ERROR
1739 CREATE PROCEDURE true()
1740 SELECT * from t1 where f2=f1;
1742 --error ER_PARSE_ERROR
1743 CREATE PROCEDURE undo()
1744 SELECT * from t1 where f2=f1;
1746 --error ER_PARSE_ERROR
1747 CREATE PROCEDURE union()
1748 SELECT * from t1 where f2=f1;
1750 --error ER_PARSE_ERROR
1751 CREATE PROCEDURE unique()
1752 SELECT * from t1 where f2=f1;
1754 --error ER_PARSE_ERROR
1755 CREATE PROCEDURE unlock()
1756 SELECT * from t1 where f2=f1;
1758 --error ER_PARSE_ERROR
1759 CREATE PROCEDURE unsigned()
1760 SELECT * from t1 where f2=f1;
1762 --error ER_PARSE_ERROR
1763 CREATE PROCEDURE update()
1764 SELECT * from t1 where f2=f1;
1766 --error ER_PARSE_ERROR
1767 CREATE PROCEDURE usage()
1768 SELECT * from t1 where f2=f1;
1770 --error ER_PARSE_ERROR
1771 CREATE PROCEDURE use()
1772 SELECT * from t1 where f2=f1;
1774 --error ER_PARSE_ERROR
1775 CREATE PROCEDURE using()
1776 SELECT * from t1 where f2=f1;
1778 --error ER_PARSE_ERROR
1779 CREATE PROCEDURE utc_date()
1780 SELECT * from t1 where f2=f1;
1782 --error ER_PARSE_ERROR
1783 CREATE PROCEDURE utc_time()
1784 SELECT * from t1 where f2=f1;
1786 --error ER_PARSE_ERROR
1787 CREATE PROCEDURE utc_timestamp()
1788 SELECT * from t1 where f2=f1;
1790 --error ER_PARSE_ERROR
1791 CREATE PROCEDURE values()
1792 SELECT * from t1 where f2=f1;
1794 --error ER_PARSE_ERROR
1795 CREATE PROCEDURE varbinary()
1796 SELECT * from t1 where f2=f1;
1798 --error ER_PARSE_ERROR
1799 CREATE PROCEDURE varchar()
1800 SELECT * from t1 where f2=f1;
1802 --error ER_PARSE_ERROR
1803 CREATE PROCEDURE varcharacter()
1804 SELECT * from t1 where f2=f1;
1806 --error ER_PARSE_ERROR
1807 CREATE PROCEDURE varying()
1808 SELECT * from t1 where f2=f1;
1810 --error ER_PARSE_ERROR
1811 CREATE PROCEDURE when()
1812 SELECT * from t1 where f2=f1;
1814 --error ER_PARSE_ERROR
1815 CREATE PROCEDURE where()
1816 SELECT * from t1 where f2=f1;
1818 --error ER_PARSE_ERROR
1819 CREATE PROCEDURE while()
1820 SELECT * from t1 where f2=f1;
1822 --error ER_PARSE_ERROR
1823 CREATE PROCEDURE with()
1824 SELECT * from t1 where f2=f1;
1826 --error ER_PARSE_ERROR
1827 CREATE PROCEDURE write()
1828 SELECT * from t1 where f2=f1;
1830 --error ER_PARSE_ERROR
1831 CREATE PROCEDURE xor()
1832 SELECT * from t1 where f2=f1;
1834 --error ER_PARSE_ERROR
1835 CREATE PROCEDURE year_month()
1836 SELECT * from t1 where f2=f1;
1838 --error ER_PARSE_ERROR
1839 CREATE PROCEDURE zerofill()
1840 SELECT * from t1 where f2=f1;
1843 # ------------------------------------------------------------------------------
1844 let $message= Testcase 4.1.15:
1846 Ensure that any invalid function name is never accepted, and that an appropriate
1847 error message is returned when the name is rejected;
1848 --source include/show_msg80.inc
1851 --error ER_PARSE_ERROR
1852 CREATE FUNCTION !_fn1(f1 char) returns char
1856 --error ER_PARSE_ERROR
1857 CREATE FUNCTION char(f1 char) returns char
1860 --error ER_PARSE_ERROR
1861 CREATE FUNCTION char binary(f1 char binary) returns char binary
1863 --error ER_PARSE_ERROR
1864 CREATE FUNCTION char ascii(f1 char ascii) returns char ascii
1867 --error ER_PARSE_ERROR
1868 CREATE FUNCTION char not null(f1 char not null) returns char not null
1871 --error ER_PARSE_ERROR
1872 CREATE FUNCTION char binary not null(f1 char binary not null) returns char binary not null
1875 --error ER_PARSE_ERROR
1876 CREATE FUNCTION char ascii not null(f1 char ascii not null) returns char ascii not null
1879 --error ER_PARSE_ERROR
1880 CREATE FUNCTION tinytext(f1 tinytext) returns tinytext
1883 #--error ER_PARSE_ERROR
1884 CREATE FUNCTION text(f1 text) returns text
1888 --error ER_PARSE_ERROR
1889 CREATE FUNCTION mediumtext(f1 mediumtext) returns mediumtext
1892 --error ER_PARSE_ERROR
1893 CREATE FUNCTION longtext(f1 longtext) returns longtext
1896 --error ER_PARSE_ERROR
1897 CREATE FUNCTION tinytext not null(f1 tinytext not null) returns tinytext not null
1900 --error ER_PARSE_ERROR
1901 CREATE FUNCTION text not null(f1 text not null) returns text not null
1904 --error ER_PARSE_ERROR
1905 CREATE FUNCTION mediumtext not null(f1 mediumtext not null) returns mediumtext not null
1908 --error ER_PARSE_ERROR
1909 CREATE FUNCTION longtext not null(f1 longtext not null) returns longtext not null
1912 --error ER_PARSE_ERROR
1913 CREATE FUNCTION tinyblob(f1 tinyblob) returns tinyblob
1916 --error ER_PARSE_ERROR
1917 CREATE FUNCTION blob(f1 blob) returns blob
1920 --error ER_PARSE_ERROR
1921 CREATE FUNCTION mediumblob(f1 mediumblob) returns mediumblob
1924 --error ER_PARSE_ERROR
1925 CREATE FUNCTION longblob(f1 longblob) returns longblob
1928 --error ER_PARSE_ERROR
1929 CREATE FUNCTION tinyblob not null(f1 tinyblob not null) returns tinyblob not null
1932 --error ER_PARSE_ERROR
1933 CREATE FUNCTION blob not null(f1 blob not null) returns blob not null
1936 --error ER_PARSE_ERROR
1937 CREATE FUNCTION mediumblob not null(f1 mediumblob not null) returns mediumblob not null
1940 --error ER_PARSE_ERROR
1941 CREATE FUNCTION longblob not null(f1 longblob not null) returns longblob not null
1944 --error ER_PARSE_ERROR
1945 CREATE FUNCTION binary(f1 binary) returns binary
1948 --error ER_PARSE_ERROR
1949 CREATE FUNCTION binary not null(f1 binary not null) returns binary not null
1952 --error ER_PARSE_ERROR
1953 CREATE FUNCTION tinyint(f1 tinyint) returns tinyint
1956 --error ER_PARSE_ERROR
1957 CREATE FUNCTION tinyint unsigned(f1 tinyint unsigned) returns tinyint unsigned
1960 --error ER_PARSE_ERROR
1961 CREATE FUNCTION tinyint zerofill(f1 tinyint zerofill) returns tinyint zerofill
1964 --error ER_PARSE_ERROR
1965 CREATE FUNCTION tinyint unsigned zerofill(f1 tinyint unsigned zerofill) returns tinyint unsigned zerofill
1968 --error ER_PARSE_ERROR
1969 CREATE FUNCTION smallint(f1 smallint) returns smallint
1972 --error ER_PARSE_ERROR
1973 CREATE FUNCTION smallint unsigned(f1 smallint unsigned) returns smallint unsigned
1976 --error ER_PARSE_ERROR
1977 CREATE FUNCTION smallint zerofill(f1 smallint zerofill) returns smallint zerofill
1980 --error ER_PARSE_ERROR
1981 CREATE FUNCTION smallint unsigned zerofill(f1 smallint unsigned zerofill) returns smallint unsigned zerofill
1984 --error ER_PARSE_ERROR
1985 CREATE FUNCTION mediumint(f1 mediumint) returns mediumint
1988 --error ER_PARSE_ERROR
1989 CREATE FUNCTION mediumint unsigned(f1 mediumint unsigned) returns mediumint unsigned
1992 --error ER_PARSE_ERROR
1993 CREATE FUNCTION mediumint zerofill(f1 mediumint zerofill) returns mediumint zerofill
1996 --error ER_PARSE_ERROR
1997 CREATE FUNCTION mediumint unsigned zerofill(f1 mediumint unsigned zerofill) returns mediumint unsigned zerofill
2000 --error ER_PARSE_ERROR
2001 CREATE FUNCTION int(f1 int) returns int
2004 --error ER_PARSE_ERROR
2005 CREATE FUNCTION int1(f1 int1) returns int1
2008 --error ER_PARSE_ERROR
2009 CREATE FUNCTION int2(f1 int2) returns int2
2012 --error ER_PARSE_ERROR
2013 CREATE FUNCTION int3(f1 int3) returns int3
2016 --error ER_PARSE_ERROR
2017 CREATE FUNCTION int4(f1 int4) returns int4
2020 --error ER_PARSE_ERROR
2021 CREATE FUNCTION int8(f1 int8) returns int8
2024 --error ER_PARSE_ERROR
2025 CREATE FUNCTION int unsigned(f1 int unsigned) returns int unsigned
2028 --error ER_PARSE_ERROR
2029 CREATE FUNCTION int zerofill(f1 int zerofill) returns int zerofill
2032 --error ER_PARSE_ERROR
2033 CREATE FUNCTION int unsigned zerofill(f1 int unsigned zerofill) returns int unsigned zerofill
2036 --error ER_PARSE_ERROR
2037 CREATE FUNCTION bigint(f1 bigint) returns bigint
2040 --error ER_PARSE_ERROR
2041 CREATE FUNCTION bigint unsigned(f1 bigint unsigned) returns bigint unsigned
2044 --error ER_PARSE_ERROR
2045 CREATE FUNCTION bigint zerofill(f1 bigint zerofill) returns bigint zerofill
2048 --error ER_PARSE_ERROR
2049 CREATE FUNCTION bigint unsigned zerofill(f1 bigint unsigned zerofill) returns bigint unsigned zerofill
2052 --error ER_PARSE_ERROR
2053 CREATE FUNCTION decimal(f1 decimal) returns decimal
2056 --error ER_PARSE_ERROR
2057 CREATE FUNCTION decimal unsigned(f1 decimal unsigned) returns decimal unsigned
2060 --error ER_PARSE_ERROR
2061 CREATE FUNCTION decimal zerofill(f1 decimal zerofill) returns decimal zerofill
2064 --error ER_PARSE_ERROR
2065 CREATE FUNCTION decimal unsigned zerofill(f1 decimal unsigned zerofill) returns decimal unsigned zerofill
2068 --error ER_PARSE_ERROR
2069 CREATE FUNCTION numeric(f1 numeric) returns numeric
2072 --error ER_PARSE_ERROR
2073 CREATE FUNCTION numeric unsigned(f1 numeric unsigned) returns numeric unsigned
2076 --error ER_PARSE_ERROR
2077 CREATE FUNCTION numeric zerofill(f1 numeric zerofill) returns numeric zerofill
2080 --error ER_PARSE_ERROR
2081 CREATE FUNCTION numeric unsigned zerofill(f1 numeric unsigned zerofill) returns numeric unsigned zerofill
2084 --error ER_PARSE_ERROR
2085 CREATE FUNCTION real(f1 real) returns real
2088 --error ER_PARSE_ERROR
2089 CREATE FUNCTION real unsigned(f1 real unsigned) returns real unsigned
2092 --error ER_PARSE_ERROR
2093 CREATE FUNCTION real zerofill(f1 real zerofill) returns real zerofill
2096 --error ER_PARSE_ERROR
2097 CREATE FUNCTION real unsigned zerofill(f1 real unsigned zerofill) returns real unsigned zerofill
2100 --error ER_PARSE_ERROR
2101 CREATE FUNCTION float(f1 float) returns float
2104 --error ER_PARSE_ERROR
2105 CREATE FUNCTION float unsigned(f1 float unsigned) returns float unsigned
2108 --error ER_PARSE_ERROR
2109 CREATE FUNCTION float zerofill(f1 float zerofill) returns float zerofill
2112 --error ER_PARSE_ERROR
2113 CREATE FUNCTION float unsigned zerofill(f1 float unsigned zerofill) returns float unsigned zerofill
2116 CREATE FUNCTION date(f1 date) returns date
2120 CREATE FUNCTION time(f1 time) returns time
2124 CREATE FUNCTION datetime(f1 datetime) returns datetime
2126 DROP FUNCTION datetime;
2128 CREATE FUNCTION timestamp(f1 timestamp) returns timestamp
2130 DROP FUNCTION timestamp;
2132 CREATE FUNCTION year(f1 year) returns year
2136 --error ER_PARSE_ERROR
2137 CREATE FUNCTION year(3)(f1 year(3)) returns year(3)
2140 --error ER_PARSE_ERROR
2141 CREATE FUNCTION year(4)(f1 year(4)) returns year(4)
2144 --error ER_PARSE_ERROR
2145 CREATE FUNCTION enum("1enum", "2enum")(f1 enum("1enum", "2enum")) returns enum("1enum", "2enum")
2148 --error ER_PARSE_ERROR
2149 CREATE FUNCTION set("1set", "2set")(f1 set("1set", "2set")) returns set("1set", "2set")
2153 DROP FUNCTION IF EXISTS fn1;
2154 CREATE FUNCTION fn1(f1 char ) returns char
2157 DROP FUNCTION IF EXISTS fn1;
2158 --error ER_NOT_SUPPORTED_YET
2159 CREATE FUNCTION fn1(f1 char binary ) returns char binary
2162 DROP FUNCTION IF EXISTS fn1;
2163 CREATE FUNCTION fn1(f1 char ascii ) returns char ascii
2166 DROP FUNCTION IF EXISTS fn1;
2167 --error ER_PARSE_ERROR
2168 CREATE FUNCTION fn1(f1 char not null ) returns char not null
2171 DROP FUNCTION IF EXISTS fn1;
2172 --error ER_PARSE_ERROR
2173 CREATE FUNCTION fn1(f1 char binary not null ) returns char binary not null
2176 DROP FUNCTION IF EXISTS fn1;
2177 --error ER_PARSE_ERROR
2178 CREATE FUNCTION fn1(f1 char ascii not null ) returns char ascii not null
2181 DROP FUNCTION IF EXISTS fn1;
2182 CREATE FUNCTION fn1(f1 tinytext ) returns tinytext
2185 DROP FUNCTION IF EXISTS fn1;
2186 CREATE FUNCTION fn1(f1 text ) returns text
2189 DROP FUNCTION IF EXISTS fn1;
2190 CREATE FUNCTION fn1(f1 mediumtext ) returns mediumtext
2193 DROP FUNCTION IF EXISTS fn1;
2194 CREATE FUNCTION fn1(f1 longtext ) returns longtext
2197 DROP FUNCTION IF EXISTS fn1;
2198 --error ER_PARSE_ERROR
2199 CREATE FUNCTION fn1(f1 tinytext not null ) returns tinytext not null
2202 DROP FUNCTION IF EXISTS fn1;
2203 --error ER_PARSE_ERROR
2204 CREATE FUNCTION fn1(f1 text not null ) returns text not null
2207 DROP FUNCTION IF EXISTS fn1;
2208 --error ER_PARSE_ERROR
2209 CREATE FUNCTION fn1(f1 mediumtext not null ) returns mediumtext not null
2212 DROP FUNCTION IF EXISTS fn1;
2213 --error ER_PARSE_ERROR
2214 CREATE FUNCTION fn1(f1 longtext not null ) returns longtext not null
2217 DROP FUNCTION IF EXISTS fn1;
2218 CREATE FUNCTION fn1(f1 tinyblob ) returns tinyblob
2221 DROP FUNCTION IF EXISTS fn1;
2222 CREATE FUNCTION fn1(f1 blob ) returns blob
2225 DROP FUNCTION IF EXISTS fn1;
2226 CREATE FUNCTION fn1(f1 mediumblob ) returns mediumblob
2229 DROP FUNCTION IF EXISTS fn1;
2230 CREATE FUNCTION fn1(f1 longblob ) returns longblob
2233 DROP FUNCTION IF EXISTS fn1;
2234 --error ER_PARSE_ERROR
2235 CREATE FUNCTION fn1(f1 tinyblob not null ) returns tinyblob not null
2238 DROP FUNCTION IF EXISTS fn1;
2239 --error ER_PARSE_ERROR
2240 CREATE FUNCTION fn1(f1 blob not null ) returns blob not null
2243 DROP FUNCTION IF EXISTS fn1;
2244 --error ER_PARSE_ERROR
2245 CREATE FUNCTION fn1(f1 mediumblob not null ) returns mediumblob not null
2248 DROP FUNCTION IF EXISTS fn1;
2249 --error ER_PARSE_ERROR
2250 CREATE FUNCTION fn1(f1 longblob not null ) returns longblob not null
2253 DROP FUNCTION IF EXISTS fn1;
2254 CREATE FUNCTION fn1(f1 binary ) returns binary
2257 DROP FUNCTION IF EXISTS fn1;
2258 --error ER_PARSE_ERROR
2259 CREATE FUNCTION fn1(f1 binary not null ) returns binary not null
2262 DROP FUNCTION IF EXISTS fn1;
2263 CREATE FUNCTION fn1(f1 tinyint ) returns tinyint
2266 DROP FUNCTION IF EXISTS fn1;
2267 CREATE FUNCTION fn1(f1 tinyint unsigned ) returns tinyint unsigned
2270 DROP FUNCTION IF EXISTS fn1;
2271 CREATE FUNCTION fn1(f1 tinyint zerofill ) returns tinyint zerofill
2274 DROP FUNCTION IF EXISTS fn1;
2275 CREATE FUNCTION fn1(f1 tinyint unsigned zerofill ) returns tinyint unsigned zerofill
2278 DROP FUNCTION IF EXISTS fn1;
2279 CREATE FUNCTION fn1(f1 smallint ) returns smallint
2282 DROP FUNCTION IF EXISTS fn1;
2283 CREATE FUNCTION fn1(f1 smallint unsigned ) returns smallint unsigned
2286 DROP FUNCTION IF EXISTS fn1;
2287 CREATE FUNCTION fn1(f1 smallint zerofill ) returns smallint zerofill
2290 DROP FUNCTION IF EXISTS fn1;
2291 CREATE FUNCTION fn1(f1 smallint unsigned zerofill ) returns smallint unsigned zerofill
2294 DROP FUNCTION IF EXISTS fn1;
2295 CREATE FUNCTION fn1(f1 mediumint ) returns mediumint
2298 DROP FUNCTION IF EXISTS fn1;
2299 CREATE FUNCTION fn1(f1 mediumint unsigned ) returns mediumint unsigned
2302 DROP FUNCTION IF EXISTS fn1;
2303 CREATE FUNCTION fn1(f1 mediumint zerofill ) returns mediumint zerofill
2306 DROP FUNCTION IF EXISTS fn1;
2307 CREATE FUNCTION fn1(f1 mediumint unsigned zerofill ) returns mediumint unsigned zerofill
2310 DROP FUNCTION IF EXISTS fn1;
2311 CREATE FUNCTION fn1(f1 int ) returns int
2314 DROP FUNCTION IF EXISTS fn1;
2315 CREATE FUNCTION fn1(f1 int unsigned ) returns int unsigned
2318 DROP FUNCTION IF EXISTS fn1;
2319 CREATE FUNCTION fn1(f1 int1 unsigned ) returns int1 unsigned
2322 DROP FUNCTION IF EXISTS fn1;
2323 CREATE FUNCTION fn1(f1 int2 unsigned ) returns int2 unsigned
2326 DROP FUNCTION IF EXISTS fn1;
2327 CREATE FUNCTION fn1(f1 int3 unsigned ) returns int3 unsigned
2330 DROP FUNCTION IF EXISTS fn1;
2331 CREATE FUNCTION fn1(f1 int4 unsigned ) returns int4 unsigned
2334 DROP FUNCTION IF EXISTS fn1;
2335 CREATE FUNCTION fn1(f1 int8 unsigned ) returns int8 unsigned
2338 DROP FUNCTION IF EXISTS fn1;
2339 CREATE FUNCTION fn1(f1 int zerofill ) returns int zerofill
2342 DROP FUNCTION IF EXISTS fn1;
2343 CREATE FUNCTION fn1(f1 int unsigned zerofill ) returns int unsigned zerofill
2346 DROP FUNCTION IF EXISTS fn1;
2347 CREATE FUNCTION fn1(f1 bigint ) returns bigint
2350 DROP FUNCTION IF EXISTS fn1;
2351 CREATE FUNCTION fn1(f1 bigint unsigned ) returns bigint unsigned
2354 DROP FUNCTION IF EXISTS fn1;
2355 CREATE FUNCTION fn1(f1 bigint zerofill ) returns bigint zerofill
2358 DROP FUNCTION IF EXISTS fn1;
2359 CREATE FUNCTION fn1(f1 bigint unsigned zerofill ) returns bigint unsigned zerofill
2362 DROP FUNCTION IF EXISTS fn1;
2363 CREATE FUNCTION fn1(f1 decimal ) returns decimal
2366 DROP FUNCTION IF EXISTS fn1;
2367 CREATE FUNCTION fn1(f1 decimal unsigned ) returns decimal unsigned
2370 DROP FUNCTION IF EXISTS fn1;
2371 CREATE FUNCTION fn1(f1 decimal zerofill ) returns decimal zerofill
2374 DROP FUNCTION IF EXISTS fn1;
2375 CREATE FUNCTION fn1(f1 decimal unsigned zerofill ) returns decimal unsigned zerofill
2378 DROP FUNCTION IF EXISTS fn1;
2379 CREATE FUNCTION fn1(f1 numeric ) returns numeric
2382 DROP FUNCTION IF EXISTS fn1;
2383 CREATE FUNCTION fn1(f1 numeric unsigned ) returns numeric unsigned
2386 DROP FUNCTION IF EXISTS fn1;
2387 CREATE FUNCTION fn1(f1 numeric zerofill ) returns numeric zerofill
2390 DROP FUNCTION IF EXISTS fn1;
2391 CREATE FUNCTION fn1(f1 numeric unsigned zerofill ) returns numeric unsigned zerofill
2394 DROP FUNCTION IF EXISTS fn1;
2395 CREATE FUNCTION fn1(f1 real ) returns real
2398 DROP FUNCTION IF EXISTS fn1;
2399 CREATE FUNCTION fn1(f1 real unsigned ) returns real unsigned
2402 DROP FUNCTION IF EXISTS fn1;
2403 CREATE FUNCTION fn1(f1 real zerofill ) returns real zerofill
2406 DROP FUNCTION IF EXISTS fn1;
2407 CREATE FUNCTION fn1(f1 real unsigned zerofill ) returns real unsigned zerofill
2410 DROP FUNCTION IF EXISTS fn1;
2411 CREATE FUNCTION fn1(f1 float ) returns float
2414 DROP FUNCTION IF EXISTS fn1;
2415 CREATE FUNCTION fn1(f1 float unsigned ) returns float unsigned
2418 DROP FUNCTION IF EXISTS fn1;
2419 CREATE FUNCTION fn1(f1 float zerofill ) returns float zerofill
2422 DROP FUNCTION IF EXISTS fn1;
2423 CREATE FUNCTION fn1(f1 float unsigned zerofill ) returns float unsigned zerofill
2426 DROP FUNCTION IF EXISTS fn1;
2427 CREATE FUNCTION fn1(f1 date ) returns date
2430 DROP FUNCTION IF EXISTS fn1;
2431 CREATE FUNCTION fn1(f1 time ) returns time
2434 DROP FUNCTION IF EXISTS fn1;
2435 CREATE FUNCTION fn1(f1 datetime ) returns datetime
2438 DROP FUNCTION IF EXISTS fn1;
2439 CREATE FUNCTION fn1(f1 timestamp ) returns timestamp
2442 DROP FUNCTION IF EXISTS fn1;
2443 CREATE FUNCTION fn1(f1 year ) returns year
2446 DROP FUNCTION IF EXISTS fn1;
2447 --error ER_PARSE_ERROR
2448 CREATE FUNCTION fn1(f1 year(f1 3) ) returns year(3)
2451 DROP FUNCTION IF EXISTS fn1;
2452 --error ER_PARSE_ERROR
2453 CREATE FUNCTION fn1(f1 year(f1 4) ) returns year(4)
2456 DROP FUNCTION IF EXISTS fn1;
2457 --error ER_PARSE_ERROR
2458 CREATE FUNCTION fn1(f1 enum(f1 "1enum", "2enum") ) returns enum("1enum", "2enum")
2461 DROP FUNCTION IF EXISTS fn1;
2462 --error ER_PARSE_ERROR
2463 CREATE FUNCTION fn1(f1 set(f1 "1set", "2set") ) returns set("1set", "2set")
2467 # ------------------------------------------------------------------------------
2468 let $message= Testcase 4.1.16:
2470 Ensure that a reference to a non-existent stored procedure is rejected with an
2471 appropriate error message;
2472 --source include/show_msg80.inc
2474 DROP PROCEDURE IF EXISTS sp16;
2476 --error ER_SP_DOES_NOT_EXIST
2479 CREATE DATABASE db1;
2483 CREATE PROCEDURE sp16()
2490 --error ER_SP_DOES_NOT_EXIST
2491 CALL db_storedproc.sp16();
2495 DROP PROCEDURE db1.sp16;
2499 # ------------------------------------------------------------------------------
2500 let $message= Testcase 4.1.17:
2502 Ensure that it is possible to drop, create and CALL/execute a procedure and a
2503 function with the same name, even in the same database;
2504 --source include/show_msg80.inc
2507 DROP FUNCTION IF EXISTS sp1;
2508 DROP PROCEDURE IF EXISTS sp1;
2511 CREATE PROCEDURE sp1 ()
2513 declare x enum( 'db1', 'test' ) default 'test';
2521 CREATE FUNCTION sp1 (y char) returns char return y;
2524 DROP DATABASE IF EXISTS db1;
2525 CREATE DATABASE db1;
2527 CALL db_storedproc.sp1( );
2528 SELECT db_storedproc.sp1( 'a' );
2530 DROP FUNCTION db_storedproc.sp1;
2533 --error ER_SP_DOES_NOT_EXIST
2538 --error ER_SP_DOES_NOT_EXIST
2541 --error ER_SP_DOES_NOT_EXIST
2549 # ------------------------------------------------------------------------------
2550 let $message= Testcase 4.1.18:
2552 Ensure that it is possible to alter a procedure and
2553 a function with the same name, in the same database;
2554 --source include/show_msg80.inc
2558 DROP PROCEDURE IF EXISTS sp1;
2559 DROP FUNCTION IF EXISTS sp1;
2560 set @x=null; set @y=null;
2563 CREATE PROCEDURE sp1()
2570 CREATE FUNCTION sp1 () returns int return 2.2;
2571 CALL db_storedproc.sp1();
2572 SELECT db_storedproc.sp1();
2574 DROP DATABASE IF EXISTS db1;
2575 CREATE DATABASE db1;
2577 alter procedure db_storedproc.sp1 sql security invoker;
2579 SELECT name, type, security_type from mysql.proc where db LIKE 'db_storedproc%' and specific_name='sp1';
2581 alter function db_storedproc.sp1 sql security invoker;
2583 SELECT name, type, security_type from mysql.proc where db LIKE 'db_storedproc%' and specific_name='sp1';
2585 CALL db_storedproc.sp1();
2587 SELECT db_storedproc.sp1();
2590 alter procedure sp1 sql security DEFINER;
2591 CALL db_storedproc.sp1();
2593 SELECT db_storedproc.sp1();
2595 alter function sp1 sql security DEFINER;
2597 SELECT name, type, security_type from mysql.proc where db LIKE 'db_storedproc%' and specific_name='sp1';
2598 CALL db_storedproc.sp1();
2600 SELECT db_storedproc.sp1();
2605 DROP PROCEDURE db_storedproc.sp1;
2606 DROP FUNCTION db_storedproc.sp1;
2608 # ------------------------------------------------------------------------------
2609 let $message= Testcase 4.1.19:
2611 verify altering procedure and function with the same name, does not affect
2612 properties of a procedure and a function with the same name in the different
2614 --source include/show_msg80.inc
2618 DROP DATABASE IF EXISTS db_storedproc_3122;
2621 CREATE DATABASE db_storedproc_3122;
2625 DROP PROCEDURE IF EXISTS sp1;
2626 DROP FUNCTION IF EXISTS sp1;
2627 DROP PROCEDURE IF EXISTS db_storedproc_3122.sp1;
2628 DROP FUNCTION IF EXISTS db_storedproc_3122.sp1;
2630 CREATE PROCEDURE sp1()
2637 # FIXME ps-protocol vs. normal difference when returning float instead of double
2638 CREATE FUNCTION db_storedproc_3122.sp1() RETURNS DOUBLE RETURN 2.2;
2640 SELECT db_storedproc_3122.sp1();
2641 USE db_storedproc_3122;
2644 CREATE PROCEDURE sp1 ()
2651 CREATE FUNCTION db_storedproc.sp1() RETURNS DOUBLE RETURN 4.4;
2653 SELECT db_storedproc.sp1();
2655 ALTER PROCEDURE db_storedproc_3122.sp1 SQL SECURITY INVOKER;
2656 ALTER FUNCTION sp1 SQL SECURITY INVOKER;
2659 SELECT db, name, type, security_type FROM mysql.proc WHERE db LIKE 'db_storedproc%' AND specific_name='sp1';
2661 CALL db_storedproc.sp1();
2663 SELECT db_storedproc.sp1();
2664 CALL db_storedproc_3122.sp1();
2665 SELECT db_storedproc_3122.sp1();
2669 DROP DATABASE db_storedproc_3122;
2670 DROP FUNCTION db_storedproc.sp1;
2671 DROP PROCEDURE db_storedproc.sp1;
2674 # ------------------------------------------------------------------------------
2675 let $message= Testcase 4.1.20:
2677 Ensure that it is possible to alter the comment of a procedure
2678 and a function with the same name, even in the same database;
2679 --source include/show_msg80.inc
2686 DROP PROCEDURE IF EXISTS sp1;
2687 DROP FUNCTION IF EXISTS sp1;
2690 CREATE PROCEDURE sp1 () set @x= 1;
2691 CREATE FUNCTION sp1 () returns int return 2;
2693 DROP DATABASE IF EXISTS db_storedproc_3122;
2694 CREATE DATABASE db_storedproc_3122;
2695 USE db_storedproc_3122;
2697 CREATE PROCEDURE sp1 () set @x= 3;
2698 CREATE FUNCTION sp1 () returns int return 4;
2700 alter procedure sp1 sql security invoker comment 'this is a procedure';
2701 alter function sp1 sql security invoker comment 'this is a function';
2703 alter procedure sp1 sql security DEFINER;
2704 alter function sp1 sql security DEFINER;
2705 --replace_column 5 <modified> 6 <created>
2706 show CREATE PROCEDURE sp1;
2707 --replace_column 5 <modified> 6 <created>
2708 show CREATE FUNCTION sp1;
2712 DROP DATABASE db_storedproc_3122;
2713 DROP FUNCTION db_storedproc.sp1;
2714 DROP PROCEDURE db_storedproc.sp1;
2717 # ------------------------------------------------------------------------------
2718 let $message= Testcase 4.1.21:
2720 Ensure that it is not possible to create two procedures with same name
2722 --source include/show_msg80.inc
2729 DROP DATABASE IF EXISTS db1;
2732 CREATE DATABASE db1;
2733 DROP PROCEDURE IF EXISTS sp1;
2734 CREATE PROCEDURE sp1 () set @x=1;
2736 --error ER_SP_ALREADY_EXISTS
2737 CREATE PROCEDURE sp1 () set @x=2;
2742 --error ER_SP_ALREADY_EXISTS
2743 CREATE PROCEDURE db_storedproc.sp1 () set @x=3;
2744 CALL db_storedproc.sp1();
2747 DROP PROCEDURE IF EXISTS db_storedproc.sp1;
2748 CREATE PROCEDURE db_storedproc.sp1 () set @x=1;
2749 --error ER_SP_ALREADY_EXISTS
2750 CREATE PROCEDURE db_storedproc.sp1 () set @x=2;
2751 CALL db_storedproc.sp1();
2757 DROP PROCEDURE db_storedproc.sp1;
2761 # ------------------------------------------------------------------------------
2762 let $message= Testcase 4.1.22:
2764 Ensure that it is not possible to create two functions with same name in the
2766 --source include/show_msg80.inc
2769 DROP DATABASE IF EXISTS db1;
2770 CREATE DATABASE db1;
2771 DROP FUNCTION IF EXISTS fn1;
2772 CREATE FUNCTION fn1 () returns int return 1;
2773 --error ER_SP_ALREADY_EXISTS
2774 CREATE FUNCTION fn1 () returns int return 2;
2777 --error ER_SP_ALREADY_EXISTS
2778 CREATE FUNCTION db_storedproc.fn1 () returns int return 3;
2779 SELECT db_storedproc.fn1();
2780 DROP FUNCTION IF EXISTS db_storedproc.fn1;
2781 CREATE FUNCTION db_storedproc.fn1 () returns int return 1;
2782 --error ER_SP_ALREADY_EXISTS
2783 CREATE FUNCTION db_storedproc.fn1 () returns int return 2;
2784 SELECT db_storedproc.fn1();
2789 DROP FUNCTION db_storedproc.fn1;
2792 # ------------------------------------------------------------------------------
2793 let $message= Testcase 4.1.23:
2795 Ensure that it is possible to create two or more procedures with the same name,
2796 providing each resides in different databases;
2797 --source include/show_msg80.inc
2803 DROP PROCEDURE IF EXISTS sp1;
2804 CREATE PROCEDURE sp1 () set @x= 1;
2805 DROP DATABASE IF EXISTS test3124;
2806 CREATE DATABASE test3124;
2808 CREATE PROCEDURE sp1 () set @y= 2;
2817 DROP DATABASE test3124;
2818 DROP PROCEDURE db_storedproc.sp1;
2821 # ------------------------------------------------------------------------------
2822 let $message= Testcase 4.1.24:
2824 Ensure that it is possible to create two or more functions with the same name,
2825 providing each resides in different databases.;
2826 --source include/show_msg80.inc
2830 DROP FUNCTION IF EXISTS f1;
2831 CREATE FUNCTION f1 () returns int return 1;
2832 DROP DATABASE IF EXISTS test3125;
2833 CREATE DATABASE test3125;
2834 USE test3125; CREATE FUNCTION f1 () returns int return 2;
2841 DROP DATABASE test3125;
2842 DROP FUNCTION db_storedproc.f1;
2845 # ------------------------------------------------------------------------------
2846 let $message= Testcase 4.1.25:
2848 Ensure that any invalid function name is never accepted, and that an appropriate
2849 error message is returned when the name is rejected. (invalid func name);
2850 --source include/show_msg80.inc
2853 --error ER_PARSE_ERROR
2854 CREATE FUNCTION !_fn1( f1 char(20) ) returns int
2856 SELECT * from t1 where f2 = f1;
2862 --error ER_PARSE_ERROR
2863 CREATE FUNCTION fn1( f1 char(20) ) return int
2865 SELECT * from t1 where f2 = f1;
2870 CREATE FUNCTION fn1() returns int
2873 --error ER_PARSE_ERROR
2874 CREATE FUNCTION procedure() returns int
2877 --error ER_PARSE_ERROR
2878 CREATE FUNCTION fn1(a char) returns int lang sql return 1;
2880 --error ER_PARSE_ERROR
2881 CREATE FUNCTION fn1(a char) returns int deterministic( return 1);
2883 --error ER_PARSE_ERROR
2884 CREATE FUNCTION fn1(a char) returns int non deterministic return 1;
2886 --error ER_PARSE_ERROR
2887 CREATE FUNCTION fn1(a char) returns int not deterministic comment 'abc' language sql sql security refiner return 1;
2891 DROP FUNCTION IF EXISTS fn1;
2895 # ==============================================================================
2897 # test plan section: 4.2 - syntax checks for programming statements - 1
2899 # ==============================================================================
2901 # ------------------------------------------------------------------------------
2902 let $message= Testcase 4.1.1:
2904 Ensure that all clauses that should be supported are supported.
2906 --source include/show_msg80.inc
2914 DROP PROCEDURE IF EXISTS sp1;
2918 CREATE PROCEDURE sp1(cnt int(20))
2920 SELECT count(*) into cnt from t2;
2932 # ------------------------------------------------------------------------------
2933 let $message= Testcase 4.2.2:
2935 --source include/show_msg80.inc
2939 DROP PROCEDURE IF EXISTS sp1;
2943 CREATE PROCEDURE sp1( cnt int(20) )
2945 SELECT count(*) into cnt from t2;
2954 DROP PROCEDURE IF EXISTS sp1;
2959 # this test client has the MULTI_QUERY capability,
2960 # so that the following request (starting at 'CREATE' and ending at the //
2961 # delimiter) is interpreted as follows:
2962 # 1) it's a multi query
2963 # 2) the first query is a valid CREATE PROCEDURE statement, and the
2964 # procedure consist of only one SELECT statement
2965 # 3) the second query is a SET statement, which is broken since it's
2966 # referencing an unknown column 'cnt'
2967 # 4) the next query (SELECT @count) is not parsed or executed, since 3)
2971 --error ER_BAD_FIELD_ERROR
2972 CREATE PROCEDURE sp1( cnt int(20) )
2973 SELECT count(*) into cnt from t2;
2985 # wrong order of BEGIN and END
2987 --error ER_PARSE_ERROR
2988 CREATE PROCEDURE sp1( cnt int(20) )
2990 SELECT count(*) into cnt from t2;
2996 --error ER_SP_DOES_NOT_EXIST
3000 DROP PROCEDURE IF EXISTS sp1;
3003 # invalid usage of BEGIN + END
3005 --error ER_PARSE_ERROR
3006 CREATE PROCEDURE sp1( cnt int(20) )
3008 SELECT count(*) into cnt from t2;
3018 # ------------------------------------------------------------------------------
3019 let $message= Testcase 4.2.4:
3021 Ensure that every BEGIN statement is coupled with a terminating END statement.
3022 (BEGIN with no END);
3023 --source include/show_msg80.inc
3026 DROP PROCEDURE IF EXISTS sp1;
3030 CREATE PROCEDURE sp1( )
3034 SELECT f1, f2 into x, y from t2 limit 1;
3038 # ------------------------------------------------------------------------------
3039 let $message= Testcase ....:
3042 --source include/show_msg80.inc
3045 DROP PROCEDURE IF EXISTS sp1;
3049 --error ER_PARSE_ERROR
3050 CREATE PROCEDURE sp1()
3057 DROP PROCEDURE IF EXISTS sp1;
3061 --error ER_PARSE_ERROR
3062 CREATE PROCEDURE sp1()
3069 DROP PROCEDURE IF EXISTS sp1;
3073 --error ER_PARSE_ERROR
3074 CREATE PROCEDURE sp1()
3081 DROP PROCEDURE IF EXISTS sp1;
3085 --error ER_SP_BADSTATEMENT
3086 CREATE PROCEDURE sp1()
3093 DROP PROCEDURE IF EXISTS sp1;
3097 --error ER_PARSE_ERROR
3098 CREATE PROCEDURE sp1()
3105 DROP PROCEDURE IF EXISTS sp1;
3109 --error ER_PARSE_ERROR
3110 CREATE PROCEDURE sp1()
3117 DROP PROCEDURE IF EXISTS sp1;
3121 --error ER_PARSE_ERROR
3122 CREATE PROCEDURE sp1()
3129 DROP PROCEDURE IF EXISTS sp1;
3133 --error ER_PARSE_ERROR
3134 CREATE PROCEDURE sp1()
3141 DROP PROCEDURE IF EXISTS sp1;
3145 --error ER_PARSE_ERROR
3146 CREATE PROCEDURE sp1()
3153 DROP PROCEDURE IF EXISTS sp1;
3157 --error ER_PARSE_ERROR
3158 CREATE PROCEDURE sp1()
3165 DROP PROCEDURE IF EXISTS sp1;
3169 --error ER_PARSE_ERROR
3170 CREATE PROCEDURE sp1()
3177 DROP PROCEDURE IF EXISTS sp1;
3181 --error ER_PARSE_ERROR
3182 CREATE PROCEDURE sp1()
3189 DROP PROCEDURE IF EXISTS sp1;
3193 --error ER_PARSE_ERROR
3194 CREATE PROCEDURE sp1()
3201 DROP PROCEDURE IF EXISTS sp1;
3205 --error ER_PARSE_ERROR
3206 CREATE PROCEDURE sp1()
3213 DROP PROCEDURE IF EXISTS sp1;
3217 --error ER_PARSE_ERROR
3218 CREATE PROCEDURE sp1()
3225 DROP PROCEDURE IF EXISTS sp1;
3229 --error ER_PARSE_ERROR
3230 CREATE PROCEDURE sp1()
3237 DROP PROCEDURE IF EXISTS sp1;
3241 --error ER_PARSE_ERROR
3242 CREATE PROCEDURE sp1()
3249 DROP PROCEDURE IF EXISTS sp1;
3253 --error ER_PARSE_ERROR
3254 CREATE PROCEDURE sp1()
3261 DROP PROCEDURE IF EXISTS sp1;
3265 --error ER_PARSE_ERROR
3266 CREATE PROCEDURE sp1()
3273 DROP PROCEDURE IF EXISTS sp1;
3277 --error ER_PARSE_ERROR
3278 CREATE PROCEDURE sp1()
3285 DROP PROCEDURE IF EXISTS sp1;
3289 --error ER_PARSE_ERROR
3290 CREATE PROCEDURE sp1()
3297 DROP PROCEDURE IF EXISTS sp1;
3301 --error ER_PARSE_ERROR
3302 CREATE PROCEDURE sp1()
3309 DROP PROCEDURE IF EXISTS sp1;
3313 --error ER_PARSE_ERROR
3314 CREATE PROCEDURE sp1()
3321 DROP PROCEDURE IF EXISTS sp1;
3325 --error ER_PARSE_ERROR
3326 CREATE PROCEDURE sp1()
3333 DROP PROCEDURE IF EXISTS sp1;
3337 --error ER_PARSE_ERROR
3338 CREATE PROCEDURE sp1()
3345 DROP PROCEDURE IF EXISTS sp1;
3349 --error ER_PARSE_ERROR
3350 CREATE PROCEDURE sp1()
3357 DROP PROCEDURE IF EXISTS sp1;
3361 --error ER_PARSE_ERROR
3362 CREATE PROCEDURE sp1()
3369 DROP PROCEDURE IF EXISTS sp1;
3373 --error ER_PARSE_ERROR
3374 CREATE PROCEDURE sp1()
3381 DROP PROCEDURE IF EXISTS sp1;
3385 --error ER_PARSE_ERROR
3386 CREATE PROCEDURE sp1()
3393 DROP PROCEDURE IF EXISTS sp1;
3397 --error ER_PARSE_ERROR
3398 CREATE PROCEDURE sp1()
3405 DROP PROCEDURE IF EXISTS sp1;
3409 --error ER_PARSE_ERROR
3410 CREATE PROCEDURE sp1()
3417 DROP PROCEDURE IF EXISTS sp1;
3421 --error ER_PARSE_ERROR
3422 CREATE PROCEDURE sp1()
3429 DROP PROCEDURE IF EXISTS sp1;
3433 --error ER_PARSE_ERROR
3434 CREATE PROCEDURE sp1()
3441 DROP PROCEDURE IF EXISTS sp1;
3445 --error ER_PARSE_ERROR
3446 CREATE PROCEDURE sp1()
3447 current_timestamp:BEGIN
3453 DROP PROCEDURE IF EXISTS sp1;
3457 --error ER_PARSE_ERROR
3458 CREATE PROCEDURE sp1()
3465 DROP PROCEDURE IF EXISTS sp1;
3469 --error ER_PARSE_ERROR
3470 CREATE PROCEDURE sp1()
3477 DROP PROCEDURE IF EXISTS sp1;
3481 --error ER_PARSE_ERROR
3482 CREATE PROCEDURE sp1()
3489 DROP PROCEDURE IF EXISTS sp1;
3493 --error ER_PARSE_ERROR
3494 CREATE PROCEDURE sp1()
3501 DROP PROCEDURE IF EXISTS sp1;
3505 --error ER_PARSE_ERROR
3506 CREATE PROCEDURE sp1()
3513 DROP PROCEDURE IF EXISTS sp1;
3517 --error ER_PARSE_ERROR
3518 CREATE PROCEDURE sp1()
3519 day_microsecond:BEGIN
3525 DROP PROCEDURE IF EXISTS sp1;
3529 --error ER_PARSE_ERROR
3530 CREATE PROCEDURE sp1()
3537 DROP PROCEDURE IF EXISTS sp1;
3541 --error ER_PARSE_ERROR
3542 CREATE PROCEDURE sp1()
3549 DROP PROCEDURE IF EXISTS sp1;
3553 --error ER_PARSE_ERROR
3554 CREATE PROCEDURE sp1()
3561 DROP PROCEDURE IF EXISTS sp1;
3565 --error ER_PARSE_ERROR
3566 CREATE PROCEDURE sp1()
3573 DROP PROCEDURE IF EXISTS sp1;
3577 --error ER_PARSE_ERROR
3578 CREATE PROCEDURE sp1()
3585 DROP PROCEDURE IF EXISTS sp1;
3589 --error ER_PARSE_ERROR
3590 CREATE PROCEDURE sp1()
3597 DROP PROCEDURE IF EXISTS sp1;
3601 --error ER_PARSE_ERROR
3602 CREATE PROCEDURE sp1()
3609 DROP PROCEDURE IF EXISTS sp1;
3613 --error ER_PARSE_ERROR
3614 CREATE PROCEDURE sp1()
3621 DROP PROCEDURE IF EXISTS sp1;
3625 --error ER_PARSE_ERROR
3626 CREATE PROCEDURE sp1()
3633 DROP PROCEDURE IF EXISTS sp1;
3637 --error ER_PARSE_ERROR
3638 CREATE PROCEDURE sp1()
3645 DROP PROCEDURE IF EXISTS sp1;
3649 --error ER_PARSE_ERROR
3650 CREATE PROCEDURE sp1()
3657 DROP PROCEDURE IF EXISTS sp1;
3661 --error ER_PARSE_ERROR
3662 CREATE PROCEDURE sp1()
3669 DROP PROCEDURE IF EXISTS sp1;
3673 --error ER_PARSE_ERROR
3674 CREATE PROCEDURE sp1()
3681 DROP PROCEDURE IF EXISTS sp1;
3685 --error ER_PARSE_ERROR
3686 CREATE PROCEDURE sp1()
3693 DROP PROCEDURE IF EXISTS sp1;
3697 --error ER_PARSE_ERROR
3698 CREATE PROCEDURE sp1()
3705 DROP PROCEDURE IF EXISTS sp1;
3709 --error ER_PARSE_ERROR
3710 CREATE PROCEDURE sp1()
3717 DROP PROCEDURE IF EXISTS sp1;
3721 --error ER_PARSE_ERROR
3722 CREATE PROCEDURE sp1()
3729 DROP PROCEDURE IF EXISTS sp1;
3733 --error ER_PARSE_ERROR
3734 CREATE PROCEDURE sp1()
3741 DROP PROCEDURE IF EXISTS sp1;
3745 --error ER_PARSE_ERROR
3746 CREATE PROCEDURE sp1()
3753 DROP PROCEDURE IF EXISTS sp1;
3757 --error ER_PARSE_ERROR
3758 CREATE PROCEDURE sp1()
3765 DROP PROCEDURE IF EXISTS sp1;
3769 --error ER_PARSE_ERROR
3770 CREATE PROCEDURE sp1()
3777 DROP PROCEDURE IF EXISTS sp1;
3781 --error ER_PARSE_ERROR
3782 CREATE PROCEDURE sp1()
3789 DROP PROCEDURE IF EXISTS sp1;
3793 --error ER_PARSE_ERROR
3794 CREATE PROCEDURE sp1()
3801 DROP PROCEDURE IF EXISTS sp1;
3805 --error ER_PARSE_ERROR
3806 CREATE PROCEDURE sp1()
3813 DROP PROCEDURE IF EXISTS sp1;
3817 --error ER_PARSE_ERROR
3818 CREATE PROCEDURE sp1()
3825 DROP PROCEDURE IF EXISTS sp1;
3829 --error ER_PARSE_ERROR
3830 CREATE PROCEDURE sp1()
3837 DROP PROCEDURE IF EXISTS sp1;
3841 --error ER_PARSE_ERROR
3842 CREATE PROCEDURE sp1()
3849 DROP PROCEDURE IF EXISTS sp1;
3853 --error ER_PARSE_ERROR
3854 CREATE PROCEDURE sp1()
3861 DROP PROCEDURE IF EXISTS sp1;
3865 --error ER_PARSE_ERROR
3866 CREATE PROCEDURE sp1()
3873 DROP PROCEDURE IF EXISTS sp1;
3877 --error ER_PARSE_ERROR
3878 CREATE PROCEDURE sp1()
3885 DROP PROCEDURE IF EXISTS sp1;
3889 --error ER_PARSE_ERROR
3890 CREATE PROCEDURE sp1()
3897 DROP PROCEDURE IF EXISTS sp1;
3901 --error ER_PARSE_ERROR
3902 CREATE PROCEDURE sp1()
3909 DROP PROCEDURE IF EXISTS sp1;
3913 --error ER_PARSE_ERROR
3914 CREATE PROCEDURE sp1()
3921 DROP PROCEDURE IF EXISTS sp1;
3925 --error ER_PARSE_ERROR
3926 CREATE PROCEDURE sp1()
3933 DROP PROCEDURE IF EXISTS sp1;
3937 --error ER_PARSE_ERROR
3938 CREATE PROCEDURE sp1()
3945 DROP PROCEDURE IF EXISTS sp1;
3949 --error ER_PARSE_ERROR
3950 CREATE PROCEDURE sp1()
3957 DROP PROCEDURE IF EXISTS sp1;
3961 --error ER_PARSE_ERROR
3962 CREATE PROCEDURE sp1()
3969 DROP PROCEDURE IF EXISTS sp1;
3973 --error ER_PARSE_ERROR
3974 CREATE PROCEDURE sp1()
3981 DROP PROCEDURE IF EXISTS sp1;
3985 --error ER_PARSE_ERROR
3986 CREATE PROCEDURE sp1()
3993 DROP PROCEDURE IF EXISTS sp1;
3997 --error ER_PARSE_ERROR
3998 CREATE PROCEDURE sp1()
3999 hour_microsecond:BEGIN
4005 DROP PROCEDURE IF EXISTS sp1;
4009 --error ER_PARSE_ERROR
4010 CREATE PROCEDURE sp1()
4017 DROP PROCEDURE IF EXISTS sp1;
4021 --error ER_PARSE_ERROR
4022 CREATE PROCEDURE sp1()
4029 DROP PROCEDURE IF EXISTS sp1;
4033 --error ER_PARSE_ERROR
4034 CREATE PROCEDURE sp1()
4041 DROP PROCEDURE IF EXISTS sp1;
4045 --error ER_PARSE_ERROR
4046 CREATE PROCEDURE sp1()
4053 DROP PROCEDURE IF EXISTS sp1;
4057 --error ER_PARSE_ERROR
4058 CREATE PROCEDURE sp1()
4065 DROP PROCEDURE IF EXISTS sp1;
4069 --error ER_PARSE_ERROR
4070 CREATE PROCEDURE sp1()
4077 DROP PROCEDURE IF EXISTS sp1;
4081 --error ER_PARSE_ERROR
4082 CREATE PROCEDURE sp1()
4089 DROP PROCEDURE IF EXISTS sp1;
4093 --error ER_PARSE_ERROR
4094 CREATE PROCEDURE sp1()
4101 DROP PROCEDURE IF EXISTS sp1;
4105 --error ER_PARSE_ERROR
4106 CREATE PROCEDURE sp1()
4113 DROP PROCEDURE IF EXISTS sp1;
4117 --error ER_PARSE_ERROR
4118 CREATE PROCEDURE sp1()
4125 DROP PROCEDURE IF EXISTS sp1;
4129 --error ER_PARSE_ERROR
4130 CREATE PROCEDURE sp1()
4137 DROP PROCEDURE IF EXISTS sp1;
4141 --error ER_PARSE_ERROR
4142 CREATE PROCEDURE sp1()
4149 DROP PROCEDURE IF EXISTS sp1;
4153 --error ER_PARSE_ERROR
4154 CREATE PROCEDURE sp1()
4161 DROP PROCEDURE IF EXISTS sp1;
4165 --error ER_PARSE_ERROR
4166 CREATE PROCEDURE sp1()
4173 DROP PROCEDURE IF EXISTS sp1;
4177 --error ER_PARSE_ERROR
4178 CREATE PROCEDURE sp1()
4185 DROP PROCEDURE IF EXISTS sp1;
4189 --error ER_PARSE_ERROR
4190 CREATE PROCEDURE sp1()
4197 DROP PROCEDURE IF EXISTS sp1;
4201 --error ER_PARSE_ERROR
4202 CREATE PROCEDURE sp1()
4209 DROP PROCEDURE IF EXISTS sp1;
4213 --error ER_PARSE_ERROR
4214 CREATE PROCEDURE sp1()
4221 DROP PROCEDURE IF EXISTS sp1;
4225 --error ER_PARSE_ERROR
4226 CREATE PROCEDURE sp1()
4233 DROP PROCEDURE IF EXISTS sp1;
4237 --error ER_PARSE_ERROR
4238 CREATE PROCEDURE sp1()
4245 DROP PROCEDURE IF EXISTS sp1;
4249 --error ER_PARSE_ERROR
4250 CREATE PROCEDURE sp1()
4257 DROP PROCEDURE IF EXISTS sp1;
4261 --error ER_PARSE_ERROR
4262 CREATE PROCEDURE sp1()
4269 DROP PROCEDURE IF EXISTS sp1;
4273 --error ER_PARSE_ERROR
4274 CREATE PROCEDURE sp1()
4281 DROP PROCEDURE IF EXISTS sp1;
4285 --error ER_PARSE_ERROR
4286 CREATE PROCEDURE sp1()
4293 DROP PROCEDURE IF EXISTS sp1;
4297 --error ER_PARSE_ERROR
4298 CREATE PROCEDURE sp1()
4305 DROP PROCEDURE IF EXISTS sp1;
4309 --error ER_PARSE_ERROR
4310 CREATE PROCEDURE sp1()
4317 DROP PROCEDURE IF EXISTS sp1;
4321 --error ER_PARSE_ERROR
4322 CREATE PROCEDURE sp1()
4329 DROP PROCEDURE IF EXISTS sp1;
4333 --error ER_PARSE_ERROR
4334 CREATE PROCEDURE sp1()
4341 DROP PROCEDURE IF EXISTS sp1;
4345 --error ER_PARSE_ERROR
4346 CREATE PROCEDURE sp1()
4353 DROP PROCEDURE IF EXISTS sp1;
4357 --error ER_PARSE_ERROR
4358 CREATE PROCEDURE sp1()
4365 DROP PROCEDURE IF EXISTS sp1;
4369 --error ER_PARSE_ERROR
4370 CREATE PROCEDURE sp1()
4377 DROP PROCEDURE IF EXISTS sp1;
4381 --error ER_PARSE_ERROR
4382 CREATE PROCEDURE sp1()
4389 DROP PROCEDURE IF EXISTS sp1;
4393 --error ER_PARSE_ERROR
4394 CREATE PROCEDURE sp1()
4401 DROP PROCEDURE IF EXISTS sp1;
4405 --error ER_PARSE_ERROR
4406 CREATE PROCEDURE sp1()
4413 DROP PROCEDURE IF EXISTS sp1;
4417 --error ER_PARSE_ERROR
4418 CREATE PROCEDURE sp1()
4425 DROP PROCEDURE IF EXISTS sp1;
4429 --error ER_PARSE_ERROR
4430 CREATE PROCEDURE sp1()
4431 localtimestamp:BEGIN
4437 DROP PROCEDURE IF EXISTS sp1;
4441 --error ER_PARSE_ERROR
4442 CREATE PROCEDURE sp1()
4449 DROP PROCEDURE IF EXISTS sp1;
4453 --error ER_PARSE_ERROR
4454 CREATE PROCEDURE sp1()
4461 DROP PROCEDURE IF EXISTS sp1;
4465 --error ER_PARSE_ERROR
4466 CREATE PROCEDURE sp1()
4473 DROP PROCEDURE IF EXISTS sp1;
4477 --error ER_PARSE_ERROR
4478 CREATE PROCEDURE sp1()
4485 DROP PROCEDURE IF EXISTS sp1;
4489 --error ER_PARSE_ERROR
4490 CREATE PROCEDURE sp1()
4497 DROP PROCEDURE IF EXISTS sp1;
4501 --error ER_PARSE_ERROR
4502 CREATE PROCEDURE sp1()
4509 DROP PROCEDURE IF EXISTS sp1;
4513 --error ER_PARSE_ERROR
4514 CREATE PROCEDURE sp1()
4515 master_ssl_verify_server_cert:BEGIN
4521 DROP PROCEDURE IF EXISTS sp1;
4525 --error ER_PARSE_ERROR
4526 CREATE PROCEDURE sp1()
4533 DROP PROCEDURE IF EXISTS sp1;
4537 --error ER_PARSE_ERROR
4538 CREATE PROCEDURE sp1()
4545 DROP PROCEDURE IF EXISTS sp1;
4549 --error ER_PARSE_ERROR
4550 CREATE PROCEDURE sp1()
4557 DROP PROCEDURE IF EXISTS sp1;
4561 --error ER_PARSE_ERROR
4562 CREATE PROCEDURE sp1()
4569 DROP PROCEDURE IF EXISTS sp1;
4573 --error ER_PARSE_ERROR
4574 CREATE PROCEDURE sp1()
4581 DROP PROCEDURE IF EXISTS sp1;
4585 --error ER_PARSE_ERROR
4586 CREATE PROCEDURE sp1()
4587 minute_microsecond:BEGIN
4593 DROP PROCEDURE IF EXISTS sp1;
4597 --error ER_PARSE_ERROR
4598 CREATE PROCEDURE sp1()
4605 DROP PROCEDURE IF EXISTS sp1;
4609 --error ER_PARSE_ERROR
4610 CREATE PROCEDURE sp1()
4617 DROP PROCEDURE IF EXISTS sp1;
4621 --error ER_PARSE_ERROR
4622 CREATE PROCEDURE sp1()
4629 DROP PROCEDURE IF EXISTS sp1;
4633 --error ER_PARSE_ERROR
4634 CREATE PROCEDURE sp1()
4641 DROP PROCEDURE IF EXISTS sp1;
4645 --error ER_PARSE_ERROR
4646 CREATE PROCEDURE sp1()
4653 DROP PROCEDURE IF EXISTS sp1;
4657 --error ER_PARSE_ERROR
4658 CREATE PROCEDURE sp1()
4659 no_write_to_binlog:BEGIN
4665 DROP PROCEDURE IF EXISTS sp1;
4669 --error ER_PARSE_ERROR
4670 CREATE PROCEDURE sp1()
4677 DROP PROCEDURE IF EXISTS sp1;
4682 --error ER_PARSE_ERROR
4683 CREATE PROCEDURE sp1()
4690 DROP PROCEDURE IF EXISTS sp1;
4694 --error ER_PARSE_ERROR
4695 CREATE PROCEDURE sp1()
4702 DROP PROCEDURE IF EXISTS sp1;
4706 --error ER_PARSE_ERROR
4707 CREATE PROCEDURE sp1()
4714 DROP PROCEDURE IF EXISTS sp1;
4718 --error ER_PARSE_ERROR
4719 CREATE PROCEDURE sp1()
4726 DROP PROCEDURE IF EXISTS sp1;
4730 --error ER_PARSE_ERROR
4731 CREATE PROCEDURE sp1()
4738 DROP PROCEDURE IF EXISTS sp1;
4742 --error ER_PARSE_ERROR
4743 CREATE PROCEDURE sp1()
4750 DROP PROCEDURE IF EXISTS sp1;
4754 --error ER_PARSE_ERROR
4755 CREATE PROCEDURE sp1()
4762 DROP PROCEDURE IF EXISTS sp1;
4766 --error ER_PARSE_ERROR
4767 CREATE PROCEDURE sp1()
4774 DROP PROCEDURE IF EXISTS sp1;
4778 --error ER_PARSE_ERROR
4779 CREATE PROCEDURE sp1()
4786 DROP PROCEDURE IF EXISTS sp1;
4790 --error ER_PARSE_ERROR
4791 CREATE PROCEDURE sp1()
4798 DROP PROCEDURE IF EXISTS sp1;
4802 --error ER_PARSE_ERROR
4803 CREATE PROCEDURE sp1()
4810 DROP PROCEDURE IF EXISTS sp1;
4814 --error ER_PARSE_ERROR
4815 CREATE PROCEDURE sp1()
4822 DROP PROCEDURE IF EXISTS sp1;
4826 --error ER_PARSE_ERROR
4827 CREATE PROCEDURE sp1()
4834 DROP PROCEDURE IF EXISTS sp1;
4838 --error ER_PARSE_ERROR
4839 CREATE PROCEDURE sp1()
4846 DROP PROCEDURE IF EXISTS sp1;
4850 --error ER_PARSE_ERROR
4851 CREATE PROCEDURE sp1()
4858 DROP PROCEDURE IF EXISTS sp1;
4862 --error ER_PARSE_ERROR
4863 CREATE PROCEDURE sp1()
4870 DROP PROCEDURE IF EXISTS sp1;
4874 --error ER_PARSE_ERROR
4875 CREATE PROCEDURE sp1()
4882 DROP PROCEDURE IF EXISTS sp1;
4886 # --error ER_PARSE_ERROR
4887 # CREATE PROCEDURE sp1()
4894 DROP PROCEDURE IF EXISTS sp1;
4898 --error ER_PARSE_ERROR
4899 CREATE PROCEDURE sp1()
4906 DROP PROCEDURE IF EXISTS sp1;
4910 --error ER_PARSE_ERROR
4911 CREATE PROCEDURE sp1()
4918 DROP PROCEDURE IF EXISTS sp1;
4922 --error ER_PARSE_ERROR
4923 CREATE PROCEDURE sp1()
4930 DROP PROCEDURE IF EXISTS sp1;
4934 --error ER_PARSE_ERROR
4935 CREATE PROCEDURE sp1()
4942 DROP PROCEDURE IF EXISTS sp1;
4946 --error ER_PARSE_ERROR
4947 CREATE PROCEDURE sp1()
4954 DROP PROCEDURE IF EXISTS sp1;
4958 --error ER_PARSE_ERROR
4959 CREATE PROCEDURE sp1()
4966 DROP PROCEDURE IF EXISTS sp1;
4970 --error ER_PARSE_ERROR
4971 CREATE PROCEDURE sp1()
4978 DROP PROCEDURE IF EXISTS sp1;
4982 --error ER_PARSE_ERROR
4983 CREATE PROCEDURE sp1()
4990 DROP PROCEDURE IF EXISTS sp1;
4994 --error ER_PARSE_ERROR
4995 CREATE PROCEDURE sp1()
5002 DROP PROCEDURE IF EXISTS sp1;
5006 --error ER_PARSE_ERROR
5007 CREATE PROCEDURE sp1()
5014 DROP PROCEDURE IF EXISTS sp1;
5018 --error ER_PARSE_ERROR
5019 CREATE PROCEDURE sp1()
5026 DROP PROCEDURE IF EXISTS sp1;
5030 --error ER_PARSE_ERROR
5031 CREATE PROCEDURE sp1()
5038 DROP PROCEDURE IF EXISTS sp1;
5042 --error ER_PARSE_ERROR
5043 CREATE PROCEDURE sp1()
5050 DROP PROCEDURE IF EXISTS sp1;
5054 --error ER_PARSE_ERROR
5055 CREATE PROCEDURE sp1()
5062 DROP PROCEDURE IF EXISTS sp1;
5066 --error ER_PARSE_ERROR
5067 CREATE PROCEDURE sp1()
5074 DROP PROCEDURE IF EXISTS sp1;
5078 --error ER_PARSE_ERROR
5079 CREATE PROCEDURE sp1()
5086 DROP PROCEDURE IF EXISTS sp1;
5090 --error ER_PARSE_ERROR
5091 CREATE PROCEDURE sp1()
5092 second_microsecond:BEGIN
5098 DROP PROCEDURE IF EXISTS sp1;
5102 --error ER_PARSE_ERROR
5103 CREATE PROCEDURE sp1()
5110 DROP PROCEDURE IF EXISTS sp1;
5114 --error ER_PARSE_ERROR
5115 CREATE PROCEDURE sp1()
5122 DROP PROCEDURE IF EXISTS sp1;
5126 --error ER_PARSE_ERROR
5127 CREATE PROCEDURE sp1()
5134 DROP PROCEDURE IF EXISTS sp1;
5138 --error ER_PARSE_ERROR
5139 CREATE PROCEDURE sp1()
5146 DROP PROCEDURE IF EXISTS sp1;
5150 --error ER_PARSE_ERROR
5151 CREATE PROCEDURE sp1()
5158 DROP PROCEDURE IF EXISTS sp1;
5162 --error ER_PARSE_ERROR
5163 CREATE PROCEDURE sp1()
5170 DROP PROCEDURE IF EXISTS sp1;
5174 --error ER_PARSE_ERROR
5175 CREATE PROCEDURE sp1()
5182 DROP PROCEDURE IF EXISTS sp1;
5186 --error ER_PARSE_ERROR
5187 CREATE PROCEDURE sp1()
5194 DROP PROCEDURE IF EXISTS sp1;
5198 --error ER_PARSE_ERROR
5199 CREATE PROCEDURE sp1()
5206 DROP PROCEDURE IF EXISTS sp1;
5210 --error ER_PARSE_ERROR
5211 CREATE PROCEDURE sp1()
5218 DROP PROCEDURE IF EXISTS sp1;
5222 --error ER_PARSE_ERROR
5223 CREATE PROCEDURE sp1()
5230 DROP PROCEDURE IF EXISTS sp1;
5234 --error ER_PARSE_ERROR
5235 CREATE PROCEDURE sp1()
5242 DROP PROCEDURE IF EXISTS sp1;
5246 --error ER_PARSE_ERROR
5247 CREATE PROCEDURE sp1()
5248 sql_big_result:BEGIN
5254 DROP PROCEDURE IF EXISTS sp1;
5258 --error ER_PARSE_ERROR
5259 CREATE PROCEDURE sp1()
5260 sql_calc_found_rows:BEGIN
5266 DROP PROCEDURE IF EXISTS sp1;
5270 --error ER_PARSE_ERROR
5271 CREATE PROCEDURE sp1()
5272 sql_small_result:BEGIN
5278 DROP PROCEDURE IF EXISTS sp1;
5282 --error ER_PARSE_ERROR
5283 CREATE PROCEDURE sp1()
5290 DROP PROCEDURE IF EXISTS sp1;
5294 --error ER_PARSE_ERROR
5295 CREATE PROCEDURE sp1()
5302 DROP PROCEDURE IF EXISTS sp1;
5306 --error ER_PARSE_ERROR
5307 CREATE PROCEDURE sp1()
5314 DROP PROCEDURE IF EXISTS sp1;
5318 --error ER_PARSE_ERROR
5319 CREATE PROCEDURE sp1()
5326 DROP PROCEDURE IF EXISTS sp1;
5330 --error ER_PARSE_ERROR
5331 CREATE PROCEDURE sp1()
5338 DROP PROCEDURE IF EXISTS sp1;
5342 --error ER_PARSE_ERROR
5343 CREATE PROCEDURE sp1()
5350 DROP PROCEDURE IF EXISTS sp1;
5354 --error ER_PARSE_ERROR
5355 CREATE PROCEDURE sp1()
5362 DROP PROCEDURE IF EXISTS sp1;
5366 --error ER_PARSE_ERROR
5367 CREATE PROCEDURE sp1()
5374 DROP PROCEDURE IF EXISTS sp1;
5378 --error ER_PARSE_ERROR
5379 CREATE PROCEDURE sp1()
5386 DROP PROCEDURE IF EXISTS sp1;
5390 --error ER_PARSE_ERROR
5391 CREATE PROCEDURE sp1()
5398 DROP PROCEDURE IF EXISTS sp1;
5402 --error ER_PARSE_ERROR
5403 CREATE PROCEDURE sp1()
5410 DROP PROCEDURE IF EXISTS sp1;
5414 --error ER_PARSE_ERROR
5415 CREATE PROCEDURE sp1()
5422 DROP PROCEDURE IF EXISTS sp1;
5426 --error ER_PARSE_ERROR
5427 CREATE PROCEDURE sp1()
5434 DROP PROCEDURE IF EXISTS sp1;
5438 --error ER_PARSE_ERROR
5439 CREATE PROCEDURE sp1()
5446 DROP PROCEDURE IF EXISTS sp1;
5450 --error ER_PARSE_ERROR
5451 CREATE PROCEDURE sp1()
5458 DROP PROCEDURE IF EXISTS sp1;
5462 --error ER_PARSE_ERROR
5463 CREATE PROCEDURE sp1()
5470 DROP PROCEDURE IF EXISTS sp1;
5474 --error ER_SP_BADSTATEMENT
5475 CREATE PROCEDURE sp1()
5482 DROP PROCEDURE IF EXISTS sp1;
5486 --error ER_PARSE_ERROR
5487 CREATE PROCEDURE sp1()
5494 DROP PROCEDURE IF EXISTS sp1;
5498 --error ER_PARSE_ERROR
5499 CREATE PROCEDURE sp1()
5506 DROP PROCEDURE IF EXISTS sp1;
5510 --error ER_PARSE_ERROR
5511 CREATE PROCEDURE sp1()
5518 DROP PROCEDURE IF EXISTS sp1;
5522 --error ER_PARSE_ERROR
5523 CREATE PROCEDURE sp1()
5530 DROP PROCEDURE IF EXISTS sp1;
5534 --error ER_PARSE_ERROR
5535 CREATE PROCEDURE sp1()
5542 DROP PROCEDURE IF EXISTS sp1;
5546 --error ER_PARSE_ERROR
5547 CREATE PROCEDURE sp1()
5554 DROP PROCEDURE IF EXISTS sp1;
5558 --error ER_PARSE_ERROR
5559 CREATE PROCEDURE sp1()
5566 DROP PROCEDURE IF EXISTS sp1;
5570 --error ER_PARSE_ERROR
5571 CREATE PROCEDURE sp1()
5578 DROP PROCEDURE IF EXISTS sp1;
5582 --error ER_PARSE_ERROR
5583 CREATE PROCEDURE sp1()
5590 DROP PROCEDURE IF EXISTS sp1;
5594 --error ER_PARSE_ERROR
5595 CREATE PROCEDURE sp1()
5602 DROP PROCEDURE IF EXISTS sp1;
5606 --error ER_PARSE_ERROR
5607 CREATE PROCEDURE sp1()
5614 DROP PROCEDURE IF EXISTS sp1;
5618 --error ER_PARSE_ERROR
5619 CREATE PROCEDURE sp1()
5626 DROP PROCEDURE IF EXISTS sp1;
5630 --error ER_PARSE_ERROR
5631 CREATE PROCEDURE sp1()
5638 DROP PROCEDURE IF EXISTS sp1;
5642 --error ER_PARSE_ERROR
5643 CREATE PROCEDURE sp1()
5650 DROP PROCEDURE IF EXISTS sp1;
5654 --error ER_PARSE_ERROR
5655 CREATE PROCEDURE sp1()
5662 DROP PROCEDURE IF EXISTS sp1;
5666 --error ER_PARSE_ERROR
5667 CREATE PROCEDURE sp1()
5674 DROP PROCEDURE IF EXISTS sp1;
5678 --error ER_PARSE_ERROR
5679 CREATE PROCEDURE sp1()
5686 DROP PROCEDURE IF EXISTS sp1;
5690 --error ER_PARSE_ERROR
5691 CREATE PROCEDURE sp1()
5698 DROP PROCEDURE IF EXISTS sp1;
5702 --error ER_PARSE_ERROR
5703 CREATE PROCEDURE sp1()
5710 DROP PROCEDURE IF EXISTS sp1;
5714 --error ER_PARSE_ERROR
5715 CREATE PROCEDURE sp1()
5722 DROP PROCEDURE IF EXISTS sp1;
5726 --error ER_PARSE_ERROR
5727 CREATE PROCEDURE sp1()
5733 # ------------------------------------------------------------------------------
5734 let $message= Testcase 4.2.6:
5736 Ensure that the labels for multiple BEGIN an END work properly;
5737 --source include/show_msg80.inc
5740 DROP PROCEDURE IF EXISTS sp1;
5745 CREATE PROCEDURE sp1( )
5754 SELECT f1, f2 into x, y from t2 limit 1;
5767 # ------------------------------------------------------------------------------
5768 let $message= Testcase 4.2.7:
5770 Ensure that the labels enclosing each BEGIN/END compound statement must match.;
5771 --source include/show_msg80.inc
5774 DROP PROCEDURE IF EXISTS sp1;
5778 --error ER_SP_LABEL_MISMATCH
5779 CREATE PROCEDURE sp1( )
5783 SELECT lf1, f1 into x, y from t2 limit 1;
5787 SELECT f1, f2 into x, y from t2 limit 1;
5789 END begin1_changed//
5792 # ------------------------------------------------------------------------------
5793 let $message= Testcase 4.2.8:
5795 Ensure that it is possible to put a beginning label at the start of a
5796 BEGIN/END compound statement without also requiring an ending label
5797 at the END of the same statement.;
5798 --source include/show_msg80.inc
5801 DROP PROCEDURE IF EXISTS sp1;
5805 CREATE PROCEDURE sp1( )
5809 SELECT f1, f2 into x, y from t2 limit 1;
5818 # ------------------------------------------------------------------------------
5819 let $message= Testcase 4.2.9:
5821 Ensure that it is not possible to put an ending label at the END of
5822 a BEGIN/END compound statement without also requiring a matching
5823 beginning label at the start of the same statement;
5824 --source include/show_msg80.inc
5827 DROP PROCEDURE IF EXISTS sp1;
5831 --error ER_PARSE_ERROR
5832 CREATE PROCEDURE sp1( )
5836 SELECT f1, f2 into x, y from t2 limit 1;
5840 # ------------------------------------------------------------------------------
5841 let $message= Testcase 4.2.10:
5843 Ensure that every beginning label must END with a colon(:);
5844 --source include/show_msg80.inc
5847 DROP PROCEDURE IF EXISTS sp1;
5851 --error ER_PARSE_ERROR
5852 CREATE PROCEDURE sp1( )
5856 SELECT f1, f2 into x, y from t2 limit 1;
5860 # ------------------------------------------------------------------------------
5861 let $message= Testcase 4.2.11:
5863 Ensure that every beginning label with the same scope must be unique. (same label names);
5864 --source include/show_msg80.inc
5868 DROP PROCEDURE IF EXISTS sp6;
5872 --error ER_SP_LABEL_REDEFINE
5873 CREATE PROCEDURE sp6( )
5874 begin_samelabel: BEGIN
5877 SELECT f1, f2 into x, y from t2 limit 1;
5878 begin_samelabel: BEGIN
5881 SELECT f1, f2 into x, y from t2 limit 1;
5882 END begin_samelabel;
5883 begin_samelabel: BEGIN
5886 SELECT f1, f2 into x, y from t2 limit 1;
5887 END begin_samelabel;
5888 END begin_samelabel//
5892 # ------------------------------------------------------------------------------
5893 let $message= Testcase 4.2.12:
5895 Ensure that the variables, cursors, conditions, and handlers declared for
5896 a stored procedure (with the declare statement) may only be properly defined;
5897 --source include/show_msg80.inc
5900 DROP PROCEDURE IF EXISTS sp6;
5904 --error ER_TOO_BIG_SCALE
5905 CREATE PROCEDURE sp6( )
5907 declare x char default 'a';
5908 declare y integer default 1;
5909 declare z float default 1.1;
5910 declare a enum("value1", "value2") default 'value1';
5911 declare b decimal(255, 255) default 1.2e+12;
5912 declare c mediumtext default 'mediumtext';
5913 declare d datetime default '2005-02-02 12:12:12';
5914 declare e char default 'b';
5915 declare cur1 cursor for SELECT f1 from db_storedproc.t2;
5916 declare continue handler for sqlstate '02000' set @x2 = 1;
5919 SELECT x, y, z, a, b, c, d, e;
5927 DROP PROCEDURE IF EXISTS sp6;
5931 CREATE PROCEDURE sp6( )
5933 declare x12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567 char default '0';
5934 SELECT x12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567;
5943 # ------------------------------------------------------------------------------
5944 let $message= Testcase 4.2.13:
5946 Ensure that the variables declared for a stored procedure (with the declare
5947 statement) may only be defined in the correct order.;
5948 --source include/show_msg80.inc
5951 DROP PROCEDURE IF EXISTS sp6;
5955 --error ER_PARSE_ERROR
5956 CREATE PROCEDURE sp6( )
5958 declare x default '0' char;
5964 DROP PROCEDURE IF EXISTS sp6;
5968 --error ER_PARSE_ERROR
5969 CREATE PROCEDURE sp6( )
5971 declare x char, integer default '0';
5977 DROP PROCEDURE IF EXISTS sp6;
5981 --error ER_PARSE_ERROR
5982 CREATE PROCEDURE sp6( )
5984 declare x1, x2 char, integer default '0', 1;
5990 DROP PROCEDURE IF EXISTS sp6;
5994 --error ER_PARSE_ERROR
5995 CREATE PROCEDURE sp1( )
5999 SELECT f1, f2 into x, y from t2 limit 1;
6004 DROP PROCEDURE IF EXISTS sp6;
6008 --error ER_PARSE_ERROR
6009 CREATE PROCEDURE sp1( )
6011 declare char x, y1 integer default 0;
6013 SELECT f1, f2 into x, y from t2 limit 1;
6018 DROP PROCEDURE IF EXISTS sp6;
6022 --error ER_PARSE_ERROR
6023 CREATE PROCEDURE sp6( )
6025 declare x default 'a' char;
6030 DROP PROCEDURE IF EXISTS sp6;
6034 --error ER_PARSE_ERROR
6035 CREATE PROCEDURE sp6( )
6037 declare condition notable for sqlstate '42s22';
6042 DROP PROCEDURE IF EXISTS sp6;
6046 --error ER_PARSE_ERROR
6047 CREATE PROCEDURE sp6( )
6049 declare condition for notable sqlstate '42s22';
6054 DROP PROCEDURE IF EXISTS sp6;
6058 --error ER_PARSE_ERROR
6059 CREATE PROCEDURE sp6( )
6061 declare condition for sqlstate notable '42s22';
6066 DROP PROCEDURE IF EXISTS sp6;
6070 --error ER_PARSE_ERROR
6071 CREATE PROCEDURE sp6( )
6073 declare condition for sqlstate '42s22' notable;
6078 DROP PROCEDURE IF EXISTS sp6;
6082 --error ER_PARSE_ERROR
6083 CREATE PROCEDURE sp6( )
6085 declare cursor cur1 for SELECT f1 from db_storedproc.t2;
6090 DROP PROCEDURE IF EXISTS sp6;
6094 --error ER_PARSE_ERROR
6095 CREATE PROCEDURE sp6( )
6097 declare cursor for cur1 SELECT f1 from db_storedproc.t2;
6102 DROP PROCEDURE IF EXISTS sp6;
6106 --error ER_PARSE_ERROR
6107 CREATE PROCEDURE sp6( )
6109 declare cursor for SELECT cur1 f1 from db_storedproc.t2;
6114 DROP PROCEDURE IF EXISTS sp6;
6118 --error ER_PARSE_ERROR
6119 CREATE PROCEDURE sp6( )
6121 declare handler continue for sqlstate '02000' set @x2 = 1;
6126 DROP PROCEDURE IF EXISTS sp6;
6130 --error ER_PARSE_ERROR
6131 CREATE PROCEDURE sp6( )
6133 declare handler exit for sqlstate '02000' set @x2 = 1;
6138 DROP PROCEDURE IF EXISTS sp6;
6142 --error ER_PARSE_ERROR
6143 CREATE PROCEDURE sp6( )
6145 declare handler undo for sqlstate '02000' set @x2 = 1;
6150 DROP PROCEDURE IF EXISTS sp1;
6154 --error ER_PARSE_ERROR
6155 CREATE PROCEDURE sp1( )
6158 SELECT f1 into x from tb1 limit 9998, 1;
6163 DROP PROCEDURE IF EXISTS sp1;
6167 --error ER_PARSE_ERROR
6168 CREATE PROCEDURE sp1( )
6170 declare char binary x;
6171 SELECT f2 into x from tb1 limit 9998, 1;
6176 DROP PROCEDURE IF EXISTS sp1;
6180 --error ER_PARSE_ERROR
6181 CREATE PROCEDURE sp1( )
6183 declare char ascii x;
6184 SELECT f3 into x from tb1 limit 9998, 1;
6189 DROP PROCEDURE IF EXISTS sp1;
6193 --error ER_PARSE_ERROR
6194 CREATE PROCEDURE sp1( )
6197 SELECT f4 into x from tb1 limit 9998, 1;
6202 DROP PROCEDURE IF EXISTS sp1;
6206 --error ER_PARSE_ERROR
6207 CREATE PROCEDURE sp1( )
6210 SELECT f5 text into x from tb1 limit 9998, 1;
6215 DROP PROCEDURE IF EXISTS sp1;
6219 --error ER_PARSE_ERROR
6220 CREATE PROCEDURE sp1( )
6222 declare mediumtext x;
6223 SELECT f6 into x from tb1 limit 9998, 1;
6228 DROP PROCEDURE IF EXISTS sp1;
6232 --error ER_PARSE_ERROR
6233 CREATE PROCEDURE sp1( )
6236 SELECT f7 into x from tb1 limit 9998, 1;
6241 DROP PROCEDURE IF EXISTS sp1;
6245 --error ER_PARSE_ERROR
6246 CREATE PROCEDURE sp1( )
6249 SELECT f8 into x from tb1 limit 9998, 1;
6254 DROP PROCEDURE IF EXISTS sp1;
6258 --error ER_PARSE_ERROR
6259 CREATE PROCEDURE sp1( )
6262 SELECT f9 into x from tb1 limit 9998, 1;
6267 DROP PROCEDURE IF EXISTS sp1;
6271 --error ER_PARSE_ERROR
6272 CREATE PROCEDURE sp1( )
6274 declare mediumblob x;
6275 SELECT f10 into x from tb1 limit 9998, 1;
6280 DROP PROCEDURE IF EXISTS sp1;
6284 --error ER_PARSE_ERROR
6285 CREATE PROCEDURE sp1( )
6288 SELECT f11 into x from tb1 limit 9998, 1;
6293 DROP PROCEDURE IF EXISTS sp1;
6297 --error ER_PARSE_ERROR
6298 CREATE PROCEDURE sp1( )
6301 SELECT f12 into x from tb1 limit 9998, 1;
6306 DROP PROCEDURE IF EXISTS sp1;
6310 --error ER_PARSE_ERROR
6311 CREATE PROCEDURE sp1( )
6314 SELECT f13 into x from tb1 limit 9998, 1;
6319 DROP PROCEDURE IF EXISTS sp1;
6323 --error ER_PARSE_ERROR
6324 CREATE PROCEDURE sp1( )
6326 declare tinyint unsigned x;
6327 SELECT f14 into x from tb1 limit 9998, 1;
6332 DROP PROCEDURE IF EXISTS sp1;
6336 --error ER_PARSE_ERROR
6337 CREATE PROCEDURE sp1( )
6339 declare tinyint zerofill x;
6340 SELECT f15 into x from tb1 limit 9998, 1;
6345 DROP PROCEDURE IF EXISTS sp1;
6349 --error ER_PARSE_ERROR
6350 CREATE PROCEDURE sp1( )
6352 declare tinyint unsigned zerofill x;
6353 SELECT f16 into x from tb1 limit 9998, 1;
6358 DROP PROCEDURE IF EXISTS sp1;
6362 --error ER_PARSE_ERROR
6363 CREATE PROCEDURE sp1( )
6366 SELECT f17 into x from tb1 limit 9998, 1;
6371 DROP PROCEDURE IF EXISTS sp1;
6375 --error ER_PARSE_ERROR
6376 CREATE PROCEDURE sp1( )
6378 declare smallint unsigned x;
6379 SELECT f18 into x from tb1 limit 9998, 1;
6384 DROP PROCEDURE IF EXISTS sp1;
6388 --error ER_PARSE_ERROR
6389 CREATE PROCEDURE sp1( )
6391 declare smallint zerofill x;
6392 SELECT f19 into x from tb1 limit 9998, 1;
6397 DROP PROCEDURE IF EXISTS sp1;
6401 --error ER_PARSE_ERROR
6402 CREATE PROCEDURE sp1( )
6404 declare smallint unsigned zerofill x;
6405 SELECT f20 into x from tb1 limit 9998, 1;
6410 DROP PROCEDURE IF EXISTS sp1;
6414 --error ER_PARSE_ERROR
6415 CREATE PROCEDURE sp1( )
6417 declare mediumint x;
6418 SELECT f21 into x from tb1 limit 9998, 1;
6423 DROP PROCEDURE IF EXISTS sp1;
6427 --error ER_PARSE_ERROR
6428 CREATE PROCEDURE sp1( )
6430 declare mediumint unsigned x;
6431 SELECT f22 into x from tb1 limit 9998, 1;
6436 DROP PROCEDURE IF EXISTS sp1;
6440 --error ER_PARSE_ERROR
6441 CREATE PROCEDURE sp1( )
6443 declare mediumint zerofill x;
6444 SELECT f23 into x from tb1 limit 9998, 1;
6449 DROP PROCEDURE IF EXISTS sp1;
6453 --error ER_PARSE_ERROR
6454 CREATE PROCEDURE sp1( )
6456 declare mediumint unsigned zerofill x;
6457 SELECT f24 into x from tb1 limit 9998, 1;
6462 DROP PROCEDURE IF EXISTS sp1;
6466 --error ER_PARSE_ERROR
6467 CREATE PROCEDURE sp1( )
6470 SELECT f25 into x from tb1 limit 9998, 1;
6475 DROP PROCEDURE IF EXISTS sp1;
6479 --error ER_PARSE_ERROR
6480 CREATE PROCEDURE sp1( )
6482 declare int unsigned x;
6483 SELECT f26 into x from tb1 limit 9998, 1;
6488 DROP PROCEDURE IF EXISTS sp1;
6492 --error ER_PARSE_ERROR
6493 CREATE PROCEDURE sp1( )
6495 declare int zerofill x;
6496 SELECT f27 into x from tb1 limit 9998, 1;
6501 DROP PROCEDURE IF EXISTS sp1;
6505 --error ER_PARSE_ERROR
6506 CREATE PROCEDURE sp1( )
6508 declare int unsigned zerofill x;
6509 SELECT f28 into x from tb1 limit 9998, 1;
6514 DROP PROCEDURE IF EXISTS sp1;
6518 --error ER_PARSE_ERROR
6519 CREATE PROCEDURE sp1( )
6522 SELECT f29 into x from tb1 limit 9998, 1;
6527 DROP PROCEDURE IF EXISTS sp1;
6531 --error ER_PARSE_ERROR
6532 CREATE PROCEDURE sp1( )
6534 declare bigint unsigned x;
6535 elect f30 into x from tb1 limit 9998, 1;
6541 DROP PROCEDURE IF EXISTS sp1;
6545 --error ER_PARSE_ERROR
6546 CREATE PROCEDURE sp1( )
6548 declare bigint zerofill x;
6549 SELECT f31 into x from tb1 limit 9998, 1;
6554 DROP PROCEDURE IF EXISTS sp1;
6558 --error ER_PARSE_ERROR
6559 CREATE PROCEDURE sp1( )
6561 declare bigint unsigned zerofill x;
6562 SELECT f32 into x from tb1 limit 9998, 1;
6567 DROP PROCEDURE IF EXISTS sp1;
6571 --error ER_PARSE_ERROR
6572 CREATE PROCEDURE sp1( )
6575 SELECT f33 into x from tb1 limit 9998, 1;
6580 DROP PROCEDURE IF EXISTS sp1;
6584 --error ER_PARSE_ERROR
6585 CREATE PROCEDURE sp1( )
6587 declare decimal unsigned x;
6588 SELECT f34 into x from tb1 limit 9998, 1;
6593 DROP PROCEDURE IF EXISTS sp1;
6597 --error ER_PARSE_ERROR
6598 CREATE PROCEDURE sp1( )
6600 declare decimal zerofill x;
6601 SELECT f35 into x from tb1 limit 9998, 1;
6606 DROP PROCEDURE IF EXISTS sp1;
6610 --error ER_PARSE_ERROR
6611 CREATE PROCEDURE sp1( )
6613 declare decimal unsigned zerofill not null x;
6614 SELECT f36 into x from tb1 limit 9998, 1;
6619 DROP PROCEDURE IF EXISTS sp1;
6623 --error ER_PARSE_ERROR
6624 CREATE PROCEDURE sp1( )
6626 declare decimal (0) not null x;
6627 SELECT f37 into x from tb1 limit 9998, 1;
6632 DROP PROCEDURE IF EXISTS sp1;
6636 --error ER_PARSE_ERROR
6637 CREATE PROCEDURE sp1( )
6639 declare decimal (64) not null x;
6640 SELECT f38 into x from tb1 limit 9998, 1;
6645 DROP PROCEDURE IF EXISTS sp1;
6649 --error ER_PARSE_ERROR
6650 CREATE PROCEDURE sp1( )
6652 declare decimal (0) unsigned not null x;
6653 SELECT f39 into x from tb1 limit 9998, 1;
6658 DROP PROCEDURE IF EXISTS sp1;
6662 --error ER_PARSE_ERROR
6663 CREATE PROCEDURE sp1( )
6665 declare decimal (64) unsigned not null x;
6666 SELECT f40 into x from tb1 limit 9998, 1;
6671 DROP PROCEDURE IF EXISTS sp1;
6675 --error ER_PARSE_ERROR
6676 CREATE PROCEDURE sp1( )
6678 declare decimal (0) zerofill not null x;
6679 SELECT f41 into x from tb1 limit 9998, 1;
6684 DROP PROCEDURE IF EXISTS sp1;
6688 --error ER_PARSE_ERROR
6689 CREATE PROCEDURE sp1( )
6691 declare decimal (64) zerofill not null x;
6692 SELECT f42 into x from tb1 limit 9998, 1;
6697 DROP PROCEDURE IF EXISTS sp1;
6701 --error ER_PARSE_ERROR
6702 CREATE PROCEDURE sp1( )
6704 declare decimal (0) unsigned zerofill not null x;
6705 SELECT f43 into x from tb1 limit 9998, 1;
6710 DROP PROCEDURE IF EXISTS sp1;
6714 --error ER_PARSE_ERROR
6715 CREATE PROCEDURE sp1( )
6717 declare decimal (64) unsigned zerofill not null x;
6718 SELECT f44 into x from tb1 limit 9998, 1;
6723 DROP PROCEDURE IF EXISTS sp1;
6727 --error ER_PARSE_ERROR
6728 CREATE PROCEDURE sp1( )
6730 declare decimal (00) not null x;
6731 SELECT f45 into x from tb1 limit 9998, 1;
6736 DROP PROCEDURE IF EXISTS sp1;
6740 --error ER_PARSE_ERROR
6741 CREATE PROCEDURE sp1( )
6743 declare decimal (63, 30) not null x;
6744 SELECT f46 into x from tb1 limit 9998, 1;
6749 DROP PROCEDURE IF EXISTS sp1;
6753 --error ER_PARSE_ERROR
6754 CREATE PROCEDURE sp1( )
6756 declare decimal (00) unsigned not null x;
6757 SELECT f47 into x from tb1 limit 9998, 1;
6762 DROP PROCEDURE IF EXISTS sp1;
6766 --error ER_PARSE_ERROR
6767 CREATE PROCEDURE sp1( )
6769 declare decimal (63, 30) unsigned not null x;
6770 SELECT f48 into x from tb1 limit 9998, 1;
6775 DROP PROCEDURE IF EXISTS sp1;
6779 --error ER_PARSE_ERROR
6780 CREATE PROCEDURE sp1( )
6782 declare decimal (00) zerofill not null x;
6783 SELECT f49 into x from tb1 limit 9998, 1;
6788 DROP PROCEDURE IF EXISTS sp1;
6792 --error ER_PARSE_ERROR
6793 CREATE PROCEDURE sp1( )
6795 declare decimal (63, 30) zerofill not null x;
6796 SELECT f50 into x from tb1 limit 9998, 1;
6801 DROP PROCEDURE IF EXISTS sp1;
6805 --error ER_PARSE_ERROR
6806 CREATE PROCEDURE sp1( )
6808 declare decimal (00) unsigned zerofill not null x;
6809 SELECT f51 into x from tb1 limit 9998, 1;
6814 DROP PROCEDURE IF EXISTS sp1;
6818 --error ER_PARSE_ERROR
6819 CREATE PROCEDURE sp1( )
6821 declare decimal (63, 30) unsigned zerofill not null x;
6822 SELECT f52 into x from tb1 limit 9998, 1;
6827 DROP PROCEDURE IF EXISTS sp1;
6831 --error ER_PARSE_ERROR
6832 CREATE PROCEDURE sp1( )
6834 declare numeric not null x;
6835 SELECT f53 into x from tb1 limit 9998, 1;
6840 DROP PROCEDURE IF EXISTS sp1;
6844 --error ER_PARSE_ERROR
6845 CREATE PROCEDURE sp1( )
6847 declare numeric unsigned not null x;
6848 SELECT f54 into x from tb1 limit 9998, 1;
6853 DROP PROCEDURE IF EXISTS sp1;
6857 --error ER_PARSE_ERROR
6858 CREATE PROCEDURE sp1( )
6860 declare numeric zerofill not null x;
6861 SELECT f55 into x from tb1 limit 9998, 1;
6866 DROP PROCEDURE IF EXISTS sp1;
6870 --error ER_PARSE_ERROR
6871 CREATE PROCEDURE sp1( )
6873 declare numeric unsigned zerofill not null x;
6874 SELECT f56 into x from tb1 limit 9998, 1;
6879 DROP PROCEDURE IF EXISTS sp1;
6883 --error ER_PARSE_ERROR
6884 CREATE PROCEDURE sp1( )
6886 declare numeric (0) not null x;
6887 SELECT f57 into x from tb1 limit 9998, 1;
6892 DROP PROCEDURE IF EXISTS sp1;
6896 --error ER_PARSE_ERROR
6897 CREATE PROCEDURE sp1( )
6899 declare numeric (64) not nul x;
6900 SELECT f58 into x from tb1 limit 9998, 1;
6905 DROP PROCEDURE IF EXISTS sp1;
6909 --error ER_PARSE_ERROR
6910 CREATE PROCEDURE sp1( )
6912 declare numeric (0) unsigned x;
6913 SELECT f59 into x from tb2 limit 9998, 1;
6918 DROP PROCEDURE IF EXISTS sp1;
6922 --error ER_PARSE_ERROR
6923 CREATE PROCEDURE sp1( )
6925 declare numeric (64) unsigned x;
6926 SELECT f60 into x from tb2 limit 9998, 1;
6931 DROP PROCEDURE IF EXISTS sp1;
6935 --error ER_PARSE_ERROR
6936 CREATE PROCEDURE sp1( )
6938 declare numeric (0) zerofill x;
6939 SELECT f61 into x from tb2 limit 9998, 1;
6944 DROP PROCEDURE IF EXISTS sp1;
6948 --error ER_PARSE_ERROR
6949 CREATE PROCEDURE sp1( )
6951 declare numeric (64) zerofill x;
6952 SELECT f62 into x from tb2 limit 9998, 1;
6957 DROP PROCEDURE IF EXISTS sp1;
6961 --error ER_PARSE_ERROR
6962 CREATE PROCEDURE sp1( )
6964 declare numeric (0) unsigned zerofill x;
6965 SELECT f63 into x from tb2 limit 9998, 1;
6970 DROP PROCEDURE IF EXISTS sp1;
6974 --error ER_PARSE_ERROR
6975 CREATE PROCEDURE sp1( )
6977 declare numeric (64) unsigned zerofill x;
6978 SELECT f64 into x from tb2 limit 9998, 1;
6983 DROP PROCEDURE IF EXISTS sp1;
6987 --error ER_PARSE_ERROR
6988 CREATE PROCEDURE sp1( )
6990 declare numeric (00) x;
6991 SELECT f65 into x from tb2 limit 9998, 1;
6996 DROP PROCEDURE IF EXISTS sp1;
7000 --error ER_PARSE_ERROR
7001 CREATE PROCEDURE sp1( )
7003 declare numeric (63, 30) x;
7004 SELECT f66 into x from tb2 limit 9998, 1;
7009 DROP PROCEDURE IF EXISTS sp1;
7014 --error ER_PARSE_ERROR
7015 CREATE PROCEDURE sp1( )
7017 declare numeric (00) unsigned x;
7018 SELECT f67 into x from tb2 limit 9998, 1;
7023 DROP PROCEDURE IF EXISTS sp1;
7027 --error ER_PARSE_ERROR
7028 CREATE PROCEDURE sp1( )
7030 declare numeric (63, 30) unsigned x;
7031 SELECT f68 into x from tb2 limit 9998, 1;
7036 DROP PROCEDURE IF EXISTS sp1;
7040 --error ER_PARSE_ERROR
7041 CREATE PROCEDURE sp1( )
7043 declare numeric (00) zerofill x;
7044 SELECT f69 into x from tb2 limit 9998, 1;
7049 DROP PROCEDURE IF EXISTS sp1;
7053 --error ER_PARSE_ERROR
7054 CREATE PROCEDURE sp1( )
7056 declare numeric (63, 30) zerofill x;
7057 SELECT f70 into x from tb2 limit 9998, 1;
7062 DROP PROCEDURE IF EXISTS sp1;
7066 --error ER_PARSE_ERROR
7067 CREATE PROCEDURE sp1( )
7069 declare numeric (00) unsigned zerofill x;
7070 SELECT f71 into x from tb2 limit 9998, 1;
7075 DROP PROCEDURE IF EXISTS sp1;
7079 --error ER_PARSE_ERROR
7080 CREATE PROCEDURE sp1( )
7082 declare numeric (63, 30) unsigned zerofill x;
7083 SELECT f72 into x from tb2 limit 9998, 1;
7088 DROP PROCEDURE IF EXISTS sp1;
7092 --error ER_PARSE_ERROR
7093 CREATE PROCEDURE sp1( )
7096 SELECT f73 into x from tb2 limit 9998, 1;
7101 DROP PROCEDURE IF EXISTS sp1;
7105 --error ER_PARSE_ERROR
7106 CREATE PROCEDURE sp1( )
7108 declare real unsigned x;
7109 SELECT f74 into x from tb2 limit 9998, 1;
7114 DROP PROCEDURE IF EXISTS sp1;
7118 --error ER_PARSE_ERROR
7119 CREATE PROCEDURE sp1( )
7121 declare real zerofill x;
7122 SELECT f75 into x from tb2 limit 9998, 1;
7127 DROP PROCEDURE IF EXISTS sp1;
7131 --error ER_PARSE_ERROR
7132 CREATE PROCEDURE sp1( )
7134 declare real unsigned zerofill x;
7135 SELECT f76 into x from tb2 limit 9998, 1;
7140 DROP PROCEDURE IF EXISTS sp1;
7144 --error ER_PARSE_ERROR
7145 CREATE PROCEDURE sp1( )
7148 SELECT f77 into x from tb2 limit 9998, 1;
7153 DROP PROCEDURE IF EXISTS sp1;
7157 --error ER_PARSE_ERROR
7158 CREATE PROCEDURE sp1( )
7160 declare double unsigned x;
7161 SELECT f78 into x from tb2 limit 9998, 1;
7166 DROP PROCEDURE IF EXISTS sp1;
7170 --error ER_PARSE_ERROR
7171 CREATE PROCEDURE sp1( )
7173 declare double zerofill x;
7174 SELECT f79 into x from tb2 limit 9998, 1;
7179 DROP PROCEDURE IF EXISTS sp1;
7183 --error ER_PARSE_ERROR
7184 CREATE PROCEDURE sp1( )
7186 declare double unsigned zerofill x;
7187 SELECT f80 into x from tb2 limit 9998, 1;
7192 DROP PROCEDURE IF EXISTS sp1;
7196 --error ER_PARSE_ERROR
7197 CREATE PROCEDURE sp1( )
7199 declare float not null x;
7200 SELECT f81 into x from tb2 limit 9998, 1;
7205 DROP PROCEDURE IF EXISTS sp1;
7209 --error ER_PARSE_ERROR
7210 CREATE PROCEDURE sp1( )
7212 declare float unsigned not null x;
7213 SELECT f82 into x from tb2 limit 9998, 1;
7218 DROP PROCEDURE IF EXISTS sp1;
7222 --error ER_PARSE_ERROR
7223 CREATE PROCEDURE sp1( )
7225 declare float zerofill not null x;
7226 SELECT f83 into x from tb2 limit 9998, 1;
7231 DROP PROCEDURE IF EXISTS sp1;
7235 --error ER_PARSE_ERROR
7236 CREATE PROCEDURE sp1( )
7238 declare float unsigned zerofill not null x;
7239 SELECT f84 into x from tb2 limit 9998, 1;
7244 DROP PROCEDURE IF EXISTS sp1;
7248 --error ER_PARSE_ERROR
7249 CREATE PROCEDURE sp1( )
7251 declare float(0) not null x;
7252 SELECT f85 into x from tb2 limit 9998, 1;
7257 DROP PROCEDURE IF EXISTS sp1;
7261 --error ER_PARSE_ERROR
7262 CREATE PROCEDURE sp1( )
7264 declare float(23) not null x;
7265 SELECT f86 into x from tb2 limit 9998, 1;
7270 DROP PROCEDURE IF EXISTS sp1;
7274 --error ER_PARSE_ERROR
7275 CREATE PROCEDURE sp1( )
7277 declare float(0) unsigned not null x;
7278 SELECT f87 into x from tb2 limit 9998, 1;
7283 DROP PROCEDURE IF EXISTS sp1;
7287 --error ER_PARSE_ERROR
7288 CREATE PROCEDURE sp1( )
7290 declare float(23) unsigned not null x;
7291 SELECT f88 into x from tb2 limit 9998, 1;
7296 DROP PROCEDURE IF EXISTS sp1;
7300 --error ER_PARSE_ERROR
7301 CREATE PROCEDURE sp1( )
7303 declare float(0) zerofill not null x;
7304 SELECT f89 into x from tb2 limit 9998, 1;
7309 DROP PROCEDURE IF EXISTS sp1;
7313 --error ER_PARSE_ERROR
7314 CREATE PROCEDURE sp1( )
7316 declare float(23) zerofill not null x;
7317 SELECT f90 into x from tb2 limit 9998, 1;
7322 DROP PROCEDURE IF EXISTS sp1;
7326 --error ER_PARSE_ERROR
7327 CREATE PROCEDURE sp1( )
7329 declare float(0) unsigned zerofill not null x;
7330 SELECT f91 into x from tb2 limit 9998, 1;
7335 DROP PROCEDURE IF EXISTS sp1;
7339 --error ER_PARSE_ERROR
7340 CREATE PROCEDURE sp1( )
7342 declare float(23) unsigned zerofill not null x;
7343 SELECT f92 into x from tb2 limit 9998, 1;
7348 DROP PROCEDURE IF EXISTS sp1;
7352 --error ER_PARSE_ERROR
7353 CREATE PROCEDURE sp1( )
7355 declare float(24) not null x;
7356 SELECT f93 into x from tb2 limit 9998, 1;
7361 DROP PROCEDURE IF EXISTS sp1;
7365 --error ER_PARSE_ERROR
7366 CREATE PROCEDURE sp1( )
7368 declare float(53) not null x;
7369 SELECT f94 into x from tb2 limit 9998, 1;
7374 DROP PROCEDURE IF EXISTS sp1;
7378 --error ER_PARSE_ERROR
7379 CREATE PROCEDURE sp1( )
7381 declare float(24) unsigned not null x;
7382 SELECT f95 into x from tb2 limit 9998, 1;
7387 DROP PROCEDURE IF EXISTS sp1;
7391 --error ER_PARSE_ERROR
7392 CREATE PROCEDURE sp1( )
7394 declare float(53) unsigned not null x;
7395 SELECT f96 into x from tb2 limit 9998, 1;
7400 DROP PROCEDURE IF EXISTS sp1;
7404 --error ER_PARSE_ERROR
7405 CREATE PROCEDURE sp1( )
7407 declare float(24) zerofill not null x;
7408 SELECT f97 into x from tb2 limit 9998, 1;
7413 DROP PROCEDURE IF EXISTS sp1;
7417 --error ER_PARSE_ERROR
7418 CREATE PROCEDURE sp1( )
7420 declare float(53) zerofill not null x;
7421 SELECT f98 into x from tb2 limit 9998, 1;
7426 DROP PROCEDURE IF EXISTS sp1;
7430 --error ER_PARSE_ERROR
7431 CREATE PROCEDURE sp1( )
7433 declare float(24) unsigned zerofill not null x;
7434 SELECT f99 into x from tb2 limit 9998, 1;
7439 DROP PROCEDURE IF EXISTS sp1;
7443 --error ER_PARSE_ERROR
7444 CREATE PROCEDURE sp1( )
7446 declare float(53) unsigned zerofill not null x;
7447 SELECT f100 into x from tb2 limit 9998, 1;
7452 DROP PROCEDURE IF EXISTS sp1;
7456 --error ER_PARSE_ERROR
7457 CREATE PROCEDURE sp1( )
7459 declare date not null x;
7460 SELECT f101 into x from tb2 limit 9998, 1;
7465 DROP PROCEDURE IF EXISTS sp1;
7469 --error ER_PARSE_ERROR
7470 CREATE PROCEDURE sp1( )
7472 declare time not null x;
7473 SELECT f102 into x from tb2 limit 9998, 1;
7478 DROP PROCEDURE IF EXISTS sp1;
7482 --error ER_PARSE_ERROR
7483 CREATE PROCEDURE sp1( )
7485 declare datetime not null x;
7486 SELECT f103 into x from tb2 limit 9998, 1;
7491 DROP PROCEDURE IF EXISTS sp1;
7495 --error ER_PARSE_ERROR
7496 CREATE PROCEDURE sp1( )
7498 declare timestamp not null x;
7499 SELECT f104 into x from tb2 limit 9998, 1;
7504 DROP PROCEDURE IF EXISTS sp1;
7508 --error ER_PARSE_ERROR
7509 CREATE PROCEDURE sp1( )
7511 declare year not null x;
7512 SELECT f105 into x from tb2 limit 9998, 1;
7517 DROP PROCEDURE IF EXISTS sp1;
7521 --error ER_PARSE_ERROR
7522 CREATE PROCEDURE sp1( )
7524 declare year(3) not null x;
7525 SELECT f106 into x from tb2 limit 9998, 1;
7530 DROP PROCEDURE IF EXISTS sp1;
7534 --error ER_PARSE_ERROR
7535 CREATE PROCEDURE sp1( )
7537 declare year(4) not null x;
7538 SELECT f107 into x from tb2 limit 9998, 1;
7543 DROP PROCEDURE IF EXISTS sp1;
7547 --error ER_PARSE_ERROR
7548 CREATE PROCEDURE sp1( )
7550 declare enum("1enum", "2enum") not null x;
7551 SELECT f108 into x from tb2 limit 9998, 1;
7556 DROP PROCEDURE IF EXISTS sp1;
7560 --error ER_PARSE_ERROR
7561 CREATE PROCEDURE sp1( )
7563 declare set("1set", "2set") not nul x;
7564 SELECT f109 into x from tb2 limit 9998, 1;
7568 # ------------------------------------------------------------------------------
7569 let $message= Testcase 4.2.14:
7571 Ensure that the handlers declared for a stored procedure (with the declare
7572 statement) may only be defined in the correct order;
7573 --source include/show_msg80.inc
7577 DROP PROCEDURE IF EXISTS sp1;
7581 --error ER_SP_VARCOND_AFTER_CURSHNDLR
7582 CREATE PROCEDURE sp1()
7584 declare continue handler for sqlstate '23000' set @x2 = 1;
7590 DROP PROCEDURE IF EXISTS sp6;
7594 --error ER_SP_VARCOND_AFTER_CURSHNDLR
7595 CREATE PROCEDURE sp6( )
7597 declare cursor1 cursor for SELECT f1 from tb1;
7603 DROP PROCEDURE IF EXISTS sp6;
7607 --error ER_SP_VARCOND_AFTER_CURSHNDLR
7608 CREATE PROCEDURE sp6( )
7610 declare cursor1 cursor for SELECT f1 from tb1;
7611 declare sqlcondition condition for sqlstate '02000';
7616 DROP PROCEDURE IF EXISTS sp6;
7620 --error ER_SP_CURSOR_AFTER_HANDLER
7621 CREATE PROCEDURE sp6( )
7623 declare sqlcondition condition for sqlstate '02000';
7624 declare continue handler for sqlcondition set @x=1;
7625 declare cursor1 cursor for SELECT f1 from tb1;
7629 # ------------------------------------------------------------------------------
7630 let $message= Testcase 4.2.15:
7632 Ensure that the declare statement can declare multiple variables both separately
7633 and all at once from a variable list. (multiple declaration);
7634 --source include/show_msg80.inc
7637 DROP PROCEDURE IF EXISTS sp1;
7641 CREATE PROCEDURE sp1()
7643 DECLARE x1 CHAR(100) DEFAULT 'outer';
7645 DECLARE x1 CHAR(100) DEFAULT x1;
7653 DROP PROCEDURE IF EXISTS sp1;
7658 CREATE PROCEDURE sp1( )
7660 declare x, y, z char default null;
7668 DROP PROCEDURE IF EXISTS sp1;
7672 CREATE PROCEDURE sp1( )
7674 declare x, y, z char ascii default null;
7682 DROP PROCEDURE IF EXISTS sp1;
7686 CREATE PROCEDURE sp1( )
7688 declare x, y, z tinytext default null;
7696 DROP PROCEDURE IF EXISTS sp1;
7700 CREATE PROCEDURE sp1( )
7702 declare x, y, z text default null;
7710 DROP PROCEDURE IF EXISTS sp1;
7714 CREATE PROCEDURE sp1( )
7716 declare x, y, z mediumtext default null;
7724 DROP PROCEDURE IF EXISTS sp1;
7728 CREATE PROCEDURE sp1( )
7730 declare x, y, z longtext default null;
7738 DROP PROCEDURE IF EXISTS sp1;
7742 CREATE PROCEDURE sp1( )
7744 declare x, y, z tinyblob default null;
7752 DROP PROCEDURE IF EXISTS sp1;
7756 CREATE PROCEDURE sp1( )
7758 declare x, y, z blob default null;
7766 DROP PROCEDURE IF EXISTS sp1;
7770 CREATE PROCEDURE sp1( )
7772 declare x, y, z mediumblob default null;
7780 DROP PROCEDURE IF EXISTS sp1;
7784 CREATE PROCEDURE sp1( )
7786 declare x, y, z longblob default null;
7794 DROP PROCEDURE IF EXISTS sp1;
7798 CREATE PROCEDURE sp1( )
7800 declare x, y, z binary default null;
7808 DROP PROCEDURE IF EXISTS sp1;
7812 CREATE PROCEDURE sp1( )
7814 declare x, y, z tinyint default -126;
7822 DROP PROCEDURE IF EXISTS sp1;
7826 CREATE PROCEDURE sp1( )
7828 declare x, y, z tinyint unsigned default 253;
7836 DROP PROCEDURE IF EXISTS sp1;
7840 CREATE PROCEDURE sp1( )
7842 declare x, y, z tinyint zerofill default -1;
7850 DROP PROCEDURE IF EXISTS sp1;
7854 CREATE PROCEDURE sp1( )
7856 declare x, y, z tinyint unsigned zerofill default 1;
7864 DROP PROCEDURE IF EXISTS sp1;
7868 CREATE PROCEDURE sp1( )
7870 declare x, y, z smallint default -32768;
7878 DROP PROCEDURE IF EXISTS sp1;
7882 CREATE PROCEDURE sp1( )
7884 declare x, y, z smallint unsigned default 65535;
7892 DROP PROCEDURE IF EXISTS sp1;
7896 CREATE PROCEDURE sp1( )
7898 declare x, y, z smallint zerofill default -1;
7906 DROP PROCEDURE IF EXISTS sp1;
7910 CREATE PROCEDURE sp1( )
7912 declare x, y, z smallint unsigned zerofill default 1;
7920 DROP PROCEDURE IF EXISTS sp1;
7924 CREATE PROCEDURE sp1( )
7926 declare x, y, z mediumint default -8388608;
7934 DROP PROCEDURE IF EXISTS sp1;
7938 CREATE PROCEDURE sp1( )
7940 declare x, y, z mediumint unsigned default 16777215;
7948 DROP PROCEDURE IF EXISTS sp1;
7952 CREATE PROCEDURE sp1( )
7954 declare x, y, z mediumint zerofill default -1;
7962 DROP PROCEDURE IF EXISTS sp1;
7966 CREATE PROCEDURE sp1( )
7968 declare x, y, z mediumint unsigned zerofill default 1;
7976 DROP PROCEDURE IF EXISTS sp1;
7980 CREATE PROCEDURE sp1( )
7982 declare x, y, z int default -2147483648;
7990 DROP PROCEDURE IF EXISTS sp1;
7994 CREATE PROCEDURE sp1( )
7996 declare x, y, z int unsigned default 4294967295;
8004 DROP PROCEDURE IF EXISTS sp1;
8008 CREATE PROCEDURE sp1( )
8010 declare x, y, z int zerofill default -1;
8018 DROP PROCEDURE IF EXISTS sp1;
8022 CREATE PROCEDURE sp1( )
8024 declare x, y, z int unsigned zerofill default 1;
8032 DROP PROCEDURE IF EXISTS sp1;
8036 CREATE PROCEDURE sp1( )
8038 declare x, y, z bigint default -9223372036854775808;
8046 DROP PROCEDURE IF EXISTS sp1;
8050 CREATE PROCEDURE sp1( )
8052 declare x, y, z bigint unsigned default 18446744073709551615;
8060 DROP PROCEDURE IF EXISTS sp1;
8064 CREATE PROCEDURE sp1( )
8066 declare x, y, z bigint zerofill default -1;
8074 DROP PROCEDURE IF EXISTS sp1;
8078 CREATE PROCEDURE sp1( )
8080 declare x, y, z bigint unsigned zerofill default 1;
8088 DROP PROCEDURE IF EXISTS sp1;
8091 #FIXME check again with -3.402823466e+38
8092 let $default_minus38= -34028234660123456789012345678901234567;
8095 eval CREATE PROCEDURE sp1( )
8097 declare x, y, z decimal default $default_minus38;
8105 DROP PROCEDURE IF EXISTS sp1;
8109 CREATE PROCEDURE sp1( )
8111 declare x, y, z decimal unsigned default 1.175494351e-38;
8119 DROP PROCEDURE IF EXISTS sp1;
8122 #FIXME check again with -3.402823466e+38
8124 eval CREATE PROCEDURE sp1( )
8126 declare x, y, z decimal zerofill default $default_minus38;
8134 DROP PROCEDURE IF EXISTS sp1;
8138 CREATE PROCEDURE sp1( )
8140 declare x, y, z decimal unsigned zerofill default 1.175494351e-38;
8148 DROP PROCEDURE IF EXISTS sp1;
8152 CREATE PROCEDURE sp1( )
8154 declare x, y, z numeric default 1.175494351e-38;
8162 DROP PROCEDURE IF EXISTS sp1;
8166 CREATE PROCEDURE sp1( )
8168 declare x, y, z numeric unsigned default 1.175494351e-38;
8176 DROP PROCEDURE IF EXISTS sp1;
8180 CREATE PROCEDURE sp1( )
8182 declare x, y, z numeric zerofill default 1.175494351e-38;
8190 DROP PROCEDURE IF EXISTS sp1;
8194 CREATE PROCEDURE sp1( )
8196 declare x, y, z numeric unsigned zerofill default 1.175494351e-38;
8204 DROP PROCEDURE IF EXISTS sp1;
8208 CREATE PROCEDURE sp1( )
8210 declare x, y, z real default 1.175494351e-38;
8215 --replace_result e-038 e-38
8219 DROP PROCEDURE IF EXISTS sp1;
8223 CREATE PROCEDURE sp1( )
8225 declare x, y, z real unsigned default 1.175494351e-38;
8230 --replace_result e-038 e-38
8234 DROP PROCEDURE IF EXISTS sp1;
8238 CREATE PROCEDURE sp1( )
8240 declare x, y, z real zerofill default 1.175494351e-38;
8245 --replace_result e-038 e-38
8249 DROP PROCEDURE IF EXISTS sp1;
8253 CREATE PROCEDURE sp1( )
8255 declare x, y, z real unsigned zerofill default 1.175494351e-38;
8260 --replace_result e-038 e-38
8264 DROP PROCEDURE IF EXISTS sp1;
8268 CREATE PROCEDURE sp1( )
8270 declare x, y, z float default 1.175494351e-38;
8275 --replace_result e-038 e-38
8279 DROP PROCEDURE IF EXISTS sp1;
8283 CREATE PROCEDURE sp1( )
8285 declare x, y, z float unsigned default 1.175494351e-38;
8290 --replace_result e-038 e-38
8294 DROP PROCEDURE IF EXISTS sp1;
8298 CREATE PROCEDURE sp1( )
8300 declare x, y, z float zerofill default 1.175494351e-38;
8305 --replace_result e-038 e-38
8309 DROP PROCEDURE IF EXISTS sp1;
8313 CREATE PROCEDURE sp1( )
8315 declare x, y, z float unsigned zerofill default 1.175494351e-38;
8320 --replace_result e-038 e-38
8324 DROP PROCEDURE IF EXISTS sp1;
8328 CREATE PROCEDURE sp1( )
8330 declare x, y, z date default '2005-02-02';
8338 DROP PROCEDURE IF EXISTS sp1;
8342 CREATE PROCEDURE sp1( )
8344 declare x, y, z time default '12:20:12';
8352 DROP PROCEDURE IF EXISTS sp1;
8356 CREATE PROCEDURE sp1( )
8358 declare x, y, z datetime default '2005-02-02 12:20:12';
8366 DROP PROCEDURE IF EXISTS sp1;
8370 CREATE PROCEDURE sp1( )
8372 declare x, y, z timestamp default '20050202122012';
8380 DROP PROCEDURE IF EXISTS sp1;
8384 CREATE PROCEDURE sp1( )
8386 declare x, y, z year default 2005;
8394 DROP PROCEDURE IF EXISTS sp1;
8398 CREATE PROCEDURE sp1( )
8400 declare x, y, z year(3) default 2005;
8408 DROP PROCEDURE IF EXISTS sp1;
8412 CREATE PROCEDURE sp1( )
8414 declare x, y, z year(4) default 2005;
8422 DROP PROCEDURE IF EXISTS sp1;
8426 CREATE PROCEDURE sp1( )
8428 declare x, y, z enum("1enum", "2enum") default "2enum";
8436 DROP PROCEDURE IF EXISTS sp1;
8440 CREATE PROCEDURE sp1( )
8442 declare x, y, z set("1set", "2set") default "2set";
8452 # ------------------------------------------------------------------------------
8453 let $message= Testcase 4.2.16:
8455 Ensure that the declare statement can declare multiple variables both separately
8456 and all at once from a variable list. (multiple declaration).;
8457 --source include/show_msg80.inc
8460 DROP PROCEDURE IF EXISTS sp6;
8464 CREATE PROCEDURE sp6( )
8466 declare a, b char default '2';
8467 declare c, d float default 1.3;
8468 declare e, f text default 'text';
8469 declare g, h enum("value1", "value2" ) default 'value1';
8470 declare i, j datetime default '2005-02-02 12:12:12';
8471 declare k, l blob default 'blob';
8472 SELECT a, b, c, d, e, f, g, h, k, l;
8481 # ------------------------------------------------------------------------------
8482 let $message= Testcase 4.2.17:
8484 Ensure that the invalid variable declarations are rejected, with an appropriate
8486 --source include/show_msg80.inc
8489 DROP PROCEDURE IF EXISTS sp1;
8493 --error ER_PARSE_ERROR
8494 CREATE PROCEDURE sp1( )
8497 SELECT f2 into x from t2 limit 1;
8502 DROP PROCEDURE IF EXISTS sp1;
8506 --error ER_PARSE_ERROR
8507 CREATE PROCEDURE sp1()
8509 declare accessible char;
8514 DROP PROCEDURE IF EXISTS sp1;
8518 --error ER_PARSE_ERROR
8519 CREATE PROCEDURE sp1()
8526 DROP PROCEDURE IF EXISTS sp1;
8530 --error ER_PARSE_ERROR
8531 CREATE PROCEDURE sp1()
8538 DROP PROCEDURE IF EXISTS sp1;
8542 --error ER_PARSE_ERROR
8543 CREATE PROCEDURE sp1()
8550 DROP PROCEDURE IF EXISTS sp1;
8554 --error ER_PARSE_ERROR
8555 CREATE PROCEDURE sp1()
8557 declare analyze char;
8562 DROP PROCEDURE IF EXISTS sp1;
8566 --error ER_PARSE_ERROR
8567 CREATE PROCEDURE sp1()
8574 DROP PROCEDURE IF EXISTS sp1;
8578 --error ER_PARSE_ERROR
8579 CREATE PROCEDURE sp1()
8586 DROP PROCEDURE IF EXISTS sp1;
8590 --error ER_PARSE_ERROR
8591 CREATE PROCEDURE sp1()
8598 DROP PROCEDURE IF EXISTS sp1;
8602 --error ER_PARSE_ERROR
8603 CREATE PROCEDURE sp1()
8605 declare asensitive char;
8610 DROP PROCEDURE IF EXISTS sp1;
8614 --error ER_PARSE_ERROR
8615 CREATE PROCEDURE sp1()
8617 declare before char;
8622 DROP PROCEDURE IF EXISTS sp1;
8626 --error ER_PARSE_ERROR
8627 CREATE PROCEDURE sp1()
8629 declare between char;
8634 DROP PROCEDURE IF EXISTS sp1;
8638 --error ER_PARSE_ERROR
8639 CREATE PROCEDURE sp1()
8641 declare bigint char;
8646 DROP PROCEDURE IF EXISTS sp1;
8650 --error ER_PARSE_ERROR
8651 CREATE PROCEDURE sp1()
8653 declare binary char;
8658 DROP PROCEDURE IF EXISTS sp1;
8662 --error ER_PARSE_ERROR
8663 CREATE PROCEDURE sp1()
8670 DROP PROCEDURE IF EXISTS sp1;
8674 --error ER_PARSE_ERROR
8675 CREATE PROCEDURE sp1()
8682 DROP PROCEDURE IF EXISTS sp1;
8686 --error ER_PARSE_ERROR
8687 CREATE PROCEDURE sp1()
8694 DROP PROCEDURE IF EXISTS sp1;
8698 --error ER_PARSE_ERROR
8699 CREATE PROCEDURE sp1()
8706 DROP PROCEDURE IF EXISTS sp1;
8710 --error ER_PARSE_ERROR
8711 CREATE PROCEDURE sp1()
8713 declare cascade char;
8718 DROP PROCEDURE IF EXISTS sp1;
8722 --error ER_PARSE_ERROR
8723 CREATE PROCEDURE sp1()
8730 DROP PROCEDURE IF EXISTS sp1;
8734 --error ER_PARSE_ERROR
8735 CREATE PROCEDURE sp1()
8737 declare change char;
8742 DROP PROCEDURE IF EXISTS sp1;
8746 --error ER_PARSE_ERROR
8747 CREATE PROCEDURE sp1()
8754 DROP PROCEDURE IF EXISTS sp1;
8758 --error ER_PARSE_ERROR
8759 CREATE PROCEDURE sp1()
8761 declare character char;
8766 DROP PROCEDURE IF EXISTS sp1;
8770 --error ER_PARSE_ERROR
8771 CREATE PROCEDURE sp1()
8778 DROP PROCEDURE IF EXISTS sp1;
8782 --error ER_PARSE_ERROR
8783 CREATE PROCEDURE sp1()
8785 declare collate char;
8790 DROP PROCEDURE IF EXISTS sp1;
8794 --error ER_PARSE_ERROR
8795 CREATE PROCEDURE sp1()
8797 declare column char;
8802 DROP PROCEDURE IF EXISTS sp1;
8806 --error ER_PARSE_ERROR
8807 CREATE PROCEDURE sp1()
8809 declare condition char;
8814 DROP PROCEDURE IF EXISTS sp1;
8818 --error ER_PARSE_ERROR
8819 CREATE PROCEDURE sp1()
8821 declare constraint char;
8826 DROP PROCEDURE IF EXISTS sp1;
8830 --error ER_PARSE_ERROR
8831 CREATE PROCEDURE sp1()
8833 declare continue char;
8838 DROP PROCEDURE IF EXISTS sp1;
8842 --error ER_PARSE_ERROR
8843 CREATE PROCEDURE sp1()
8845 declare convert char;
8850 DROP PROCEDURE IF EXISTS sp1;
8854 --error ER_PARSE_ERROR
8855 CREATE PROCEDURE sp1()
8857 declare create char;
8862 DROP PROCEDURE IF EXISTS sp1;
8866 --error ER_PARSE_ERROR
8867 CREATE PROCEDURE sp1()
8874 DROP PROCEDURE IF EXISTS sp1;
8878 --error ER_PARSE_ERROR
8879 CREATE PROCEDURE sp1()
8881 declare current_date char;
8886 DROP PROCEDURE IF EXISTS sp1;
8890 --error ER_PARSE_ERROR
8891 CREATE PROCEDURE sp1()
8893 declare current_time char;
8898 DROP PROCEDURE IF EXISTS sp1;
8902 --error ER_PARSE_ERROR
8903 CREATE PROCEDURE sp1()
8905 declare current_timestamp char;
8910 DROP PROCEDURE IF EXISTS sp1;
8914 --error ER_PARSE_ERROR
8915 CREATE PROCEDURE sp1()
8917 declare current_user char;
8922 DROP PROCEDURE IF EXISTS sp1;
8926 --error ER_PARSE_ERROR
8927 CREATE PROCEDURE sp1()
8929 declare cursor char;
8934 DROP PROCEDURE IF EXISTS sp1;
8938 --error ER_PARSE_ERROR
8939 CREATE PROCEDURE sp1()
8941 declare database char;
8946 DROP PROCEDURE IF EXISTS sp1;
8950 --error ER_PARSE_ERROR
8951 CREATE PROCEDURE sp1()
8953 declare databases char;
8958 DROP PROCEDURE IF EXISTS sp1;
8962 --error ER_PARSE_ERROR
8963 CREATE PROCEDURE sp1()
8965 declare day_hour char;
8970 DROP PROCEDURE IF EXISTS sp1;
8974 --error ER_PARSE_ERROR
8975 CREATE PROCEDURE sp1()
8977 declare day_microsecond char;
8982 DROP PROCEDURE IF EXISTS sp1;
8986 --error ER_PARSE_ERROR
8987 CREATE PROCEDURE sp1()
8989 declare day_minute char;
8994 DROP PROCEDURE IF EXISTS sp1;
8998 --error ER_PARSE_ERROR
8999 CREATE PROCEDURE sp1()
9001 declare day_second char;
9006 DROP PROCEDURE IF EXISTS sp1;
9010 --error ER_PARSE_ERROR
9011 CREATE PROCEDURE sp1()
9018 DROP PROCEDURE IF EXISTS sp1;
9022 --error ER_PARSE_ERROR
9023 CREATE PROCEDURE sp1()
9025 declare decimal char;
9030 DROP PROCEDURE IF EXISTS sp1;
9034 --error ER_PARSE_ERROR
9035 CREATE PROCEDURE sp1()
9037 declare declare char;
9042 DROP PROCEDURE IF EXISTS sp1;
9046 --error ER_PARSE_ERROR
9047 CREATE PROCEDURE sp1()
9049 declare default char;
9054 DROP PROCEDURE IF EXISTS sp1;
9058 --error ER_PARSE_ERROR
9059 CREATE PROCEDURE sp1()
9061 declare delayed char;
9066 DROP PROCEDURE IF EXISTS sp1;
9070 --error ER_PARSE_ERROR
9071 CREATE PROCEDURE sp1()
9073 declare delete char;
9078 DROP PROCEDURE IF EXISTS sp1;
9082 --error ER_PARSE_ERROR
9083 CREATE PROCEDURE sp1()
9090 DROP PROCEDURE IF EXISTS sp1;
9094 --error ER_PARSE_ERROR
9095 CREATE PROCEDURE sp1()
9097 declare describe char;
9102 DROP PROCEDURE IF EXISTS sp1;
9106 --error ER_PARSE_ERROR
9107 CREATE PROCEDURE sp1()
9109 declare deterministic char;
9114 DROP PROCEDURE IF EXISTS sp1;
9118 --error ER_PARSE_ERROR
9119 CREATE PROCEDURE sp1()
9121 declare distinct char;
9126 DROP PROCEDURE IF EXISTS sp1;
9130 --error ER_PARSE_ERROR
9131 CREATE PROCEDURE sp1()
9133 declare distinctrow char;
9138 DROP PROCEDURE IF EXISTS sp1;
9142 --error ER_PARSE_ERROR
9143 CREATE PROCEDURE sp1()
9150 DROP PROCEDURE IF EXISTS sp1;
9154 --error ER_PARSE_ERROR
9155 CREATE PROCEDURE sp1()
9157 declare double char;
9162 DROP PROCEDURE IF EXISTS sp1;
9166 --error ER_PARSE_ERROR
9167 CREATE PROCEDURE sp1()
9174 DROP PROCEDURE IF EXISTS sp1;
9178 --error ER_PARSE_ERROR
9179 CREATE PROCEDURE sp1()
9186 DROP PROCEDURE IF EXISTS sp1;
9190 --error ER_PARSE_ERROR
9191 CREATE PROCEDURE sp1()
9198 DROP PROCEDURE IF EXISTS sp1;
9202 --error ER_PARSE_ERROR
9203 CREATE PROCEDURE sp1()
9210 DROP PROCEDURE IF EXISTS sp1;
9214 --error ER_PARSE_ERROR
9215 CREATE PROCEDURE sp1()
9217 declare elseif char;
9222 DROP PROCEDURE IF EXISTS sp1;
9226 --error ER_PARSE_ERROR
9227 CREATE PROCEDURE sp1()
9229 declare enclosed char;
9234 DROP PROCEDURE IF EXISTS sp1;
9238 --error ER_PARSE_ERROR
9239 CREATE PROCEDURE sp1()
9241 declare escaped char;
9246 DROP PROCEDURE IF EXISTS sp1;
9250 --error ER_PARSE_ERROR
9251 CREATE PROCEDURE sp1()
9253 declare exists char;
9258 DROP PROCEDURE IF EXISTS sp1;
9262 --error ER_PARSE_ERROR
9263 CREATE PROCEDURE sp1()
9270 DROP PROCEDURE IF EXISTS sp1;
9274 --error ER_PARSE_ERROR
9275 CREATE PROCEDURE sp1()
9277 declare explain char;
9282 DROP PROCEDURE IF EXISTS sp1;
9286 --error ER_PARSE_ERROR
9287 CREATE PROCEDURE sp1()
9294 DROP PROCEDURE IF EXISTS sp1;
9298 --error ER_PARSE_ERROR
9299 CREATE PROCEDURE sp1()
9306 DROP PROCEDURE IF EXISTS sp1;
9310 --error ER_PARSE_ERROR
9311 CREATE PROCEDURE sp1()
9318 DROP PROCEDURE IF EXISTS sp1;
9322 --error ER_PARSE_ERROR
9323 CREATE PROCEDURE sp1()
9325 declare float4 char;
9330 DROP PROCEDURE IF EXISTS sp1;
9334 --error ER_PARSE_ERROR
9335 CREATE PROCEDURE sp1()
9337 declare float8 char;
9342 DROP PROCEDURE IF EXISTS sp1;
9346 --error ER_PARSE_ERROR
9347 CREATE PROCEDURE sp1()
9354 DROP PROCEDURE IF EXISTS sp1;
9358 --error ER_PARSE_ERROR
9359 CREATE PROCEDURE sp1()
9366 DROP PROCEDURE IF EXISTS sp1;
9370 --error ER_PARSE_ERROR
9371 CREATE PROCEDURE sp1()
9373 declare foreign char;
9378 DROP PROCEDURE IF EXISTS sp1;
9382 --error ER_PARSE_ERROR
9383 CREATE PROCEDURE sp1()
9390 DROP PROCEDURE IF EXISTS sp1;
9394 --error ER_PARSE_ERROR
9395 CREATE PROCEDURE sp1()
9397 declare fulltext char;
9402 DROP PROCEDURE IF EXISTS sp1;
9406 --error ER_PARSE_ERROR
9407 CREATE PROCEDURE sp1()
9414 DROP PROCEDURE IF EXISTS sp1;
9418 --error ER_PARSE_ERROR
9419 CREATE PROCEDURE sp1()
9426 DROP PROCEDURE IF EXISTS sp1;
9430 --error ER_PARSE_ERROR
9431 CREATE PROCEDURE sp1()
9433 declare having char;
9438 DROP PROCEDURE IF EXISTS sp1;
9442 --error ER_PARSE_ERROR
9443 CREATE PROCEDURE sp1()
9445 declare high_priority char;
9450 DROP PROCEDURE IF EXISTS sp1;
9454 --error ER_PARSE_ERROR
9455 CREATE PROCEDURE sp1()
9457 declare hour_microsecond char;
9462 DROP PROCEDURE IF EXISTS sp1;
9466 --error ER_PARSE_ERROR
9467 CREATE PROCEDURE sp1()
9469 declare hour_minute char;
9474 DROP PROCEDURE IF EXISTS sp1;
9478 --error ER_PARSE_ERROR
9479 CREATE PROCEDURE sp1()
9481 declare hour_second char;
9486 DROP PROCEDURE IF EXISTS sp1;
9490 --error ER_PARSE_ERROR
9491 CREATE PROCEDURE sp1()
9498 DROP PROCEDURE IF EXISTS sp1;
9502 --error ER_PARSE_ERROR
9503 CREATE PROCEDURE sp1()
9505 declare ignore char;
9510 DROP PROCEDURE IF EXISTS sp1;
9514 --error ER_PARSE_ERROR
9515 CREATE PROCEDURE sp1()
9522 DROP PROCEDURE IF EXISTS sp1;
9526 --error ER_PARSE_ERROR
9527 CREATE PROCEDURE sp1()
9534 DROP PROCEDURE IF EXISTS sp1;
9538 --error ER_PARSE_ERROR
9539 CREATE PROCEDURE sp1()
9541 declare infile char;
9546 DROP PROCEDURE IF EXISTS sp1;
9550 --error ER_PARSE_ERROR
9551 CREATE PROCEDURE sp1()
9558 DROP PROCEDURE IF EXISTS sp1;
9562 --error ER_PARSE_ERROR
9563 CREATE PROCEDURE sp1()
9570 DROP PROCEDURE IF EXISTS sp1;
9574 --error ER_PARSE_ERROR
9575 CREATE PROCEDURE sp1()
9577 declare insensitive char;
9582 DROP PROCEDURE IF EXISTS sp1;
9586 --error ER_PARSE_ERROR
9587 CREATE PROCEDURE sp1()
9589 declare insert char;
9594 DROP PROCEDURE IF EXISTS sp1;
9598 --error ER_PARSE_ERROR
9599 CREATE PROCEDURE sp1()
9606 DROP PROCEDURE IF EXISTS sp1;
9610 --error ER_PARSE_ERROR
9611 CREATE PROCEDURE sp1()
9618 DROP PROCEDURE IF EXISTS sp1;
9622 --error ER_PARSE_ERROR
9623 CREATE PROCEDURE sp1()
9630 DROP PROCEDURE IF EXISTS sp1;
9634 --error ER_PARSE_ERROR
9635 CREATE PROCEDURE sp1()
9642 DROP PROCEDURE IF EXISTS sp1;
9646 --error ER_PARSE_ERROR
9647 CREATE PROCEDURE sp1()
9654 DROP PROCEDURE IF EXISTS sp1;
9658 --error ER_PARSE_ERROR
9659 CREATE PROCEDURE sp1()
9666 DROP PROCEDURE IF EXISTS sp1;
9670 --error ER_PARSE_ERROR
9671 CREATE PROCEDURE sp1()
9673 declare integer char;
9678 DROP PROCEDURE IF EXISTS sp1;
9682 --error ER_PARSE_ERROR
9683 CREATE PROCEDURE sp1()
9685 declare interval char;
9690 DROP PROCEDURE IF EXISTS sp1;
9694 --error ER_PARSE_ERROR
9695 CREATE PROCEDURE sp1()
9702 DROP PROCEDURE IF EXISTS sp1;
9706 --error ER_PARSE_ERROR
9707 CREATE PROCEDURE sp1()
9714 DROP PROCEDURE IF EXISTS sp1;
9718 --error ER_PARSE_ERROR
9719 CREATE PROCEDURE sp1()
9721 declare iterate char;
9726 DROP PROCEDURE IF EXISTS sp1;
9730 --error ER_PARSE_ERROR
9731 CREATE PROCEDURE sp1()
9738 DROP PROCEDURE IF EXISTS sp1;
9742 --error ER_PARSE_ERROR
9743 CREATE PROCEDURE sp1()
9750 DROP PROCEDURE IF EXISTS sp1;
9754 --error ER_PARSE_ERROR
9755 CREATE PROCEDURE sp1()
9762 DROP PROCEDURE IF EXISTS sp1;
9766 --error ER_PARSE_ERROR
9767 CREATE PROCEDURE sp1()
9774 DROP PROCEDURE IF EXISTS sp1;
9778 --error ER_PARSE_ERROR
9779 CREATE PROCEDURE sp1()
9781 declare leading char;
9786 DROP PROCEDURE IF EXISTS sp1;
9790 --error ER_PARSE_ERROR
9791 CREATE PROCEDURE sp1()
9798 DROP PROCEDURE IF EXISTS sp1;
9802 --error ER_PARSE_ERROR
9803 CREATE PROCEDURE sp1()
9810 DROP PROCEDURE IF EXISTS sp1;
9814 --error ER_PARSE_ERROR
9815 CREATE PROCEDURE sp1()
9822 DROP PROCEDURE IF EXISTS sp1;
9826 --error ER_PARSE_ERROR
9827 CREATE PROCEDURE sp1()
9834 DROP PROCEDURE IF EXISTS sp1;
9838 --error ER_PARSE_ERROR
9839 CREATE PROCEDURE sp1()
9841 declare linear char;
9846 DROP PROCEDURE IF EXISTS sp1;
9850 --error ER_PARSE_ERROR
9851 CREATE PROCEDURE sp1()
9858 DROP PROCEDURE IF EXISTS sp1;
9862 --error ER_PARSE_ERROR
9863 CREATE PROCEDURE sp1()
9870 DROP PROCEDURE IF EXISTS sp1;
9874 --error ER_PARSE_ERROR
9875 CREATE PROCEDURE sp1()
9877 declare localtime char;
9882 DROP PROCEDURE IF EXISTS sp1;
9886 --error ER_PARSE_ERROR
9887 CREATE PROCEDURE sp1()
9889 declare localtimestamp char;
9894 DROP PROCEDURE IF EXISTS sp1;
9898 --error ER_PARSE_ERROR
9899 CREATE PROCEDURE sp1()
9906 DROP PROCEDURE IF EXISTS sp1;
9910 --error ER_PARSE_ERROR
9911 CREATE PROCEDURE sp1()
9918 DROP PROCEDURE IF EXISTS sp1;
9922 --error ER_PARSE_ERROR
9923 CREATE PROCEDURE sp1()
9925 declare longblob char;
9930 DROP PROCEDURE IF EXISTS sp1;
9934 --error ER_PARSE_ERROR
9935 CREATE PROCEDURE sp1()
9937 declare longtext char;
9942 DROP PROCEDURE IF EXISTS sp1;
9946 --error ER_PARSE_ERROR
9947 CREATE PROCEDURE sp1()
9954 DROP PROCEDURE IF EXISTS sp1;
9958 --error ER_PARSE_ERROR
9959 CREATE PROCEDURE sp1()
9961 declare low_priority char;
9966 DROP PROCEDURE IF EXISTS sp1;
9970 --error ER_PARSE_ERROR
9971 CREATE PROCEDURE sp1()
9973 declare master_ssl_verify_server_cert char;
9978 DROP PROCEDURE IF EXISTS sp1;
9982 --error ER_PARSE_ERROR
9983 CREATE PROCEDURE sp1()
9990 DROP PROCEDURE IF EXISTS sp1;
9994 --error ER_PARSE_ERROR
9995 CREATE PROCEDURE sp1()
9997 declare mediumblob char;
10002 DROP PROCEDURE IF EXISTS sp1;
10006 --error ER_PARSE_ERROR
10007 CREATE PROCEDURE sp1()
10009 declare mediumint char;
10014 DROP PROCEDURE IF EXISTS sp1;
10018 --error ER_PARSE_ERROR
10019 CREATE PROCEDURE sp1()
10021 declare mediumtext char;
10026 DROP PROCEDURE IF EXISTS sp1;
10030 --error ER_PARSE_ERROR
10031 CREATE PROCEDURE sp1()
10033 declare middleint char;
10038 DROP PROCEDURE IF EXISTS sp1;
10042 --error ER_PARSE_ERROR
10043 CREATE PROCEDURE sp1()
10045 declare minute_microsecond char;
10050 DROP PROCEDURE IF EXISTS sp1;
10054 --error ER_PARSE_ERROR
10055 CREATE PROCEDURE sp1()
10057 declare minute_second char;
10062 DROP PROCEDURE IF EXISTS sp1;
10066 --error ER_PARSE_ERROR
10067 CREATE PROCEDURE sp1()
10074 DROP PROCEDURE IF EXISTS sp1;
10078 --error ER_PARSE_ERROR
10079 CREATE PROCEDURE sp1()
10081 declare modifies char;
10086 DROP PROCEDURE IF EXISTS sp1;
10090 --error ER_PARSE_ERROR
10091 CREATE PROCEDURE sp1()
10093 declare natural char;
10098 DROP PROCEDURE IF EXISTS sp1;
10102 --error ER_PARSE_ERROR
10103 CREATE PROCEDURE sp1()
10110 DROP PROCEDURE IF EXISTS sp1;
10114 --error ER_PARSE_ERROR
10115 CREATE PROCEDURE sp1()
10117 declare no_write_to_binlog char;
10122 DROP PROCEDURE IF EXISTS sp1;
10126 --error ER_PARSE_ERROR
10127 CREATE PROCEDURE sp1()
10134 DROP PROCEDURE IF EXISTS sp1;
10138 --error ER_PARSE_ERROR
10139 CREATE PROCEDURE sp1()
10141 declare numeric char;
10146 DROP PROCEDURE IF EXISTS sp1;
10150 --error ER_PARSE_ERROR
10151 CREATE PROCEDURE sp1()
10158 DROP PROCEDURE IF EXISTS sp1;
10162 --error ER_PARSE_ERROR
10163 CREATE PROCEDURE sp1()
10165 declare optimize char;
10170 DROP PROCEDURE IF EXISTS sp1;
10174 --error ER_PARSE_ERROR
10175 CREATE PROCEDURE sp1()
10177 declare option char;
10182 DROP PROCEDURE IF EXISTS sp1;
10186 --error ER_PARSE_ERROR
10187 CREATE PROCEDURE sp1()
10189 declare optionally char;
10194 DROP PROCEDURE IF EXISTS sp1;
10198 --error ER_PARSE_ERROR
10199 CREATE PROCEDURE sp1()
10206 DROP PROCEDURE IF EXISTS sp1;
10210 --error ER_PARSE_ERROR
10211 CREATE PROCEDURE sp1()
10213 declare order char;
10218 DROP PROCEDURE IF EXISTS sp1;
10222 --error ER_PARSE_ERROR
10223 CREATE PROCEDURE sp1()
10230 DROP PROCEDURE IF EXISTS sp1;
10234 --error ER_PARSE_ERROR
10235 CREATE PROCEDURE sp1()
10237 declare outer char;
10242 DROP PROCEDURE IF EXISTS sp1;
10246 --error ER_PARSE_ERROR
10247 CREATE PROCEDURE sp1()
10249 declare outfile char;
10254 DROP PROCEDURE IF EXISTS sp1;
10258 --error ER_PARSE_ERROR
10259 CREATE PROCEDURE sp1()
10261 declare precision char;
10266 DROP PROCEDURE IF EXISTS sp1;
10270 --error ER_PARSE_ERROR
10271 CREATE PROCEDURE sp1()
10273 declare primary char;
10278 DROP PROCEDURE IF EXISTS sp1;
10282 --error ER_PARSE_ERROR
10283 CREATE PROCEDURE sp1()
10285 declare procedure char;
10290 DROP PROCEDURE IF EXISTS sp1;
10294 --error ER_PARSE_ERROR
10295 CREATE PROCEDURE sp1()
10297 declare purge char;
10302 DROP PROCEDURE IF EXISTS sp1;
10306 --error ER_PARSE_ERROR
10307 CREATE PROCEDURE sp1()
10309 declare range char;
10314 DROP PROCEDURE IF EXISTS sp1;
10318 --error ER_PARSE_ERROR
10319 CREATE PROCEDURE sp1()
10326 DROP PROCEDURE IF EXISTS sp1;
10330 --error ER_PARSE_ERROR
10331 CREATE PROCEDURE sp1()
10333 declare reads char;
10338 DROP PROCEDURE IF EXISTS sp1;
10343 #--error ER_PARSE_ERROR
10344 CREATE PROCEDURE sp1()
10346 declare read_only char;
10351 DROP PROCEDURE IF EXISTS sp1;
10355 --error ER_PARSE_ERROR
10356 CREATE PROCEDURE sp1()
10358 declare read_write char;
10363 DROP PROCEDURE IF EXISTS sp1;
10367 --error ER_PARSE_ERROR
10368 CREATE PROCEDURE sp1()
10375 DROP PROCEDURE IF EXISTS sp1;
10379 --error ER_PARSE_ERROR
10380 CREATE PROCEDURE sp1()
10382 declare references char;
10387 DROP PROCEDURE IF EXISTS sp1;
10391 --error ER_PARSE_ERROR
10392 CREATE PROCEDURE sp1()
10394 declare regexp char;
10399 DROP PROCEDURE IF EXISTS sp1;
10403 --error ER_PARSE_ERROR
10404 CREATE PROCEDURE sp1()
10406 declare release char;
10411 DROP PROCEDURE IF EXISTS sp1;
10415 --error ER_PARSE_ERROR
10416 CREATE PROCEDURE sp1()
10418 declare rename char;
10423 DROP PROCEDURE IF EXISTS sp1;
10427 --error ER_PARSE_ERROR
10428 CREATE PROCEDURE sp1()
10430 declare repeat char;
10435 DROP PROCEDURE IF EXISTS sp1;
10439 --error ER_PARSE_ERROR
10440 CREATE PROCEDURE sp1()
10442 declare replace char;
10445 DROP PROCEDURE IF EXISTS sp1;
10448 --error ER_PARSE_ERROR
10449 CREATE PROCEDURE sp1()
10451 declare require char;
10454 DROP PROCEDURE IF EXISTS sp1;
10457 --error ER_PARSE_ERROR
10458 CREATE PROCEDURE sp1()
10460 declare restrict char;
10464 DROP PROCEDURE IF EXISTS sp1;
10467 --error ER_PARSE_ERROR
10468 CREATE PROCEDURE sp1()
10470 declare return char;
10474 DROP PROCEDURE IF EXISTS sp1;
10477 --error ER_PARSE_ERROR
10478 CREATE PROCEDURE sp1()
10480 declare revoke char;
10484 DROP PROCEDURE IF EXISTS sp1;
10487 --error ER_PARSE_ERROR
10488 CREATE PROCEDURE sp1()
10490 declare right char;
10494 DROP PROCEDURE IF EXISTS sp1;
10497 --error ER_PARSE_ERROR
10498 CREATE PROCEDURE sp1()
10500 declare rlike char;
10504 DROP PROCEDURE IF EXISTS sp1;
10507 --error ER_PARSE_ERROR
10508 CREATE PROCEDURE sp1()
10510 declare schema char;
10514 DROP PROCEDURE IF EXISTS sp1;
10517 --error ER_PARSE_ERROR
10518 CREATE PROCEDURE sp1()
10520 declare schemas char;
10524 DROP PROCEDURE IF EXISTS sp1;
10527 --error ER_PARSE_ERROR
10528 CREATE PROCEDURE sp1()
10530 declare second_microsecond char;
10534 DROP PROCEDURE IF EXISTS sp1;
10537 --error ER_PARSE_ERROR
10538 CREATE PROCEDURE sp1()
10540 declare SELECT char;
10544 DROP PROCEDURE IF EXISTS sp1;
10547 --error ER_PARSE_ERROR
10548 CREATE PROCEDURE sp1()
10550 declare sensitive char;
10554 DROP PROCEDURE IF EXISTS sp1;
10557 --error ER_PARSE_ERROR
10558 CREATE PROCEDURE sp1()
10560 declare separator char;
10564 DROP PROCEDURE IF EXISTS sp1;
10567 --error ER_PARSE_ERROR
10568 CREATE PROCEDURE sp1()
10574 DROP PROCEDURE IF EXISTS sp1;
10577 --error ER_PARSE_ERROR
10578 CREATE PROCEDURE sp1()
10584 DROP PROCEDURE IF EXISTS sp1;
10587 --error ER_PARSE_ERROR
10588 CREATE PROCEDURE sp1()
10590 declare smallint char;
10594 DROP PROCEDURE IF EXISTS sp1;
10597 --error ER_PARSE_ERROR
10598 CREATE PROCEDURE sp1()
10600 declare spatial char;
10604 DROP PROCEDURE IF EXISTS sp1;
10607 --error ER_PARSE_ERROR
10608 CREATE PROCEDURE sp1()
10610 declare specific char;
10614 DROP PROCEDURE IF EXISTS sp1;
10617 --error ER_PARSE_ERROR
10618 CREATE PROCEDURE sp1()
10624 DROP PROCEDURE IF EXISTS sp1;
10627 --error ER_PARSE_ERROR
10628 CREATE PROCEDURE sp1()
10630 declare sqlexception char;
10634 DROP PROCEDURE IF EXISTS sp1;
10637 --error ER_PARSE_ERROR
10638 CREATE PROCEDURE sp1()
10640 declare sqlstate char;
10644 DROP PROCEDURE IF EXISTS sp1;
10647 --error ER_PARSE_ERROR
10648 CREATE PROCEDURE sp1()
10650 declare sqlwarning char;
10654 DROP PROCEDURE IF EXISTS sp1;
10657 --error ER_PARSE_ERROR
10658 CREATE PROCEDURE sp1()
10660 declare sql_big_result char;
10664 DROP PROCEDURE IF EXISTS sp1;
10667 --error ER_PARSE_ERROR
10668 CREATE PROCEDURE sp1()
10670 declare sql_calc_found_rows char;
10674 DROP PROCEDURE IF EXISTS sp1;
10677 --error ER_PARSE_ERROR
10678 CREATE PROCEDURE sp1()
10680 declare sql_small_result char;
10684 DROP PROCEDURE IF EXISTS sp1;
10687 --error ER_PARSE_ERROR
10688 CREATE PROCEDURE sp1()
10694 DROP PROCEDURE IF EXISTS sp1;
10697 --error ER_PARSE_ERROR
10698 CREATE PROCEDURE sp1()
10700 declare starting char;
10704 DROP PROCEDURE IF EXISTS sp1;
10707 --error ER_PARSE_ERROR
10708 CREATE PROCEDURE sp1()
10710 declare straight_join char;
10714 DROP PROCEDURE IF EXISTS sp1;
10717 --error ER_PARSE_ERROR
10718 CREATE PROCEDURE sp1()
10720 declare table char;
10724 DROP PROCEDURE IF EXISTS sp1;
10727 --error ER_PARSE_ERROR
10728 CREATE PROCEDURE sp1()
10730 declare terminated char;
10734 DROP PROCEDURE IF EXISTS sp1;
10737 --error ER_PARSE_ERROR
10738 CREATE PROCEDURE sp1()
10744 DROP PROCEDURE IF EXISTS sp1;
10747 --error ER_PARSE_ERROR
10748 CREATE PROCEDURE sp1()
10750 declare tinyblob char;
10754 DROP PROCEDURE IF EXISTS sp1;
10757 --error ER_PARSE_ERROR
10758 CREATE PROCEDURE sp1()
10760 declare tinyint char;
10764 DROP PROCEDURE IF EXISTS sp1;
10767 --error ER_PARSE_ERROR
10768 CREATE PROCEDURE sp1()
10770 declare tinytext char;
10774 DROP PROCEDURE IF EXISTS sp1;
10777 --error ER_PARSE_ERROR
10778 CREATE PROCEDURE sp1()
10784 DROP PROCEDURE IF EXISTS sp1;
10787 --error ER_PARSE_ERROR
10788 CREATE PROCEDURE sp1()
10790 declare trailing char;
10793 DROP PROCEDURE IF EXISTS sp1;
10796 --error ER_PARSE_ERROR
10797 CREATE PROCEDURE sp1()
10799 declare trigger char;
10802 DROP PROCEDURE IF EXISTS sp1;
10805 --error ER_PARSE_ERROR
10806 CREATE PROCEDURE sp1()
10812 DROP PROCEDURE IF EXISTS sp1;
10815 --error ER_PARSE_ERROR
10816 CREATE PROCEDURE sp1()
10822 DROP PROCEDURE IF EXISTS sp1;
10825 --error ER_PARSE_ERROR
10826 CREATE PROCEDURE sp1()
10828 declare union char;
10832 DROP PROCEDURE IF EXISTS sp1;
10835 --error ER_PARSE_ERROR
10836 CREATE PROCEDURE sp1()
10838 declare unique char;
10842 DROP PROCEDURE IF EXISTS sp1;
10845 --error ER_PARSE_ERROR
10846 CREATE PROCEDURE sp1()
10848 declare unlock char;
10852 DROP PROCEDURE IF EXISTS sp1;
10855 --error ER_PARSE_ERROR
10856 CREATE PROCEDURE sp1()
10858 declare unsigned char;
10862 DROP PROCEDURE IF EXISTS sp1;
10865 --error ER_PARSE_ERROR
10866 CREATE PROCEDURE sp1()
10868 declare update char;
10872 DROP PROCEDURE IF EXISTS sp1;
10875 --error ER_PARSE_ERROR
10876 CREATE PROCEDURE sp1()
10878 declare usage char;
10882 DROP PROCEDURE IF EXISTS sp1;
10885 --error ER_PARSE_ERROR
10886 CREATE PROCEDURE sp1()
10892 DROP PROCEDURE IF EXISTS sp1;
10895 --error ER_PARSE_ERROR
10896 CREATE PROCEDURE sp1()
10898 declare using char;
10902 DROP PROCEDURE IF EXISTS sp1;
10905 --error ER_PARSE_ERROR
10906 CREATE PROCEDURE sp1()
10908 declare utc_date char;
10912 DROP PROCEDURE IF EXISTS sp1;
10915 --error ER_PARSE_ERROR
10916 CREATE PROCEDURE sp1()
10918 declare utc_time char;
10922 DROP PROCEDURE IF EXISTS sp1;
10925 --error ER_PARSE_ERROR
10926 CREATE PROCEDURE sp1()
10928 declare utc_timestamp char;
10932 DROP PROCEDURE IF EXISTS sp1;
10935 --error ER_PARSE_ERROR
10936 CREATE PROCEDURE sp1()
10938 declare values char;
10942 DROP PROCEDURE IF EXISTS sp1;
10945 --error ER_PARSE_ERROR
10946 CREATE PROCEDURE sp1()
10948 declare varbinary char;
10952 DROP PROCEDURE IF EXISTS sp1;
10955 --error ER_PARSE_ERROR
10956 CREATE PROCEDURE sp1()
10958 declare varchar char;
10962 DROP PROCEDURE IF EXISTS sp1;
10965 --error ER_PARSE_ERROR
10966 CREATE PROCEDURE sp1()
10968 declare varcharacter char;
10972 DROP PROCEDURE IF EXISTS sp1;
10975 --error ER_PARSE_ERROR
10976 CREATE PROCEDURE sp1()
10978 declare varying char;
10982 DROP PROCEDURE IF EXISTS sp1;
10985 --error ER_PARSE_ERROR
10986 CREATE PROCEDURE sp1()
10992 DROP PROCEDURE IF EXISTS sp1;
10995 --error ER_PARSE_ERROR
10996 CREATE PROCEDURE sp1()
10998 declare where char;
11002 DROP PROCEDURE IF EXISTS sp1;
11005 --error ER_PARSE_ERROR
11006 CREATE PROCEDURE sp1()
11008 declare while char;
11012 DROP PROCEDURE IF EXISTS sp1;
11015 --error ER_PARSE_ERROR
11016 CREATE PROCEDURE sp1()
11022 DROP PROCEDURE IF EXISTS sp1;
11025 --error ER_PARSE_ERROR
11026 CREATE PROCEDURE sp1()
11028 declare write char;
11032 DROP PROCEDURE IF EXISTS sp1;
11035 --error ER_PARSE_ERROR
11036 CREATE PROCEDURE sp1()
11042 DROP PROCEDURE IF EXISTS sp1;
11045 --error ER_PARSE_ERROR
11046 CREATE PROCEDURE sp1()
11048 declare year_month char;
11052 DROP PROCEDURE IF EXISTS sp1;
11055 --error ER_PARSE_ERROR
11056 CREATE PROCEDURE sp1()
11058 declare zerofill char;
11062 # ------------------------------------------------------------------------------
11063 let $message= Testcase :
11065 Ensure that every possible type of condition may be declared for a stored procedure
11066 ( covered in more detail in handlers section.);
11067 --source include/show_msg80.inc
11069 DROP PROCEDURE IF EXISTS sp1;
11072 CREATE PROCEDURE sp1()
11074 declare cond1 condition for sqlstate 'HY000';
11076 declare cond2 condition for sqlstate '23000';
11078 declare cond3 condition for sqlstate 'HY001';
11080 declare cond4 condition for sqlstate '08004';
11082 declare cond5 condition for sqlstate '08S01';
11084 declare cond6 condition for sqlstate '42000';
11086 declare cond7 condition for sqlstate '28000';
11088 declare cond8 condition for sqlstate '3D000';
11090 declare cond9 condition for sqlstate '42S01';
11092 declare cond10 condition for sqlstate '42S02';
11094 declare cond11 condition for sqlstate '42S22';
11096 declare cond12 condition for sqlstate '21S01';
11098 declare cond13 condition for sqlstate '42S21';
11100 declare cond14 condition for sqlstate '42S12';
11102 declare cond15 condition for sqlstate '22004';
11104 declare cond16 condition for sqlstate '25000';
11106 declare cond17 condition for sqlstate '40001';
11108 declare cond18 condition for sqlstate '21000';
11110 declare cond19 condition for sqlstate '01000';
11112 declare cond20 condition for sqlstate '22003';
11114 declare cond21 condition for sqlstate '22007';
11116 declare cond22 condition for sqlstate '0A000';
11118 declare cond23 condition for sqlstate '70100';
11120 declare cond24 condition for sqlstate '2F005';
11122 declare cond25 condition for sqlstate '24000';
11124 declare cond26 condition for sqlstate '02000';
11126 declare continue handler for cond2 set @x2 = 1;
11128 declare continue handler for cond1 set @x2 = 1;
11130 declare continue handler for cond3 set @x2 = 1;
11132 declare continue handler for cond4 set @x2 = 1;
11134 declare continue handler for cond5 set @x2 = 1;
11136 declare continue handler for cond7 set @x2 = 1;
11138 declare continue handler for cond6 set @x2 = 1;
11140 declare continue handler for cond8 set @x2 = 1;
11142 declare continue handler for cond9 set @x2 = 1;
11144 declare continue handler for cond10 set @x2 = 1;
11146 declare continue handler for cond11 set @x2 = 1;
11148 declare continue handler for cond12 set @x2 = 1;
11150 declare continue handler for cond13 set @x2 = 1;
11152 declare continue handler for cond14 set @x2 = 1;
11154 declare continue handler for cond15 set @x2 = 1;
11156 declare continue handler for cond16 set @x2 = 1;
11158 declare continue handler for cond17 set @x2 = 1;
11160 declare continue handler for cond18 set @x2 = 1;
11162 declare continue handler for cond19 set @x2 = 1;
11164 declare continue handler for cond20 set @x2 = 1;
11166 declare continue handler for cond21 set @x2 = 1;
11168 declare continue handler for cond22 set @x2 = 1;
11170 declare continue handler for cond23 set @x2 = 1;
11172 declare continue handler for cond24 set @x2 = 1;
11174 declare continue handler for cond25 set @x2 = 1;
11176 declare continue handler for cond26 set @x2 = 1;
11181 insert into t2 values (1);
11185 insert into t2 values (1);
11194 DROP PROCEDURE sp1;
11196 # testcase: ensure that invalid condition declarations are rejected, with an appropriate error message.
11199 DROP PROCEDURE IF EXISTS sp1;
11202 --error ER_PARSE_ERROR
11203 CREATE PROCEDURE sp1( )
11209 DROP PROCEDURE IF EXISTS sp1;
11212 --error ER_PARSE_ERROR
11213 CREATE PROCEDURE sp1( )
11218 DROP PROCEDURE IF EXISTS sp1;
11221 --error ER_PARSE_ERROR
11222 CREATE PROCEDURE sp1( )
11224 declare accessible condition for sqlstate '02000';
11225 declare exit handler for add set @var2 = 1;
11229 DROP PROCEDURE IF EXISTS sp1;
11232 --error ER_PARSE_ERROR
11233 CREATE PROCEDURE sp1( )
11235 declare add condition for sqlstate '02000';
11236 declare exit handler for add set @var2 = 1;
11240 DROP PROCEDURE IF EXISTS sp1;
11243 --error ER_PARSE_ERROR
11244 CREATE PROCEDURE sp1( )
11246 declare all condition for sqlstate '02000';
11247 declare exit handler for all set @var2 = 1;
11251 DROP PROCEDURE IF EXISTS sp1;
11254 --error ER_PARSE_ERROR
11255 CREATE PROCEDURE sp1( )
11257 declare alter condition for sqlstate '02000';
11258 declare exit handler for alter set @var2 = 1;
11262 DROP PROCEDURE IF EXISTS sp1;
11265 --error ER_PARSE_ERROR
11266 CREATE PROCEDURE sp1( )
11268 declare analyze condition for sqlstate '02000';
11269 declare exit handler for analyze set @var2 = 1;
11273 DROP PROCEDURE IF EXISTS sp1;
11276 --error ER_PARSE_ERROR
11277 CREATE PROCEDURE sp1( )
11279 declare and condition for sqlstate '02000';
11280 declare exit handler for and set @var2 = 1;
11284 DROP PROCEDURE IF EXISTS sp1;
11287 --error ER_PARSE_ERROR
11288 CREATE PROCEDURE sp1( )
11290 declare as condition for sqlstate '02000';
11291 declare exit handler for as set @var2 = 1;
11295 DROP PROCEDURE IF EXISTS sp1;
11298 --error ER_PARSE_ERROR
11299 CREATE PROCEDURE sp1( )
11301 declare asc condition for sqlstate '02000';
11302 declare exit handler for asc set @var2 = 1;
11306 DROP PROCEDURE IF EXISTS sp1;
11309 --error ER_PARSE_ERROR
11310 CREATE PROCEDURE sp1( )
11312 declare asensitive condition for sqlstate '02000';
11313 declare exit handler for asensitive set @var2 = 1;
11317 DROP PROCEDURE IF EXISTS sp1;
11320 --error ER_PARSE_ERROR
11321 CREATE PROCEDURE sp1( )
11323 declare before condition for sqlstate '02000';
11324 declare exit handler for before set @var2 = 1;
11328 DROP PROCEDURE IF EXISTS sp1;
11331 --error ER_PARSE_ERROR
11332 CREATE PROCEDURE sp1( )
11334 declare between condition for sqlstate '02000';
11335 declare exit handler for between set @var2 = 1;
11339 DROP PROCEDURE IF EXISTS sp1;
11342 --error ER_PARSE_ERROR
11343 CREATE PROCEDURE sp1( )
11345 declare bigint condition for sqlstate '02000';
11346 declare exit handler for bigint set @var2 = 1;
11350 DROP PROCEDURE IF EXISTS sp1;
11353 --error ER_PARSE_ERROR
11354 CREATE PROCEDURE sp1( )
11356 declare binary condition for sqlstate '02000';
11357 declare exit handler for binary set @var2 = 1;
11361 DROP PROCEDURE IF EXISTS sp1;
11364 --error ER_PARSE_ERROR
11365 CREATE PROCEDURE sp1( )
11367 declare blob condition for sqlstate '02000';
11368 declare exit handler for blob set @var2 = 1;
11372 DROP PROCEDURE IF EXISTS sp1;
11375 --error ER_PARSE_ERROR
11376 CREATE PROCEDURE sp1( )
11378 declare both condition for sqlstate '02000';
11379 declare exit handler for both set @var2 = 1;
11383 DROP PROCEDURE IF EXISTS sp1;
11386 --error ER_PARSE_ERROR
11387 CREATE PROCEDURE sp1( )
11389 declare by condition for sqlstate '02000';
11390 declare exit handler for by set @var2 = 1;
11394 DROP PROCEDURE IF EXISTS sp1;
11397 --error ER_PARSE_ERROR
11398 CREATE PROCEDURE sp1( )
11400 declare call condition for sqlstate '02000';
11401 declare exit handler for CALL set @var2 = 1;
11405 DROP PROCEDURE IF EXISTS sp1;
11408 --error ER_PARSE_ERROR
11409 CREATE PROCEDURE sp1( )
11411 declare cascade condition for sqlstate '02000';
11412 declare exit handler for cascade set @var2 = 1;
11416 DROP PROCEDURE IF EXISTS sp1;
11419 --error ER_PARSE_ERROR
11420 CREATE PROCEDURE sp1( )
11422 declare case condition for sqlstate '02000';
11423 declare exit handler for case set @var2 = 1;
11427 DROP PROCEDURE IF EXISTS sp1;
11430 --error ER_PARSE_ERROR
11431 CREATE PROCEDURE sp1( )
11433 declare change condition for sqlstate '02000';
11434 declare exit handler for change set @var2 = 1;
11438 DROP PROCEDURE IF EXISTS sp1;
11441 --error ER_PARSE_ERROR
11442 CREATE PROCEDURE sp1( )
11444 declare char condition for sqlstate '02000';
11445 declare exit handler for char set @var2 = 1;
11449 DROP PROCEDURE IF EXISTS sp1;
11452 --error ER_PARSE_ERROR
11453 CREATE PROCEDURE sp1( )
11455 declare character condition for sqlstate '02000';
11456 declare exit handler for character set @var2 = 1;
11460 DROP PROCEDURE IF EXISTS sp1;
11463 --error ER_PARSE_ERROR
11464 CREATE PROCEDURE sp1( )
11466 declare check condition for sqlstate '02000';
11467 declare exit handler for check set @var2 = 1;
11471 DROP PROCEDURE IF EXISTS sp1;
11474 #--error ER_PARSE_ERROR
11475 CREATE PROCEDURE sp1( )
11477 declare collate condition for sqlstate '02000';
11478 declare exit handler for collate set @var2 = 1;
11482 DROP PROCEDURE IF EXISTS sp1;
11485 --error ER_PARSE_ERROR
11486 CREATE PROCEDURE sp1( )
11488 declare column condition for sqlstate '02000';
11489 declare exit handler for column set @var2 = 1;
11492 DROP PROCEDURE IF EXISTS sp1;
11495 --error ER_PARSE_ERROR
11496 CREATE PROCEDURE sp1( )
11498 declare condition condition for sqlstate '02000';
11499 declare exit handler for condition set @var2 = 1;
11502 DROP PROCEDURE IF EXISTS sp1;
11505 #--error ER_PARSE_ERROR
11506 CREATE PROCEDURE sp1( )
11508 declare connection condition for sqlstate '02000';
11509 declare exit handler for connection set @var2 = 1;
11512 DROP PROCEDURE IF EXISTS sp1;
11515 --error ER_PARSE_ERROR
11516 CREATE PROCEDURE sp1( )
11518 declare constraint condition for sqlstate '02000';
11519 declare exit handler for constraint set @var2 = 1;
11523 DROP PROCEDURE IF EXISTS sp1;
11526 --error ER_PARSE_ERROR
11527 CREATE PROCEDURE sp1( )
11529 declare continue condition for sqlstate '02000';
11530 declare exit handler for continue set @var2 = 1;
11534 DROP PROCEDURE IF EXISTS sp1;
11537 --error ER_PARSE_ERROR
11538 CREATE PROCEDURE sp1( )
11540 declare convert condition for sqlstate '02000';
11541 declare exit handler for convert set @var2 = 1;
11545 DROP PROCEDURE IF EXISTS sp1;
11548 --error ER_PARSE_ERROR
11549 CREATE PROCEDURE sp1( )
11551 declare create condition for sqlstate '02000';
11552 declare exit handler for create set @var2 = 1;
11556 DROP PROCEDURE IF EXISTS sp1;
11559 --error ER_PARSE_ERROR
11560 CREATE PROCEDURE sp1( )
11562 declare cross condition for sqlstate '02000';
11563 declare exit handler for cross set @var2 = 1;
11567 DROP PROCEDURE IF EXISTS sp1;
11570 --error ER_PARSE_ERROR
11571 CREATE PROCEDURE sp1( )
11573 declare current_date condition for sqlstate '02000';
11574 declare exit handler for current_date set @var2 = 1;
11578 DROP PROCEDURE IF EXISTS sp1;
11581 --error ER_PARSE_ERROR
11582 CREATE PROCEDURE sp1( )
11584 declare current_time condition for sqlstate '02000';
11585 declare exit handler for current_time set @var2 = 1;
11589 DROP PROCEDURE IF EXISTS sp1;
11592 --error ER_PARSE_ERROR
11593 CREATE PROCEDURE sp1( )
11595 declare current_timestamp condition for sqlstate '02000';
11596 declare exit handler for current_timestamp set @var2 = 1;
11600 DROP PROCEDURE IF EXISTS sp1;
11603 --error ER_PARSE_ERROR
11604 CREATE PROCEDURE sp1( )
11606 declare current_user condition for sqlstate '02000';
11607 declare exit handler for current_user set @var2 = 1;
11611 DROP PROCEDURE IF EXISTS sp1;
11614 --error ER_PARSE_ERROR
11615 CREATE PROCEDURE sp1( )
11617 declare cursor condition for sqlstate '02000';
11618 declare exit handler for cursor set @var2 = 1;
11622 DROP PROCEDURE IF EXISTS sp1;
11625 --error ER_PARSE_ERROR
11626 CREATE PROCEDURE sp1( )
11628 declare database condition for sqlstate '02000';
11629 declare exit handler for database set @var2 = 1;
11633 DROP PROCEDURE IF EXISTS sp1;
11636 --error ER_PARSE_ERROR
11637 CREATE PROCEDURE sp1( )
11639 declare databases condition for sqlstate '02000';
11640 declare exit handler for databases set @var2 = 1;
11644 DROP PROCEDURE IF EXISTS sp1;
11647 --error ER_PARSE_ERROR
11648 CREATE PROCEDURE sp1( )
11650 declare day_hour condition for sqlstate '02000';
11651 declare exit handler for day_hour set @var2 = 1;
11655 DROP PROCEDURE IF EXISTS sp1;
11658 --error ER_PARSE_ERROR
11659 CREATE PROCEDURE sp1( )
11661 declare day_microsecond condition for sqlstate '02000';
11662 declare exit handler for day_microsecond set @var2 = 1;
11666 DROP PROCEDURE IF EXISTS sp1;
11669 --error ER_PARSE_ERROR
11670 CREATE PROCEDURE sp1( )
11672 declare day_minute condition for sqlstate '02000';
11673 declare exit handler for day_minute set @var2 = 1;
11677 DROP PROCEDURE IF EXISTS sp1;
11680 --error ER_PARSE_ERROR
11681 CREATE PROCEDURE sp1( )
11683 declare day_second condition for sqlstate '02000';
11684 declare exit handler for day_second set @var2 = 1;
11688 DROP PROCEDURE IF EXISTS sp1;
11691 --error ER_PARSE_ERROR
11692 CREATE PROCEDURE sp1( )
11694 declare dec condition for sqlstate '02000';
11695 declare exit handler for dec set @var2 = 1;
11699 DROP PROCEDURE IF EXISTS sp1;
11702 --error ER_PARSE_ERROR
11703 CREATE PROCEDURE sp1( )
11705 declare decimal condition for sqlstate '02000';
11706 declare exit handler for decimal set @var2 = 1;
11710 DROP PROCEDURE IF EXISTS sp1;
11713 --error ER_PARSE_ERROR
11714 CREATE PROCEDURE sp1( )
11716 declare declare condition for sqlstate '02000';
11717 declare exit handler for declare set @var2 = 1;
11721 DROP PROCEDURE IF EXISTS sp1;
11724 --error ER_PARSE_ERROR
11725 CREATE PROCEDURE sp1( )
11727 declare default condition for sqlstate '02000';
11728 declare exit handler for default set @var2 = 1;
11732 DROP PROCEDURE IF EXISTS sp1;
11735 --error ER_PARSE_ERROR
11736 CREATE PROCEDURE sp1( )
11738 declare delayed condition for sqlstate '02000';
11739 declare exit handler for delayed set @var2 = 1;
11743 DROP PROCEDURE IF EXISTS sp1;
11746 --error ER_PARSE_ERROR
11747 CREATE PROCEDURE sp1( )
11749 declare delete condition for sqlstate '02000';
11750 declare exit handler for delete set @var2 = 1;
11754 DROP PROCEDURE IF EXISTS sp1;
11757 --error ER_PARSE_ERROR
11758 CREATE PROCEDURE sp1( )
11760 declare desc condition for sqlstate '02000';
11761 declare exit handler for desc set @var2 = 1;
11765 DROP PROCEDURE IF EXISTS sp1;
11768 --error ER_PARSE_ERROR
11769 CREATE PROCEDURE sp1( )
11771 declare describe condition for sqlstate '02000';
11772 declare exit handler for describe set @var2 = 1;
11776 DROP PROCEDURE IF EXISTS sp1;
11779 --error ER_PARSE_ERROR
11780 CREATE PROCEDURE sp1( )
11782 declare deterministic condition for sqlstate '02000';
11783 declare exit handler for deterministic set @var2 = 1;
11787 DROP PROCEDURE IF EXISTS sp1;
11790 --error ER_PARSE_ERROR
11791 CREATE PROCEDURE sp1( )
11793 declare distinct condition for sqlstate '02000';
11794 declare exit handler for distinct set @var2 = 1;
11798 DROP PROCEDURE IF EXISTS sp1;
11801 --error ER_PARSE_ERROR
11802 CREATE PROCEDURE sp1( )
11804 declare distinctrow condition for sqlstate '02000';
11805 declare exit handler for distinctrow set @var2 = 1;
11809 DROP PROCEDURE IF EXISTS sp1;
11812 --error ER_PARSE_ERROR
11813 CREATE PROCEDURE sp1( )
11815 declare div condition for sqlstate '02000';
11816 declare exit handler for div set @var2 = 1;
11820 DROP PROCEDURE IF EXISTS sp1;
11823 --error ER_PARSE_ERROR
11824 CREATE PROCEDURE sp1( )
11826 declare double condition for sqlstate '02000';
11827 declare exit handler for double set @var2 = 1;
11831 DROP PROCEDURE IF EXISTS sp1;
11834 --error ER_PARSE_ERROR
11835 CREATE PROCEDURE sp1( )
11837 declare drop condition for sqlstate '02000';
11838 declare exit handler for drop set @var2 = 1;
11842 DROP PROCEDURE IF EXISTS sp1;
11845 --error ER_PARSE_ERROR
11846 CREATE PROCEDURE sp1( )
11848 declare dual condition for sqlstate '02000';
11849 declare exit handler for dual set @var2 = 1;
11853 DROP PROCEDURE IF EXISTS sp1;
11856 --error ER_PARSE_ERROR
11857 CREATE PROCEDURE sp1( )
11859 declare each condition for sqlstate '02000';
11860 declare exit handler for each set @var2 = 1;
11864 DROP PROCEDURE IF EXISTS sp1;
11867 --error ER_PARSE_ERROR
11868 CREATE PROCEDURE sp1( )
11870 declare else condition for sqlstate '02000';
11871 declare exit handler for else set @var2 = 1;
11875 DROP PROCEDURE IF EXISTS sp1;
11878 --error ER_PARSE_ERROR
11879 CREATE PROCEDURE sp1( )
11881 declare elseif condition for sqlstate '02000';
11882 declare exit handler for elseif set @var2 = 1;
11886 DROP PROCEDURE IF EXISTS sp1;
11889 --error ER_PARSE_ERROR
11890 CREATE PROCEDURE sp1( )
11892 declare enclosed condition for sqlstate '02000';
11893 declare exit handler for enclosed set @var2 = 1;
11897 DROP PROCEDURE IF EXISTS sp1;
11900 --error ER_PARSE_ERROR
11901 CREATE PROCEDURE sp1( )
11903 declare escaped condition for sqlstate '02000';
11904 declare exit handler for escaped set @var2 = 1;
11908 DROP PROCEDURE IF EXISTS sp1;
11911 --error ER_PARSE_ERROR
11912 CREATE PROCEDURE sp1( )
11914 declare exists condition for sqlstate '02000';
11915 declare exit handler for exists set @var2 = 1;
11919 DROP PROCEDURE IF EXISTS sp1;
11922 --error ER_PARSE_ERROR
11923 CREATE PROCEDURE sp1( )
11925 declare exit condition for sqlstate '02000';
11926 declare exit handler for exit set @var2 = 1;
11930 DROP PROCEDURE IF EXISTS sp1;
11933 --error ER_PARSE_ERROR
11934 CREATE PROCEDURE sp1( )
11936 declare explain condition for sqlstate '02000';
11937 declare exit handler for explain set @var2 = 1;
11941 DROP PROCEDURE IF EXISTS sp1;
11944 --error ER_PARSE_ERROR
11945 CREATE PROCEDURE sp1( )
11947 declare false condition for sqlstate '02000';
11948 declare exit handler for false set @var2 = 1;
11952 DROP PROCEDURE IF EXISTS sp1;
11955 --error ER_PARSE_ERROR
11956 CREATE PROCEDURE sp1( )
11958 declare fetch condition for sqlstate '02000';
11959 declare exit handler for fetch set @var2 = 1;
11963 DROP PROCEDURE IF EXISTS sp1;
11966 --error ER_PARSE_ERROR
11967 CREATE PROCEDURE sp1( )
11969 declare float condition for sqlstate '02000';
11970 declare exit handler for float set @var2 = 1;
11974 DROP PROCEDURE IF EXISTS sp1;
11977 --error ER_PARSE_ERROR
11978 CREATE PROCEDURE sp1( )
11980 declare float4 condition for sqlstate '02000';
11981 declare exit handler for add set @var2 = 1;
11985 DROP PROCEDURE IF EXISTS sp1;
11988 --error ER_PARSE_ERROR
11989 CREATE PROCEDURE sp1( )
11991 declare float8 condition for sqlstate '02000';
11992 declare exit handler for add set @var2 = 1;
11996 DROP PROCEDURE IF EXISTS sp1;
11999 --error ER_PARSE_ERROR
12000 CREATE PROCEDURE sp1( )
12002 declare for condition for sqlstate '02000';
12003 declare exit handler for for set @var2 = 1;
12007 DROP PROCEDURE IF EXISTS sp1;
12010 --error ER_PARSE_ERROR
12011 CREATE PROCEDURE sp1( )
12013 declare force condition for sqlstate '02000';
12014 declare exit handler for force set @var2 = 1;
12018 DROP PROCEDURE IF EXISTS sp1;
12021 --error ER_PARSE_ERROR
12022 CREATE PROCEDURE sp1( )
12024 declare foreign condition for sqlstate '02000';
12025 declare exit handler for foreign set @var2 = 1;
12029 DROP PROCEDURE IF EXISTS sp1;
12032 --error ER_PARSE_ERROR
12033 CREATE PROCEDURE sp1( )
12035 declare from condition for sqlstate '02000';
12036 declare exit handler for from set @var2 = 1;
12040 DROP PROCEDURE IF EXISTS sp1;
12043 --error ER_PARSE_ERROR
12044 CREATE PROCEDURE sp1( )
12046 declare fulltext condition for sqlstate '02000';
12047 declare exit handler for fulltext set @var2 = 1;
12051 DROP PROCEDURE IF EXISTS sp1;
12054 --error ER_PARSE_ERROR
12055 CREATE PROCEDURE sp1( )
12057 declare grant condition for sqlstate '02000';
12058 declare exit handler for grant set @var2 = 1;
12062 DROP PROCEDURE IF EXISTS sp1;
12065 --error ER_PARSE_ERROR
12066 CREATE PROCEDURE sp1( )
12068 declare group condition for sqlstate '02000';
12069 declare exit handler for group set @var2 = 1;
12073 DROP PROCEDURE IF EXISTS sp1;
12076 --error ER_PARSE_ERROR
12077 CREATE PROCEDURE sp1( )
12079 declare having condition for sqlstate '02000';
12080 declare exit handler for having set @var2 = 1;
12084 DROP PROCEDURE IF EXISTS sp1;
12087 --error ER_PARSE_ERROR
12088 CREATE PROCEDURE sp1( )
12090 declare high_priority condition for sqlstate '02000';
12091 declare exit handler for high_priority set @var2 = 1;
12095 DROP PROCEDURE IF EXISTS sp1;
12098 --error ER_PARSE_ERROR
12099 CREATE PROCEDURE sp1( )
12101 declare hour_microsecond condition for sqlstate '02000';
12102 declare exit handler for hour_microsecond set @var2 = 1;
12106 DROP PROCEDURE IF EXISTS sp1;
12109 --error ER_PARSE_ERROR
12110 CREATE PROCEDURE sp1( )
12112 declare hour_minute condition for sqlstate '02000';
12113 declare exit handler for hour_minute set @var2 = 1;
12117 DROP PROCEDURE IF EXISTS sp1;
12120 --error ER_PARSE_ERROR
12121 CREATE PROCEDURE sp1( )
12123 declare hour_second condition for sqlstate '02000';
12124 declare exit handler for hour_second set @var2 = 1;
12128 DROP PROCEDURE IF EXISTS sp1;
12131 --error ER_PARSE_ERROR
12132 CREATE PROCEDURE sp1( )
12134 declare if condition for sqlstate '02000';
12135 declare exit handler for if set @var2 = 1;
12139 DROP PROCEDURE IF EXISTS sp1;
12142 --error ER_PARSE_ERROR
12143 CREATE PROCEDURE sp1( )
12145 declare ignore condition for sqlstate '02000';
12146 declare exit handler for ignore set @var2 = 1;
12150 DROP PROCEDURE IF EXISTS sp1;
12153 --error ER_PARSE_ERROR
12154 CREATE PROCEDURE sp1( )
12156 declare in condition for sqlstate '02000';
12157 declare exit handler for in set @var2 = 1;
12161 DROP PROCEDURE IF EXISTS sp1;
12164 --error ER_PARSE_ERROR
12165 CREATE PROCEDURE sp1( )
12167 declare index condition for sqlstate '02000';
12168 declare exit handler for index set @var2 = 1;
12172 DROP PROCEDURE IF EXISTS sp1;
12175 --error ER_PARSE_ERROR
12176 CREATE PROCEDURE sp1( )
12178 declare infile condition for sqlstate '02000';
12179 declare exit handler for infile set @var2 = 1;
12183 DROP PROCEDURE IF EXISTS sp1;
12186 --error ER_PARSE_ERROR
12187 CREATE PROCEDURE sp1( )
12189 declare inner condition for sqlstate '02000';
12190 declare exit handler for inner set @var2 = 1;
12194 DROP PROCEDURE IF EXISTS sp1;
12197 --error ER_PARSE_ERROR
12198 CREATE PROCEDURE sp1( )
12200 declare inout condition for sqlstate '02000';
12201 declare exit handler for inout set @var2 = 1;
12205 DROP PROCEDURE IF EXISTS sp1;
12208 --error ER_PARSE_ERROR
12209 CREATE PROCEDURE sp1( )
12211 declare insensitive condition for sqlstate '02000';
12212 declare exit handler for insensitive set @var2 = 1;
12216 DROP PROCEDURE IF EXISTS sp1;
12219 --error ER_PARSE_ERROR
12220 CREATE PROCEDURE sp1( )
12222 declare insert condition for sqlstate '02000';
12223 declare exit handler for insert set @var2 = 1;
12227 DROP PROCEDURE IF EXISTS sp1;
12230 --error ER_PARSE_ERROR
12231 CREATE PROCEDURE sp1( )
12233 declare int condition for sqlstate '02000';
12234 declare exit handler for int set @var2 = 1;
12238 DROP PROCEDURE IF EXISTS sp1;
12241 --error ER_PARSE_ERROR
12242 CREATE PROCEDURE sp1( )
12244 declare int1 condition for sqlstate '02000';
12245 declare exit handler for int set @var2 = 1;
12249 DROP PROCEDURE IF EXISTS sp1;
12252 --error ER_PARSE_ERROR
12253 CREATE PROCEDURE sp1( )
12255 declare int2 condition for sqlstate '02000';
12256 declare exit handler for int set @var2 = 1;
12260 DROP PROCEDURE IF EXISTS sp1;
12263 --error ER_PARSE_ERROR
12264 CREATE PROCEDURE sp1( )
12266 declare int3 condition for sqlstate '02000';
12267 declare exit handler for int set @var2 = 1;
12271 DROP PROCEDURE IF EXISTS sp1;
12274 --error ER_PARSE_ERROR
12275 CREATE PROCEDURE sp1( )
12277 declare int4 condition for sqlstate '02000';
12278 declare exit handler for int set @var2 = 1;
12282 DROP PROCEDURE IF EXISTS sp1;
12285 --error ER_PARSE_ERROR
12286 CREATE PROCEDURE sp1( )
12288 declare int8 condition for sqlstate '02000';
12289 declare exit handler for int set @var2 = 1;
12293 DROP PROCEDURE IF EXISTS sp1;
12296 --error ER_PARSE_ERROR
12297 CREATE PROCEDURE sp1( )
12299 declare integer condition for sqlstate '02000';
12300 declare exit handler for integer set @var2 = 1;
12304 DROP PROCEDURE IF EXISTS sp1;
12307 --error ER_PARSE_ERROR
12308 CREATE PROCEDURE sp1( )
12310 declare interval condition for sqlstate '02000';
12311 declare exit handler for interval set @var2 = 1;
12315 DROP PROCEDURE IF EXISTS sp1;
12318 --error ER_PARSE_ERROR
12319 CREATE PROCEDURE sp1( )
12321 declare into condition for sqlstate '02000';
12322 declare exit handler for into set @var2 = 1;
12326 DROP PROCEDURE IF EXISTS sp1;
12329 --error ER_PARSE_ERROR
12330 CREATE PROCEDURE sp1( )
12332 declare is condition for sqlstate '02000';
12333 declare exit handler for is set @var2 = 1;
12337 DROP PROCEDURE IF EXISTS sp1;
12340 --error ER_PARSE_ERROR
12341 CREATE PROCEDURE sp1( )
12343 declare iterate condition for sqlstate '02000';
12344 declare exit handler for iterate set @var2 = 1;
12348 DROP PROCEDURE IF EXISTS sp1;
12351 --error ER_PARSE_ERROR
12352 CREATE PROCEDURE sp1( )
12354 declare join condition for sqlstate '02000';
12355 declare exit handler for join set @var2 = 1;
12359 DROP PROCEDURE IF EXISTS sp1;
12362 --error ER_PARSE_ERROR
12363 CREATE PROCEDURE sp1( )
12365 declare key condition for sqlstate '02000';
12366 declare exit handler for key set @var2 = 1;
12370 DROP PROCEDURE IF EXISTS sp1;
12373 --error ER_PARSE_ERROR
12374 CREATE PROCEDURE sp1( )
12376 declare keys condition for sqlstate '02000';
12377 declare exit handler for keys set @var2 = 1;
12381 DROP PROCEDURE IF EXISTS sp1;
12384 --error ER_PARSE_ERROR
12385 CREATE PROCEDURE sp1( )
12387 declare kill condition for sqlstate '02000';
12388 declare exit handler for kill set @var2 = 1;
12392 DROP PROCEDURE IF EXISTS sp1;
12395 --error ER_PARSE_ERROR
12396 CREATE PROCEDURE sp1( )
12398 declare leading condition for sqlstate '02000';
12399 declare exit handler for leading set @var2 = 1;
12403 DROP PROCEDURE IF EXISTS sp1;
12406 --error ER_PARSE_ERROR
12407 CREATE PROCEDURE sp1( )
12409 declare leave condition for sqlstate '02000';
12410 declare exit handler for leave set @var2 = 1;
12414 DROP PROCEDURE IF EXISTS sp1;
12417 --error ER_PARSE_ERROR
12418 CREATE PROCEDURE sp1( )
12420 declare left condition for sqlstate '02000';
12421 declare exit handler for left set @var2 = 1;
12425 DROP PROCEDURE IF EXISTS sp1;
12428 --error ER_PARSE_ERROR
12429 CREATE PROCEDURE sp1( )
12431 declare like condition for sqlstate '02000';
12432 declare exit handler for like set @var2 = 1;
12436 DROP PROCEDURE IF EXISTS sp1;
12439 --error ER_PARSE_ERROR
12440 CREATE PROCEDURE sp1( )
12442 declare limit condition for sqlstate '02000';
12443 declare exit handler for limit set @var2 = 1;
12447 DROP PROCEDURE IF EXISTS sp1;
12450 --error ER_PARSE_ERROR
12451 CREATE PROCEDURE sp1( )
12453 declare linear condition for sqlstate '02000';
12454 declare exit handler for int set @var2 = 1;
12458 DROP PROCEDURE IF EXISTS sp1;
12461 --error ER_PARSE_ERROR
12462 CREATE PROCEDURE sp1( )
12464 declare lines condition for sqlstate '02000';
12465 declare exit handler for lines set @var2 = 1;
12469 DROP PROCEDURE IF EXISTS sp1;
12472 --error ER_PARSE_ERROR
12473 CREATE PROCEDURE sp1( )
12475 declare load condition for sqlstate '02000';
12476 declare exit handler for load set @var2 = 1;
12480 DROP PROCEDURE IF EXISTS sp1;
12483 --error ER_PARSE_ERROR
12484 CREATE PROCEDURE sp1( )
12486 declare localtime condition for sqlstate '02000';
12487 declare exit handler for localtime set @var2 = 1;
12491 DROP PROCEDURE IF EXISTS sp1;
12494 --error ER_PARSE_ERROR
12495 CREATE PROCEDURE sp1( )
12497 declare localtimestamp condition for sqlstate '02000';
12498 declare exit handler for localtimestamp set @var2 = 1;
12502 DROP PROCEDURE IF EXISTS sp1;
12505 --error ER_PARSE_ERROR
12506 CREATE PROCEDURE sp1( )
12508 declare lock condition for sqlstate '02000';
12509 declare exit handler for lock set @var2 = 1;
12513 DROP PROCEDURE IF EXISTS sp1;
12516 --error ER_PARSE_ERROR
12517 CREATE PROCEDURE sp1( )
12519 declare long condition for sqlstate '02000';
12520 declare exit handler for long set @var2 = 1;
12524 DROP PROCEDURE IF EXISTS sp1;
12527 --error ER_PARSE_ERROR
12528 CREATE PROCEDURE sp1( )
12530 declare longblob condition for sqlstate '02000';
12531 declare exit handler for longblob set @var2 = 1;
12535 DROP PROCEDURE IF EXISTS sp1;
12538 --error ER_PARSE_ERROR
12539 CREATE PROCEDURE sp1( )
12541 declare longtext condition for sqlstate '02000';
12542 declare exit handler for longtext set @var2 = 1;
12546 DROP PROCEDURE IF EXISTS sp1;
12549 --error ER_PARSE_ERROR
12550 CREATE PROCEDURE sp1( )
12552 declare loop condition for sqlstate '02000';
12553 declare exit handler for loop set @var2 = 1;
12557 DROP PROCEDURE IF EXISTS sp1;
12560 --error ER_PARSE_ERROR
12561 CREATE PROCEDURE sp1( )
12563 declare low_priority condition for sqlstate '02000';
12564 declare exit handler for low_priority set @var2 = 1;
12568 DROP PROCEDURE IF EXISTS sp1;
12571 --error ER_PARSE_ERROR
12572 CREATE PROCEDURE sp1( )
12574 declare master_ssl_verify_server_cert condition for sqlstate '02000';
12575 declare exit handler for int set @var2 = 1;
12579 DROP PROCEDURE IF EXISTS sp1;
12582 --error ER_PARSE_ERROR
12583 CREATE PROCEDURE sp1( )
12585 declare match condition for sqlstate '02000';
12586 declare exit handler for match set @var2 = 1;
12590 DROP PROCEDURE IF EXISTS sp1;
12593 --error ER_PARSE_ERROR
12594 CREATE PROCEDURE sp1( )
12596 declare mediumblob condition for sqlstate '02000';
12597 declare exit handler for mediumblob set @var2 = 1;
12601 DROP PROCEDURE IF EXISTS sp1;
12604 --error ER_PARSE_ERROR
12605 CREATE PROCEDURE sp1( )
12607 declare mediumint condition for sqlstate '02000';
12608 declare exit handler for mediumint set @var2 = 1;
12612 DROP PROCEDURE IF EXISTS sp1;
12615 --error ER_PARSE_ERROR
12616 CREATE PROCEDURE sp1( )
12618 declare mediumtext condition for sqlstate '02000';
12619 declare exit handler for mediumtext set @var2 = 1;
12623 DROP PROCEDURE IF EXISTS sp1;
12626 --error ER_PARSE_ERROR
12627 CREATE PROCEDURE sp1( )
12629 declare middleint condition for sqlstate '02000';
12630 declare exit handler for middleint set @var2 = 1;
12634 DROP PROCEDURE IF EXISTS sp1;
12637 --error ER_PARSE_ERROR
12638 CREATE PROCEDURE sp1( )
12640 declare minute_microsecond condition for sqlstate '02000';
12641 declare exit handler for minute_microsecond set @var2 = 1;
12645 DROP PROCEDURE IF EXISTS sp1;
12648 --error ER_PARSE_ERROR
12649 CREATE PROCEDURE sp1( )
12651 declare minute_second condition for sqlstate '02000';
12652 declare exit handler for minute_second set @var2 = 1;
12656 DROP PROCEDURE IF EXISTS sp1;
12659 --error ER_PARSE_ERROR
12660 CREATE PROCEDURE sp1( )
12662 declare mod condition for sqlstate '02000';
12663 declare exit handler for mod set @var2 = 1;
12667 DROP PROCEDURE IF EXISTS sp1;
12670 --error ER_PARSE_ERROR
12671 CREATE PROCEDURE sp1( )
12673 declare modifies condition for sqlstate '02000';
12674 declare exit handler for modifies set @var2 = 1;
12678 DROP PROCEDURE IF EXISTS sp1;
12681 --error ER_PARSE_ERROR
12682 CREATE PROCEDURE sp1( )
12684 declare natural condition for sqlstate '02000';
12685 declare exit handler for natural set @var2 = 1;
12689 DROP PROCEDURE IF EXISTS sp1;
12692 --error ER_PARSE_ERROR
12693 CREATE PROCEDURE sp1( )
12695 declare not condition for sqlstate '02000';
12696 declare exit handler for not set @var2 = 1;
12700 DROP PROCEDURE IF EXISTS sp1;
12703 --error ER_PARSE_ERROR
12704 CREATE PROCEDURE sp1( )
12706 declare no_write_to_binlog condition for sqlstate '02000';
12707 declare exit handler for no_write_to_binlog set @var2 = 1;
12711 DROP PROCEDURE IF EXISTS sp1;
12714 --error ER_PARSE_ERROR
12715 CREATE PROCEDURE sp1( )
12717 declare null condition for sqlstate '02000';
12718 declare exit handler for null set @var2 = 1;
12722 DROP PROCEDURE IF EXISTS sp1;
12725 --error ER_PARSE_ERROR
12726 CREATE PROCEDURE sp1( )
12728 declare numeric condition for sqlstate '02000';
12729 declare exit handler for numeric set @var2 = 1;
12733 DROP PROCEDURE IF EXISTS sp1;
12736 --error ER_PARSE_ERROR
12737 CREATE PROCEDURE sp1( )
12739 declare on condition for sqlstate '02000';
12740 declare exit handler for on set @var2 = 1;
12744 DROP PROCEDURE IF EXISTS sp1;
12747 --error ER_PARSE_ERROR
12748 CREATE PROCEDURE sp1( )
12750 declare optimize condition for sqlstate '02000';
12751 declare exit handler for optimize set @var2 = 1;
12755 DROP PROCEDURE IF EXISTS sp1;
12758 --error ER_PARSE_ERROR
12759 CREATE PROCEDURE sp1( )
12761 declare option condition for sqlstate '02000';
12762 declare exit handler for option set @var2 = 1;
12766 DROP PROCEDURE IF EXISTS sp1;
12769 --error ER_PARSE_ERROR
12770 CREATE PROCEDURE sp1( )
12772 declare optionally condition for sqlstate '02000';
12773 declare exit handler for optionally set @var2 = 1;
12777 DROP PROCEDURE IF EXISTS sp1;
12780 --error ER_PARSE_ERROR
12781 CREATE PROCEDURE sp1( )
12783 declare or condition for sqlstate '02000';
12784 declare exit handler for or set @var2 = 1;
12788 DROP PROCEDURE IF EXISTS sp1;
12791 --error ER_PARSE_ERROR
12792 CREATE PROCEDURE sp1( )
12794 declare order condition for sqlstate '02000';
12795 declare exit handler for order set @var2 = 1;
12799 DROP PROCEDURE IF EXISTS sp1;
12802 --error ER_PARSE_ERROR
12803 CREATE PROCEDURE sp1( )
12805 declare out condition for sqlstate '02000';
12806 declare exit handler for out set @var2 = 1;
12810 DROP PROCEDURE IF EXISTS sp1;
12813 --error ER_PARSE_ERROR
12814 CREATE PROCEDURE sp1( )
12816 declare outer condition for sqlstate '02000';
12817 declare exit handler for outer set @var2 = 1;
12821 DROP PROCEDURE IF EXISTS sp1;
12824 --error ER_PARSE_ERROR
12825 CREATE PROCEDURE sp1( )
12827 declare outfile condition for sqlstate '02000';
12828 declare exit handler for outfile set @var2 = 1;
12832 DROP PROCEDURE IF EXISTS sp1;
12835 --error ER_PARSE_ERROR
12836 CREATE PROCEDURE sp1( )
12838 declare precision condition for sqlstate '02000';
12839 declare exit handler for precision set @var2 = 1;
12843 DROP PROCEDURE IF EXISTS sp1;
12846 --error ER_PARSE_ERROR
12847 CREATE PROCEDURE sp1( )
12849 declare primary condition for sqlstate '02000';
12850 declare exit handler for primary set @var2 = 1;
12854 DROP PROCEDURE IF EXISTS sp1;
12857 --error ER_PARSE_ERROR
12858 CREATE PROCEDURE sp1( )
12860 declare procedure condition for sqlstate '02000';
12861 declare exit handler for procedure set @var2 = 1;
12865 DROP PROCEDURE IF EXISTS sp1;
12868 --error ER_PARSE_ERROR
12869 CREATE PROCEDURE sp1( )
12871 declare purge condition for sqlstate '02000';
12872 declare exit handler for purge set @var2 = 1;
12876 DROP PROCEDURE IF EXISTS sp1;
12879 --error ER_PARSE_ERROR
12880 CREATE PROCEDURE sp1( )
12882 declare range condition for sqlstate '02000';
12883 declare exit handler for int set @var2 = 1;
12887 DROP PROCEDURE IF EXISTS sp1;
12890 --error ER_PARSE_ERROR
12891 CREATE PROCEDURE sp1( )
12893 declare read condition for sqlstate '02000';
12894 declare exit handler for read set @var2 = 1;
12898 DROP PROCEDURE IF EXISTS sp1;
12901 --error ER_PARSE_ERROR
12902 CREATE PROCEDURE sp1( )
12904 declare reads condition for sqlstate '02000';
12905 declare exit handler for reads set @var2 = 1;
12909 DROP PROCEDURE IF EXISTS sp1;
12912 --error ER_PARSE_ERROR
12913 CREATE PROCEDURE sp1( )
12915 declare read_only condition for sqlstate '02000';
12916 declare exit handler for int set @var2 = 1;
12920 DROP PROCEDURE IF EXISTS sp1;
12923 --error ER_PARSE_ERROR
12924 CREATE PROCEDURE sp1( )
12926 declare read_write condition for sqlstate '02000';
12927 declare exit handler for int set @var2 = 1;
12931 DROP PROCEDURE IF EXISTS sp1;
12934 --error ER_PARSE_ERROR
12935 CREATE PROCEDURE sp1( )
12937 declare real condition for sqlstate '02000';
12938 declare exit handler for real set @var2 = 1;
12942 DROP PROCEDURE IF EXISTS sp1;
12945 --error ER_PARSE_ERROR
12946 CREATE PROCEDURE sp1( )
12948 declare references condition for sqlstate '02000';
12949 declare exit handler for references set @var2 = 1;
12953 DROP PROCEDURE IF EXISTS sp1;
12956 --error ER_PARSE_ERROR
12957 CREATE PROCEDURE sp1( )
12959 declare regexp condition for sqlstate '02000';
12960 declare exit handler for regexp set @var2 = 1;
12964 DROP PROCEDURE IF EXISTS sp1;
12967 --error ER_PARSE_ERROR
12968 CREATE PROCEDURE sp1( )
12970 declare release condition for sqlstate '02000';
12971 declare exit handler for int set @var2 = 1;
12975 DROP PROCEDURE IF EXISTS sp1;
12978 --error ER_PARSE_ERROR
12979 CREATE PROCEDURE sp1( )
12981 declare rename condition for sqlstate '02000';
12982 declare exit handler for rename set @var2 = 1;
12986 DROP PROCEDURE IF EXISTS sp1;
12989 --error ER_PARSE_ERROR
12990 CREATE PROCEDURE sp1( )
12992 declare repeat condition for sqlstate '02000';
12993 declare exit handler for repeat set @var2 = 1;
12997 DROP PROCEDURE IF EXISTS sp1;
13000 --error ER_PARSE_ERROR
13001 CREATE PROCEDURE sp1( )
13003 declare replace condition for sqlstate '02000';
13004 declare exit handler for replace set @var2 = 1;
13008 DROP PROCEDURE IF EXISTS sp1;
13011 --error ER_PARSE_ERROR
13012 CREATE PROCEDURE sp1( )
13014 declare require condition for sqlstate '02000';
13015 declare exit handler for require set @var2 = 1;
13019 DROP PROCEDURE IF EXISTS sp1;
13022 --error ER_PARSE_ERROR
13023 CREATE PROCEDURE sp1( )
13025 declare restrict condition for sqlstate '02000';
13026 declare exit handler for restrict set @var2 = 1;
13030 DROP PROCEDURE IF EXISTS sp1;
13033 --error ER_PARSE_ERROR
13034 CREATE PROCEDURE sp1( )
13036 declare return condition for sqlstate '02000';
13037 declare exit handler for return set @var2 = 1;
13041 DROP PROCEDURE IF EXISTS sp1;
13044 --error ER_PARSE_ERROR
13045 CREATE PROCEDURE sp1( )
13047 declare revoke condition for sqlstate '02000';
13048 declare exit handler for revoke set @var2 = 1;
13052 DROP PROCEDURE IF EXISTS sp1;
13055 --error ER_PARSE_ERROR
13056 CREATE PROCEDURE sp1( )
13058 declare right condition for sqlstate '02000';
13059 declare exit handler for right set @var2 = 1;
13063 DROP PROCEDURE IF EXISTS sp1;
13066 --error ER_PARSE_ERROR
13067 CREATE PROCEDURE sp1( )
13069 declare rlike condition for sqlstate '02000';
13070 declare exit handler for rlike set @var2 = 1;
13074 DROP PROCEDURE IF EXISTS sp1;
13077 --error ER_PARSE_ERROR
13078 CREATE PROCEDURE sp1( )
13080 declare schema condition for sqlstate '02000';
13081 declare exit handler for schema set @var2 = 1;
13085 DROP PROCEDURE IF EXISTS sp1;
13088 --error ER_PARSE_ERROR
13089 CREATE PROCEDURE sp1( )
13091 declare schemas condition for sqlstate '02000';
13092 declare exit handler for schemas set @var2 = 1;
13096 DROP PROCEDURE IF EXISTS sp1;
13099 --error ER_PARSE_ERROR
13100 CREATE PROCEDURE sp1( )
13102 declare second_microsecond condition for sqlstate '02000';
13103 declare exit handler for second_microsecond set @var2 = 1;
13107 DROP PROCEDURE IF EXISTS sp1;
13110 --error ER_PARSE_ERROR
13111 CREATE PROCEDURE sp1( )
13113 declare select condition for sqlstate '02000';
13114 declare exit handler for SELECT set @var2 = 1;
13118 DROP PROCEDURE IF EXISTS sp1;
13121 --error ER_PARSE_ERROR
13122 CREATE PROCEDURE sp1( )
13124 declare sensitive condition for sqlstate '02000';
13125 declare exit handler for sensitive set @var2 = 1;
13129 DROP PROCEDURE IF EXISTS sp1;
13132 --error ER_PARSE_ERROR
13133 CREATE PROCEDURE sp1( )
13135 declare separator condition for sqlstate '02000';
13136 declare exit handler for separator set @var2 = 1;
13140 DROP PROCEDURE IF EXISTS sp1;
13143 --error ER_PARSE_ERROR
13144 CREATE PROCEDURE sp1( )
13146 declare set condition for sqlstate '02000';
13147 declare exit handler for set set @var2 = 1;
13151 DROP PROCEDURE IF EXISTS sp1;
13154 --error ER_PARSE_ERROR
13155 CREATE PROCEDURE sp1( )
13157 declare show condition for sqlstate '02000';
13158 declare exit handler for show set @var2 = 1;
13162 DROP PROCEDURE IF EXISTS sp1;
13165 --error ER_PARSE_ERROR
13166 CREATE PROCEDURE sp1( )
13168 declare smallint condition for sqlstate '02000';
13169 declare exit handler for smallint set @var2 = 1;
13173 DROP PROCEDURE IF EXISTS sp1;
13176 --error ER_PARSE_ERROR
13177 CREATE PROCEDURE sp1( )
13179 declare spatial condition for sqlstate '02000';
13180 declare exit handler for spatial set @var2 = 1;
13184 DROP PROCEDURE IF EXISTS sp1;
13187 --error ER_PARSE_ERROR
13188 CREATE PROCEDURE sp1( )
13190 declare specific condition for sqlstate '02000';
13191 declare exit handler for specific set @var2 = 1;
13195 DROP PROCEDURE IF EXISTS sp1;
13198 --error ER_PARSE_ERROR
13199 CREATE PROCEDURE sp1( )
13201 declare sql condition for sqlstate '02000';
13202 declare exit handler for sql set @var2 = 1;
13206 DROP PROCEDURE IF EXISTS sp1;
13209 --error ER_PARSE_ERROR
13210 CREATE PROCEDURE sp1( )
13212 declare sqlexception condition for sqlstate '02000';
13213 declare exit handler for sqlexception set @var2 = 1;
13217 DROP PROCEDURE IF EXISTS sp1;
13220 --error ER_PARSE_ERROR
13221 CREATE PROCEDURE sp1( )
13223 declare sqlstate condition for sqlstate '02000';
13224 declare exit handler for sqlstate set @var2 = 1;
13228 DROP PROCEDURE IF EXISTS sp1;
13231 --error ER_PARSE_ERROR
13232 CREATE PROCEDURE sp1( )
13234 declare sqlwarning condition for sqlstate '02000';
13235 declare exit handler for sqlwarning set @var2 = 1;
13239 DROP PROCEDURE IF EXISTS sp1;
13242 --error ER_PARSE_ERROR
13243 CREATE PROCEDURE sp1( )
13245 declare sql_big_result condition for sqlstate '02000';
13246 declare exit handler for sql_big_result set @var2 = 1;
13250 DROP PROCEDURE IF EXISTS sp1;
13253 --error ER_PARSE_ERROR
13254 CREATE PROCEDURE sp1( )
13256 declare sql_calc_found_rows condition for sqlstate '02000';
13257 declare exit handler for sql_calc_found_rows set @var2 = 1;
13261 DROP PROCEDURE IF EXISTS sp1;
13264 --error ER_PARSE_ERROR
13265 CREATE PROCEDURE sp1( )
13267 declare sql_small_result condition for sqlstate '02000';
13268 declare exit handler for sql_small_result set @var2 = 1;
13272 DROP PROCEDURE IF EXISTS sp1;
13275 --error ER_PARSE_ERROR
13276 CREATE PROCEDURE sp1( )
13278 declare ssl condition for sqlstate '02000';
13279 declare exit handler for ssl set @var2 = 1;
13283 DROP PROCEDURE IF EXISTS sp1;
13286 --error ER_PARSE_ERROR
13287 CREATE PROCEDURE sp1( )
13289 declare starting condition for sqlstate '02000';
13290 declare exit handler for starting set @var2 = 1;
13294 DROP PROCEDURE IF EXISTS sp1;
13297 --error ER_PARSE_ERROR
13298 CREATE PROCEDURE sp1( )
13300 declare straight_join condition for sqlstate '02000';
13301 declare exit handler for straight_join set @var2 = 1;
13305 DROP PROCEDURE IF EXISTS sp1;
13308 --error ER_PARSE_ERROR
13309 CREATE PROCEDURE sp1( )
13311 declare table condition for sqlstate '02000';
13312 declare exit handler for table set @var2 = 1;
13316 DROP PROCEDURE IF EXISTS sp1;
13319 --error ER_PARSE_ERROR
13320 CREATE PROCEDURE sp1( )
13322 declare terminated condition for sqlstate '02000';
13323 declare exit handler for terminated set @var2 = 1;
13327 DROP PROCEDURE IF EXISTS sp1;
13330 --error ER_PARSE_ERROR
13331 CREATE PROCEDURE sp1( )
13333 declare then condition for sqlstate '02000';
13334 declare exit handler for then set @var2 = 1;
13338 DROP PROCEDURE IF EXISTS sp1;
13341 --error ER_PARSE_ERROR
13342 CREATE PROCEDURE sp1( )
13344 declare tinyblob condition for sqlstate '02000';
13345 declare exit handler for tinyblob set @var2 = 1;
13349 DROP PROCEDURE IF EXISTS sp1;
13352 --error ER_PARSE_ERROR
13353 CREATE PROCEDURE sp1( )
13355 declare tinyint condition for sqlstate '02000';
13356 declare exit handler for tinyint set @var2 = 1;
13360 DROP PROCEDURE IF EXISTS sp1;
13363 --error ER_PARSE_ERROR
13364 CREATE PROCEDURE sp1( )
13366 declare tinytext condition for sqlstate '02000';
13367 declare exit handler for tinytext set @var2 = 1;
13371 DROP PROCEDURE IF EXISTS sp1;
13374 --error ER_PARSE_ERROR
13375 CREATE PROCEDURE sp1( )
13377 declare to condition for sqlstate '02000';
13378 declare exit handler for to set @var2 = 1;
13382 DROP PROCEDURE IF EXISTS sp1;
13385 --error ER_PARSE_ERROR
13386 CREATE PROCEDURE sp1( )
13388 declare trailing condition for sqlstate '02000';
13389 declare exit handler for trailing set @var2 = 1;
13393 DROP PROCEDURE IF EXISTS sp1;
13396 --error ER_PARSE_ERROR
13397 CREATE PROCEDURE sp1( )
13399 declare trigger condition for sqlstate '02000';
13400 declare exit handler for trigger set @var2 = 1;
13404 DROP PROCEDURE IF EXISTS sp1;
13407 --error ER_PARSE_ERROR
13408 CREATE PROCEDURE sp1( )
13410 declare true condition for sqlstate '02000';
13411 declare exit handler for true set @var2 = 1;
13415 DROP PROCEDURE IF EXISTS sp1;
13418 --error ER_PARSE_ERROR
13419 CREATE PROCEDURE sp1( )
13421 declare undo condition for sqlstate '02000';
13422 declare exit handler for undo set @var2 = 1;
13426 DROP PROCEDURE IF EXISTS sp1;
13429 --error ER_PARSE_ERROR
13430 CREATE PROCEDURE sp1( )
13432 declare union condition for sqlstate '02000';
13433 declare exit handler for union set @var2 = 1;
13437 DROP PROCEDURE IF EXISTS sp1;
13440 --error ER_PARSE_ERROR
13441 CREATE PROCEDURE sp1( )
13443 declare unique condition for sqlstate '02000';
13444 declare exit handler for unique set @var2 = 1;
13448 DROP PROCEDURE IF EXISTS sp1;
13451 --error ER_PARSE_ERROR
13452 CREATE PROCEDURE sp1( )
13454 declare unlock condition for sqlstate '02000';
13455 declare exit handler for unlock set @var2 = 1;
13459 DROP PROCEDURE IF EXISTS sp1;
13462 --error ER_PARSE_ERROR
13463 CREATE PROCEDURE sp1( )
13465 declare unsigned condition for sqlstate '02000';
13466 declare exit handler for unsigned set @var2 = 1;
13470 DROP PROCEDURE IF EXISTS sp1;
13473 --error ER_PARSE_ERROR
13474 CREATE PROCEDURE sp1( )
13476 declare update condition for sqlstate '02000';
13477 declare exit handler for update set @var2 = 1;
13481 DROP PROCEDURE IF EXISTS sp1;
13484 --error ER_PARSE_ERROR
13485 CREATE PROCEDURE sp1( )
13487 declare usage condition for sqlstate '02000';
13488 declare exit handler for usage set @var2 = 1;
13492 DROP PROCEDURE IF EXISTS sp1;
13495 --error ER_PARSE_ERROR
13496 CREATE PROCEDURE sp1( )
13498 declare use condition for sqlstate '02000';
13499 declare exit handler for USE set @var2 = 1;
13503 DROP PROCEDURE IF EXISTS sp1;
13506 --error ER_PARSE_ERROR
13507 CREATE PROCEDURE sp1( )
13509 declare using condition for sqlstate '02000';
13510 declare exit handler for using set @var2 = 1;
13514 DROP PROCEDURE IF EXISTS sp1;
13517 --error ER_PARSE_ERROR
13518 CREATE PROCEDURE sp1( )
13520 declare utc_date condition for sqlstate '02000';
13521 declare exit handler for utc_date set @var2 = 1;
13525 DROP PROCEDURE IF EXISTS sp1;
13528 --error ER_PARSE_ERROR
13529 CREATE PROCEDURE sp1( )
13531 declare utc_time condition for sqlstate '02000';
13532 declare exit handler for utc_time set @var2 = 1;
13536 DROP PROCEDURE IF EXISTS sp1;
13539 --error ER_PARSE_ERROR
13540 CREATE PROCEDURE sp1( )
13542 declare utc_timestamp condition for sqlstate '02000';
13543 declare exit handler for utc_timestamp set @var2 = 1;
13547 DROP PROCEDURE IF EXISTS sp1;
13550 --error ER_PARSE_ERROR
13551 CREATE PROCEDURE sp1( )
13553 declare values condition for sqlstate '02000';
13554 declare exit handler for values set @var2 = 1;
13558 DROP PROCEDURE IF EXISTS sp1;
13561 --error ER_PARSE_ERROR
13562 CREATE PROCEDURE sp1( )
13564 declare varbinary condition for sqlstate '02000';
13565 declare exit handler for varbinary set @var2 = 1;
13569 DROP PROCEDURE IF EXISTS sp1;
13572 --error ER_PARSE_ERROR
13573 CREATE PROCEDURE sp1( )
13575 declare varchar condition for sqlstate '02000';
13576 declare exit handler for varchar set @var2 = 1;
13580 DROP PROCEDURE IF EXISTS sp1;
13583 --error ER_PARSE_ERROR
13584 CREATE PROCEDURE sp1( )
13586 declare varcharacter condition for sqlstate '02000';
13587 declare exit handler for varcharacter set @var2 = 1;
13591 DROP PROCEDURE IF EXISTS sp1;
13594 --error ER_PARSE_ERROR
13595 CREATE PROCEDURE sp1( )
13597 declare varying condition for sqlstate '02000';
13598 declare exit handler for varying set @var2 = 1;
13602 DROP PROCEDURE IF EXISTS sp1;
13605 --error ER_PARSE_ERROR
13606 CREATE PROCEDURE sp1( )
13608 declare when condition for sqlstate '02000';
13609 declare exit handler for when set @var2 = 1;
13613 DROP PROCEDURE IF EXISTS sp1;
13616 --error ER_PARSE_ERROR
13617 CREATE PROCEDURE sp1( )
13619 declare where condition for sqlstate '02000';
13620 declare exit handler for where set @var2 = 1;
13624 DROP PROCEDURE IF EXISTS sp1;
13627 --error ER_PARSE_ERROR
13628 CREATE PROCEDURE sp1( )
13630 declare while condition for sqlstate '02000';
13631 declare exit handler for while set @var2 = 1;
13635 DROP PROCEDURE IF EXISTS sp1;
13638 --error ER_PARSE_ERROR
13639 CREATE PROCEDURE sp1( )
13641 declare with condition for sqlstate '02000';
13642 declare exit handler for with set @var2 = 1;
13646 DROP PROCEDURE IF EXISTS sp1;
13649 --error ER_PARSE_ERROR
13650 CREATE PROCEDURE sp1( )
13652 declare write condition for sqlstate '02000';
13653 declare exit handler for write set @var2 = 1;
13657 DROP PROCEDURE IF EXISTS sp1;
13660 --error ER_PARSE_ERROR
13661 CREATE PROCEDURE sp1( )
13663 declare xor condition for sqlstate '02000';
13664 declare exit handler for xor set @var2 = 1;
13668 DROP PROCEDURE IF EXISTS sp1;
13671 --error ER_PARSE_ERROR
13672 CREATE PROCEDURE sp1( )
13674 declare year_month condition for sqlstate '02000';
13675 declare exit handler for year_month set @var2 = 1;
13679 DROP PROCEDURE IF EXISTS sp1;
13682 --error ER_PARSE_ERROR
13683 CREATE PROCEDURE sp1( )
13685 declare zerofill condition for sqlstate '02000';
13686 declare exit handler for zerofill set @var2 = 1;
13690 # ------------------------------------------------------------------------------
13691 let $message= Testcase :
13693 Ensure that every possible type of handler may be declared for
13694 a stored procedure (continue- handler_type ).;
13695 --source include/show_msg80.inc
13697 DROP PROCEDURE IF EXISTS sp1;
13700 CREATE PROCEDURE sp1()
13702 declare continue handler for sqlstate '23000' set @x2 = 1;
13706 insert into t2(f1) values (1);
13710 insert into t2(f1) values (1);
13720 DROP PROCEDURE sp1;
13723 # testcase: ensure that every possible type of handler may be declared
13724 # for a stored procedure (undo - handler_type ).
13725 # ?????????? undo handler not supported as of now
13728 DROP PROCEDURE IF EXISTS handler1;
13731 --error ER_PARSE_ERROR
13732 CREATE PROCEDURE handler1()
13734 declare undo handler for sqlstate '23000' set @x2 = 1;
13738 insert into t values (1);
13742 insert into t values (1);
13748 # testcase: ensure that invalid handler declarations are rejected with an
13749 # appropriate error message. (continue- handler_type).
13752 DROP PROCEDURE IF EXISTS handler1;
13755 --error ER_PARSE_ERROR
13756 CREATE PROCEDURE handler1()
13758 declare continueinv handler for sqlstate '2300' set @x2 = 1;
13762 insert into t values (1);
13766 insert into t values (1);
13772 # testcase: ensure that invalid handler declarations are rejected with
13773 # an appropriate error message (undo - handler_type ).
13776 DROP PROCEDURE IF EXISTS handler1;
13779 --error ER_PARSE_ERROR
13780 CREATE PROCEDURE handler1()
13782 declare undoinv handler for sqlstate '2300' set @x2 = 1;
13786 insert into t values (1);
13790 insert into t values (1);
13796 # testcase: ensure that invalid handler declarations are rejected with an
13797 # appropriate error message (exit- handler_type )
13800 DROP PROCEDURE IF EXISTS handler1;
13803 --error ER_PARSE_ERROR
13804 CREATE PROCEDURE handler1 ()
13806 declare exitinv handler for sqlstate '2300' set @x2 = 1;
13810 insert into t values (1);
13814 insert into t values (1);
13820 DROP PROCEDURE IF EXISTS sp1;
13823 --error ER_PARSE_ERROR
13824 CREATE PROCEDURE sp1( )
13826 declare accessible handler for sqlstate '02000' set @var2 = 1;
13830 DROP PROCEDURE IF EXISTS sp1;
13833 --error ER_PARSE_ERROR
13834 CREATE PROCEDURE sp1( )
13836 declare add handler for sqlstate '02000' set @var2 = 1;
13840 DROP PROCEDURE IF EXISTS sp1;
13843 --error ER_PARSE_ERROR
13844 CREATE PROCEDURE sp1( )
13846 declare all handler for sqlstate '02000' set @var2 = 1;
13850 DROP PROCEDURE IF EXISTS sp1;
13853 --error ER_PARSE_ERROR
13854 CREATE PROCEDURE sp1( )
13856 declare alter handler for sqlstate '02000' set @var2 = 1;
13860 DROP PROCEDURE IF EXISTS sp1;
13863 --error ER_PARSE_ERROR
13864 CREATE PROCEDURE sp1( )
13866 declare analyze handler for sqlstate '02000' set @var2 = 1;
13870 DROP PROCEDURE IF EXISTS sp1;
13873 --error ER_PARSE_ERROR
13874 CREATE PROCEDURE sp1( )
13876 declare and handler for sqlstate '02000' set @var2 = 1;
13880 DROP PROCEDURE IF EXISTS sp1;
13883 --error ER_PARSE_ERROR
13884 CREATE PROCEDURE sp1( )
13886 declare as handler for sqlstate '02000' set @var2 = 1;
13890 DROP PROCEDURE IF EXISTS sp1;
13893 --error ER_PARSE_ERROR
13894 CREATE PROCEDURE sp1( )
13896 declare asc handler for sqlstate '02000' set @var2 = 1;
13900 DROP PROCEDURE IF EXISTS sp1;
13903 --error ER_PARSE_ERROR
13904 CREATE PROCEDURE sp1( )
13906 declare asensitive handler for sqlstate '02000' set @var2 = 1;
13910 DROP PROCEDURE IF EXISTS sp1;
13913 --error ER_PARSE_ERROR
13914 CREATE PROCEDURE sp1( )
13916 declare before handler for sqlstate '02000' set @var2 = 1;
13920 DROP PROCEDURE IF EXISTS sp1;
13923 --error ER_PARSE_ERROR
13924 CREATE PROCEDURE sp1( )
13926 declare between handler for sqlstate '02000' set @var2 = 1;
13930 DROP PROCEDURE IF EXISTS sp1;
13933 --error ER_PARSE_ERROR
13934 CREATE PROCEDURE sp1( )
13936 declare bigint handler for sqlstate '02000' set @var2 = 1;
13940 DROP PROCEDURE IF EXISTS sp1;
13943 --error ER_PARSE_ERROR
13944 CREATE PROCEDURE sp1( )
13946 declare binary handler for sqlstate '02000' set @var2 = 1;
13950 DROP PROCEDURE IF EXISTS sp1;
13953 --error ER_PARSE_ERROR
13954 CREATE PROCEDURE sp1( )
13956 declare blob handler for sqlstate '02000' set @var2 = 1;
13960 DROP PROCEDURE IF EXISTS sp1;
13963 --error ER_PARSE_ERROR
13964 CREATE PROCEDURE sp1( )
13966 declare both handler for sqlstate '02000' set @var2 = 1;
13970 DROP PROCEDURE IF EXISTS sp1;
13973 --error ER_PARSE_ERROR
13974 CREATE PROCEDURE sp1( )
13976 declare by handler for sqlstate '02000' set @var2 = 1;
13980 DROP PROCEDURE IF EXISTS sp1;
13983 --error ER_PARSE_ERROR
13984 CREATE PROCEDURE sp1( )
13986 declare call handler for sqlstate '02000' set @var2 = 1;
13990 DROP PROCEDURE IF EXISTS sp1;
13993 --error ER_PARSE_ERROR
13994 CREATE PROCEDURE sp1( )
13996 declare cascade handler for sqlstate '02000' set @var2 = 1;
14000 DROP PROCEDURE IF EXISTS sp1;
14003 --error ER_PARSE_ERROR
14004 CREATE PROCEDURE sp1( )
14006 declare case handler for sqlstate '02000' set @var2 = 1;
14010 DROP PROCEDURE IF EXISTS sp1;
14013 --error ER_PARSE_ERROR
14014 CREATE PROCEDURE sp1( )
14016 declare change handler for sqlstate '02000' set @var2 = 1;
14020 DROP PROCEDURE IF EXISTS sp1;
14023 --error ER_PARSE_ERROR
14024 CREATE PROCEDURE sp1( )
14026 declare char handler for sqlstate '02000' set @var2 = 1;
14030 DROP PROCEDURE IF EXISTS sp1;
14033 --error ER_PARSE_ERROR
14034 CREATE PROCEDURE sp1( )
14036 declare character handler for sqlstate '02000' set @var2 = 1;
14040 DROP PROCEDURE IF EXISTS sp1;
14043 --error ER_PARSE_ERROR
14044 CREATE PROCEDURE sp1( )
14046 declare check handler for sqlstate '02000' set @var2 = 1;
14050 DROP PROCEDURE IF EXISTS sp1;
14053 --error ER_PARSE_ERROR
14054 CREATE PROCEDURE sp1( )
14056 declare collate handler for sqlstate '02000' set @var2 = 1;
14060 DROP PROCEDURE IF EXISTS sp1;
14063 --error ER_PARSE_ERROR
14064 CREATE PROCEDURE sp1( )
14066 declare column handler for sqlstate '02000' set @var2 = 1;
14070 DROP PROCEDURE IF EXISTS sp1;
14073 --error ER_PARSE_ERROR
14074 CREATE PROCEDURE sp1( )
14076 declare condition handler for sqlstate '02000' set @var2 = 1;
14080 DROP PROCEDURE IF EXISTS sp1;
14083 --error ER_PARSE_ERROR
14084 CREATE PROCEDURE sp1( )
14086 declare constraint handler for sqlstate '02000' set @var2 = 1;
14090 DROP PROCEDURE IF EXISTS sp1;
14092 --error ER_PARSE_ERROR
14094 CREATE PROCEDURE sp1( )
14096 declare continue handler for sqlstate '02000' set @var2 = 1;
14100 DROP PROCEDURE IF EXISTS sp1;
14103 --error ER_PARSE_ERROR
14104 CREATE PROCEDURE sp1( )
14106 declare convert handler for sqlstate '02000' set @var2 = 1;
14110 DROP PROCEDURE IF EXISTS sp1;
14113 --error ER_PARSE_ERROR
14114 CREATE PROCEDURE sp1( )
14116 declare create handler for sqlstate '02000' set @var2 = 1;
14120 DROP PROCEDURE IF EXISTS sp1;
14123 --error ER_PARSE_ERROR
14124 CREATE PROCEDURE sp1( )
14126 declare cross handler for sqlstate '02000' set @var2 = 1;
14130 DROP PROCEDURE IF EXISTS sp1;
14133 --error ER_PARSE_ERROR
14134 CREATE PROCEDURE sp1( )
14136 declare current_date handler for sqlstate '02000' set @var2 = 1;
14140 DROP PROCEDURE IF EXISTS sp1;
14143 --error ER_PARSE_ERROR
14144 CREATE PROCEDURE sp1( )
14146 declare current_time handler for sqlstate '02000' set @var2 = 1;
14150 DROP PROCEDURE IF EXISTS sp1;
14153 --error ER_PARSE_ERROR
14154 CREATE PROCEDURE sp1( )
14156 declare current_timestamp handler for sqlstate '02000' set @var2 = 1;
14160 DROP PROCEDURE IF EXISTS sp1;
14163 --error ER_PARSE_ERROR
14164 CREATE PROCEDURE sp1( )
14166 declare current_user handler for sqlstate '02000' set @var2 = 1;
14170 DROP PROCEDURE IF EXISTS sp1;
14173 --error ER_PARSE_ERROR
14174 CREATE PROCEDURE sp1( )
14176 declare cursor handler for sqlstate '02000' set @var2 = 1;
14180 DROP PROCEDURE IF EXISTS sp1;
14183 --error ER_PARSE_ERROR
14184 CREATE PROCEDURE sp1( )
14186 declare database handler for sqlstate '02000' set @var2 = 1;
14190 DROP PROCEDURE IF EXISTS sp1;
14193 --error ER_PARSE_ERROR
14194 CREATE PROCEDURE sp1( )
14196 declare databases handler for sqlstate '02000' set @var2 = 1;
14200 DROP PROCEDURE IF EXISTS sp1;
14203 --error ER_PARSE_ERROR
14204 CREATE PROCEDURE sp1( )
14206 declare day_hour handler for sqlstate '02000' set @var2 = 1;
14210 DROP PROCEDURE IF EXISTS sp1;
14213 --error ER_PARSE_ERROR
14214 CREATE PROCEDURE sp1( )
14216 declare day_microsecond handler for sqlstate '02000' set @var2 = 1;
14220 DROP PROCEDURE IF EXISTS sp1;
14223 --error ER_PARSE_ERROR
14224 CREATE PROCEDURE sp1( )
14226 declare day_minute handler for sqlstate '02000' set @var2 = 1;
14230 DROP PROCEDURE IF EXISTS sp1;
14233 --error ER_PARSE_ERROR
14234 CREATE PROCEDURE sp1( )
14236 declare day_second handler for sqlstate '02000' set @var2 = 1;
14240 DROP PROCEDURE IF EXISTS sp1;
14243 --error ER_PARSE_ERROR
14244 CREATE PROCEDURE sp1( )
14246 declare dec handler for sqlstate '02000' set @var2 = 1;
14250 DROP PROCEDURE IF EXISTS sp1;
14253 --error ER_PARSE_ERROR
14254 CREATE PROCEDURE sp1( )
14256 declare decimal handler for sqlstate '02000' set @var2 = 1;
14260 DROP PROCEDURE IF EXISTS sp1;
14263 --error ER_PARSE_ERROR
14264 CREATE PROCEDURE sp1( )
14266 declare declare handler for sqlstate '02000' set @var2 = 1;
14270 DROP PROCEDURE IF EXISTS sp1;
14273 --error ER_PARSE_ERROR
14274 CREATE PROCEDURE sp1( )
14276 declare default handler for sqlstate '02000' set @var2 = 1;
14280 DROP PROCEDURE IF EXISTS sp1;
14283 --error ER_PARSE_ERROR
14284 CREATE PROCEDURE sp1( )
14286 declare delayed handler for sqlstate '02000' set @var2 = 1;
14290 DROP PROCEDURE IF EXISTS sp1;
14293 --error ER_PARSE_ERROR
14294 CREATE PROCEDURE sp1( )
14296 declare delete handler for sqlstate '02000' set @var2 = 1;
14300 DROP PROCEDURE IF EXISTS sp1;
14303 --error ER_PARSE_ERROR
14304 CREATE PROCEDURE sp1( )
14306 declare desc handler for sqlstate '02000' set @var2 = 1;
14310 DROP PROCEDURE IF EXISTS sp1;
14313 --error ER_PARSE_ERROR
14314 CREATE PROCEDURE sp1( )
14316 declare describe handler for sqlstate '02000' set @var2 = 1;
14320 DROP PROCEDURE IF EXISTS sp1;
14323 --error ER_PARSE_ERROR
14324 CREATE PROCEDURE sp1( )
14326 declare deterministic handler for sqlstate '02000' set @var2 = 1;
14330 DROP PROCEDURE IF EXISTS sp1;
14333 --error ER_PARSE_ERROR
14334 CREATE PROCEDURE sp1( )
14336 declare distinct handler for sqlstate '02000' set @var2 = 1;
14340 DROP PROCEDURE IF EXISTS sp1;
14343 --error ER_PARSE_ERROR
14344 CREATE PROCEDURE sp1( )
14346 declare distinctrow handler for sqlstate '02000' set @var2 = 1;
14350 DROP PROCEDURE IF EXISTS sp1;
14353 --error ER_PARSE_ERROR
14354 CREATE PROCEDURE sp1( )
14356 declare div handler for sqlstate '02000' set @var2 = 1;
14360 DROP PROCEDURE IF EXISTS sp1;
14363 --error ER_PARSE_ERROR
14364 CREATE PROCEDURE sp1( )
14366 declare double handler for sqlstate '02000' set @var2 = 1;
14370 DROP PROCEDURE IF EXISTS sp1;
14373 --error ER_PARSE_ERROR
14374 CREATE PROCEDURE sp1( )
14376 declare drop handler for sqlstate '02000' set @var2 = 1;
14380 DROP PROCEDURE IF EXISTS sp1;
14383 --error ER_PARSE_ERROR
14384 CREATE PROCEDURE sp1( )
14386 declare dual handler for sqlstate '02000' set @var2 = 1;
14390 DROP PROCEDURE IF EXISTS sp1;
14393 --error ER_PARSE_ERROR
14394 CREATE PROCEDURE sp1( )
14396 declare each handler for sqlstate '02000' set @var2 = 1;
14400 DROP PROCEDURE IF EXISTS sp1;
14403 --error ER_PARSE_ERROR
14404 CREATE PROCEDURE sp1( )
14406 declare else handler for sqlstate '02000' set @var2 = 1;
14410 DROP PROCEDURE IF EXISTS sp1;
14413 --error ER_PARSE_ERROR
14414 CREATE PROCEDURE sp1( )
14416 declare elseif handler for sqlstate '02000' set @var2 = 1;
14420 DROP PROCEDURE IF EXISTS sp1;
14423 --error ER_PARSE_ERROR
14424 CREATE PROCEDURE sp1( )
14426 declare enclosed handler for sqlstate '02000' set @var2 = 1;
14430 DROP PROCEDURE IF EXISTS sp1;
14433 --error ER_PARSE_ERROR
14434 CREATE PROCEDURE sp1( )
14436 declare escaped handler for sqlstate '02000' set @var2 = 1;
14440 DROP PROCEDURE IF EXISTS sp1;
14443 --error ER_PARSE_ERROR
14444 CREATE PROCEDURE sp1( )
14446 declare exists handler for sqlstate '02000' set @var2 = 1;
14450 DROP PROCEDURE IF EXISTS sp1;
14452 --error ER_PARSE_ERROR
14454 CREATE PROCEDURE sp1( )
14456 declare exit handler for sqlstate '02000' set @var2 = 1;
14460 DROP PROCEDURE IF EXISTS sp1;
14463 --error ER_PARSE_ERROR
14464 CREATE PROCEDURE sp1( )
14466 declare explain handler for sqlstate '02000' set @var2 = 1;
14470 DROP PROCEDURE IF EXISTS sp1;
14473 --error ER_PARSE_ERROR
14474 CREATE PROCEDURE sp1( )
14476 declare false handler for sqlstate '02000' set @var2 = 1;
14480 DROP PROCEDURE IF EXISTS sp1;
14483 --error ER_PARSE_ERROR
14484 CREATE PROCEDURE sp1( )
14486 declare fetch handler for sqlstate '02000' set @var2 = 1;
14490 DROP PROCEDURE IF EXISTS sp1;
14493 --error ER_PARSE_ERROR
14494 CREATE PROCEDURE sp1( )
14496 declare float handler for sqlstate '02000' set @var2 = 1;
14500 DROP PROCEDURE IF EXISTS sp1;
14503 --error ER_PARSE_ERROR
14504 CREATE PROCEDURE sp1( )
14506 declare float4 handler for sqlstate '02000' set @var2 = 1;
14510 DROP PROCEDURE IF EXISTS sp1;
14513 --error ER_PARSE_ERROR
14514 CREATE PROCEDURE sp1( )
14516 declare float8 handler for sqlstate '02000' set @var2 = 1;
14520 DROP PROCEDURE IF EXISTS sp1;
14523 --error ER_PARSE_ERROR
14524 CREATE PROCEDURE sp1( )
14526 declare for handler for sqlstate '02000' set @var2 = 1;
14530 DROP PROCEDURE IF EXISTS sp1;
14533 --error ER_PARSE_ERROR
14534 CREATE PROCEDURE sp1( )
14536 declare force handler for sqlstate '02000' set @var2 = 1;
14540 DROP PROCEDURE IF EXISTS sp1;
14543 --error ER_PARSE_ERROR
14544 CREATE PROCEDURE sp1( )
14546 declare foreign handler for sqlstate '02000' set @var2 = 1;
14550 DROP PROCEDURE IF EXISTS sp1;
14553 --error ER_PARSE_ERROR
14554 CREATE PROCEDURE sp1( )
14556 declare from handler for sqlstate '02000' set @var2 = 1;
14560 DROP PROCEDURE IF EXISTS sp1;
14563 --error ER_PARSE_ERROR
14564 CREATE PROCEDURE sp1( )
14566 declare fulltext handler for sqlstate '02000' set @var2 = 1;
14570 DROP PROCEDURE IF EXISTS sp1;
14573 --error ER_PARSE_ERROR
14574 CREATE PROCEDURE sp1( )
14576 declare grant handler for sqlstate '02000' set @var2 = 1;
14580 DROP PROCEDURE IF EXISTS sp1;
14583 --error ER_PARSE_ERROR
14584 CREATE PROCEDURE sp1( )
14586 declare group handler for sqlstate '02000' set @var2 = 1;
14590 DROP PROCEDURE IF EXISTS sp1;
14593 --error ER_PARSE_ERROR
14594 CREATE PROCEDURE sp1( )
14596 declare having handler for sqlstate '02000' set @var2 = 1;
14600 DROP PROCEDURE IF EXISTS sp1;
14603 --error ER_PARSE_ERROR
14604 CREATE PROCEDURE sp1( )
14606 declare high_priority handler for sqlstate '02000' set @var2 = 1;
14610 DROP PROCEDURE IF EXISTS sp1;
14613 --error ER_PARSE_ERROR
14614 CREATE PROCEDURE sp1( )
14616 declare hour_microsecond handler for sqlstate '02000' set @var2 = 1;
14620 DROP PROCEDURE IF EXISTS sp1;
14623 --error ER_PARSE_ERROR
14624 CREATE PROCEDURE sp1( )
14626 declare hour_minute handler for sqlstate '02000' set @var2 = 1;
14630 DROP PROCEDURE IF EXISTS sp1;
14633 --error ER_PARSE_ERROR
14634 CREATE PROCEDURE sp1( )
14636 declare hour_second handler for sqlstate '02000' set @var2 = 1;
14640 DROP PROCEDURE IF EXISTS sp1;
14643 --error ER_PARSE_ERROR
14644 CREATE PROCEDURE sp1( )
14646 declare if handler for sqlstate '02000' set @var2 = 1;
14650 DROP PROCEDURE IF EXISTS sp1;
14653 --error ER_PARSE_ERROR
14654 CREATE PROCEDURE sp1( )
14656 declare ignore handler for sqlstate '02000' set @var2 = 1;
14660 DROP PROCEDURE IF EXISTS sp1;
14663 --error ER_PARSE_ERROR
14664 CREATE PROCEDURE sp1( )
14666 declare in handler for sqlstate '02000' set @var2 = 1;
14670 DROP PROCEDURE IF EXISTS sp1;
14673 --error ER_PARSE_ERROR
14674 CREATE PROCEDURE sp1( )
14676 declare index handler for sqlstate '02000' set @var2 = 1;
14680 DROP PROCEDURE IF EXISTS sp1;
14683 --error ER_PARSE_ERROR
14684 CREATE PROCEDURE sp1( )
14686 declare infile handler for sqlstate '02000' set @var2 = 1;
14690 DROP PROCEDURE IF EXISTS sp1;
14693 --error ER_PARSE_ERROR
14694 CREATE PROCEDURE sp1( )
14696 declare inner handler for sqlstate '02000' set @var2 = 1;
14700 DROP PROCEDURE IF EXISTS sp1;
14703 --error ER_PARSE_ERROR
14704 CREATE PROCEDURE sp1( )
14706 declare inout handler for sqlstate '02000' set @var2 = 1;
14710 DROP PROCEDURE IF EXISTS sp1;
14713 --error ER_PARSE_ERROR
14714 CREATE PROCEDURE sp1( )
14716 declare insensitive handler for sqlstate '02000' set @var2 = 1;
14720 DROP PROCEDURE IF EXISTS sp1;
14723 --error ER_PARSE_ERROR
14724 CREATE PROCEDURE sp1( )
14726 declare insert handler for sqlstate '02000' set @var2 = 1;
14730 DROP PROCEDURE IF EXISTS sp1;
14733 --error ER_PARSE_ERROR
14734 CREATE PROCEDURE sp1( )
14736 declare int handler for sqlstate '02000' set @var2 = 1;
14740 DROP PROCEDURE IF EXISTS sp1;
14743 --error ER_PARSE_ERROR
14744 CREATE PROCEDURE sp1( )
14746 declare int1 handler for sqlstate '02000' set @var2 = 1;
14750 DROP PROCEDURE IF EXISTS sp1;
14753 --error ER_PARSE_ERROR
14754 CREATE PROCEDURE sp1( )
14756 declare int2 handler for sqlstate '02000' set @var2 = 1;
14760 DROP PROCEDURE IF EXISTS sp1;
14763 --error ER_PARSE_ERROR
14764 CREATE PROCEDURE sp1( )
14766 declare int3 handler for sqlstate '02000' set @var2 = 1;
14770 DROP PROCEDURE IF EXISTS sp1;
14773 --error ER_PARSE_ERROR
14774 CREATE PROCEDURE sp1( )
14776 declare int4 handler for sqlstate '02000' set @var2 = 1;
14780 DROP PROCEDURE IF EXISTS sp1;
14783 --error ER_PARSE_ERROR
14784 CREATE PROCEDURE sp1( )
14786 declare int8 handler for sqlstate '02000' set @var2 = 1;
14790 DROP PROCEDURE IF EXISTS sp1;
14793 --error ER_PARSE_ERROR
14794 CREATE PROCEDURE sp1( )
14796 declare integer handler for sqlstate '02000' set @var2 = 1;
14800 DROP PROCEDURE IF EXISTS sp1;
14803 --error ER_PARSE_ERROR
14804 CREATE PROCEDURE sp1( )
14806 declare interval handler for sqlstate '02000' set @var2 = 1;
14810 DROP PROCEDURE IF EXISTS sp1;
14813 --error ER_PARSE_ERROR
14814 CREATE PROCEDURE sp1( )
14816 declare into handler for sqlstate '02000' set @var2 = 1;
14820 DROP PROCEDURE IF EXISTS sp1;
14823 --error ER_PARSE_ERROR
14824 CREATE PROCEDURE sp1( )
14826 declare is handler for sqlstate '02000' set @var2 = 1;
14830 DROP PROCEDURE IF EXISTS sp1;
14833 --error ER_PARSE_ERROR
14834 CREATE PROCEDURE sp1( )
14836 declare iterate handler for sqlstate '02000' set @var2 = 1;
14840 DROP PROCEDURE IF EXISTS sp1;
14843 --error ER_PARSE_ERROR
14844 CREATE PROCEDURE sp1( )
14846 declare join handler for sqlstate '02000' set @var2 = 1;
14850 DROP PROCEDURE IF EXISTS sp1;
14853 --error ER_PARSE_ERROR
14854 CREATE PROCEDURE sp1( )
14856 declare key handler for sqlstate '02000' set @var2 = 1;
14860 DROP PROCEDURE IF EXISTS sp1;
14863 --error ER_PARSE_ERROR
14864 CREATE PROCEDURE sp1( )
14866 declare keys handler for sqlstate '02000' set @var2 = 1;
14870 DROP PROCEDURE IF EXISTS sp1;
14873 --error ER_PARSE_ERROR
14874 CREATE PROCEDURE sp1( )
14876 declare kill handler for sqlstate '02000' set @var2 = 1;
14880 DROP PROCEDURE IF EXISTS sp1;
14883 --error ER_PARSE_ERROR
14884 CREATE PROCEDURE sp1( )
14886 declare leading handler for sqlstate '02000' set @var2 = 1;
14890 DROP PROCEDURE IF EXISTS sp1;
14893 --error ER_PARSE_ERROR
14894 CREATE PROCEDURE sp1( )
14896 declare leave handler for sqlstate '02000' set @var2 = 1;
14900 DROP PROCEDURE IF EXISTS sp1;
14903 --error ER_PARSE_ERROR
14904 CREATE PROCEDURE sp1( )
14906 declare left handler for sqlstate '02000' set @var2 = 1;
14910 DROP PROCEDURE IF EXISTS sp1;
14913 --error ER_PARSE_ERROR
14914 CREATE PROCEDURE sp1( )
14916 declare like handler for sqlstate '02000' set @var2 = 1;
14920 DROP PROCEDURE IF EXISTS sp1;
14923 --error ER_PARSE_ERROR
14924 CREATE PROCEDURE sp1( )
14926 declare limit handler for sqlstate '02000' set @var2 = 1;
14930 DROP PROCEDURE IF EXISTS sp1;
14933 --error ER_PARSE_ERROR
14934 CREATE PROCEDURE sp1( )
14936 declare linear handler for sqlstate '02000' set @var2 = 1;
14940 DROP PROCEDURE IF EXISTS sp1;
14943 --error ER_PARSE_ERROR
14944 CREATE PROCEDURE sp1( )
14946 declare lines handler for sqlstate '02000' set @var2 = 1;
14950 DROP PROCEDURE IF EXISTS sp1;
14953 --error ER_PARSE_ERROR
14954 CREATE PROCEDURE sp1( )
14956 declare load handler for sqlstate '02000' set @var2 = 1;
14960 DROP PROCEDURE IF EXISTS sp1;
14963 --error ER_PARSE_ERROR
14964 CREATE PROCEDURE sp1( )
14966 declare localtime handler for sqlstate '02000' set @var2 = 1;
14970 DROP PROCEDURE IF EXISTS sp1;
14973 --error ER_PARSE_ERROR
14974 CREATE PROCEDURE sp1( )
14976 declare localtimestamp handler for sqlstate '02000' set @var2 = 1;
14980 DROP PROCEDURE IF EXISTS sp1;
14983 --error ER_PARSE_ERROR
14984 CREATE PROCEDURE sp1( )
14986 declare lock handler for sqlstate '02000' set @var2 = 1;
14990 DROP PROCEDURE IF EXISTS sp1;
14993 --error ER_PARSE_ERROR
14994 CREATE PROCEDURE sp1( )
14996 declare long handler for sqlstate '02000' set @var2 = 1;
15000 DROP PROCEDURE IF EXISTS sp1;
15003 --error ER_PARSE_ERROR
15004 CREATE PROCEDURE sp1( )
15006 declare longblob handler for sqlstate '02000' set @var2 = 1;
15010 DROP PROCEDURE IF EXISTS sp1;
15013 --error ER_PARSE_ERROR
15014 CREATE PROCEDURE sp1( )
15016 declare longtext handler for sqlstate '02000' set @var2 = 1;
15020 DROP PROCEDURE IF EXISTS sp1;
15023 --error ER_PARSE_ERROR
15024 CREATE PROCEDURE sp1( )
15026 declare loop handler for sqlstate '02000' set @var2 = 1;
15030 DROP PROCEDURE IF EXISTS sp1;
15033 --error ER_PARSE_ERROR
15034 CREATE PROCEDURE sp1( )
15036 declare low_priority handler for sqlstate '02000' set @var2 = 1;
15040 DROP PROCEDURE IF EXISTS sp1;
15043 --error ER_PARSE_ERROR
15044 CREATE PROCEDURE sp1( )
15046 declare master_ssl_verify_server_cert handler for sqlstate '02000' set @var2 = 1;
15050 DROP PROCEDURE IF EXISTS sp1;
15053 --error ER_PARSE_ERROR
15054 CREATE PROCEDURE sp1( )
15056 declare match handler for sqlstate '02000' set @var2 = 1;
15060 DROP PROCEDURE IF EXISTS sp1;
15063 --error ER_PARSE_ERROR
15064 CREATE PROCEDURE sp1( )
15066 declare mediumblob handler for sqlstate '02000' set @var2 = 1;
15070 DROP PROCEDURE IF EXISTS sp1;
15073 --error ER_PARSE_ERROR
15074 CREATE PROCEDURE sp1( )
15076 declare mediumint handler for sqlstate '02000' set @var2 = 1;
15080 DROP PROCEDURE IF EXISTS sp1;
15083 --error ER_PARSE_ERROR
15084 CREATE PROCEDURE sp1( )
15086 declare mediumtext handler for sqlstate '02000' set @var2 = 1;
15090 DROP PROCEDURE IF EXISTS sp1;
15093 --error ER_PARSE_ERROR
15094 CREATE PROCEDURE sp1( )
15096 declare middleint handler for sqlstate '02000' set @var2 = 1;
15100 DROP PROCEDURE IF EXISTS sp1;
15103 --error ER_PARSE_ERROR
15104 CREATE PROCEDURE sp1( )
15106 declare minute_microsecond handler for sqlstate '02000' set @var2 = 1;
15110 DROP PROCEDURE IF EXISTS sp1;
15113 --error ER_PARSE_ERROR
15114 CREATE PROCEDURE sp1( )
15116 declare minute_second handler for sqlstate '02000' set @var2 = 1;
15120 DROP PROCEDURE IF EXISTS sp1;
15123 --error ER_PARSE_ERROR
15124 CREATE PROCEDURE sp1( )
15126 declare mod handler for sqlstate '02000' set @var2 = 1;
15130 DROP PROCEDURE IF EXISTS sp1;
15133 --error ER_PARSE_ERROR
15134 CREATE PROCEDURE sp1( )
15136 declare modifies handler for sqlstate '02000' set @var2 = 1;
15140 DROP PROCEDURE IF EXISTS sp1;
15143 --error ER_PARSE_ERROR
15144 CREATE PROCEDURE sp1( )
15146 declare natural handler for sqlstate '02000' set @var2 = 1;
15150 DROP PROCEDURE IF EXISTS sp1;
15153 --error ER_PARSE_ERROR
15154 CREATE PROCEDURE sp1( )
15156 declare not handler for sqlstate '02000' set @var2 = 1;
15160 DROP PROCEDURE IF EXISTS sp1;
15163 --error ER_PARSE_ERROR
15164 CREATE PROCEDURE sp1( )
15166 declare no_write_to_binlog handler for sqlstate '02000' set @var2 = 1;
15170 DROP PROCEDURE IF EXISTS sp1;
15173 --error ER_PARSE_ERROR
15174 CREATE PROCEDURE sp1( )
15176 declare null handler for sqlstate '02000' set @var2 = 1;
15180 DROP PROCEDURE IF EXISTS sp1;
15183 --error ER_PARSE_ERROR
15184 CREATE PROCEDURE sp1( )
15186 declare numeric handler for sqlstate '02000' set @var2 = 1;
15190 DROP PROCEDURE IF EXISTS sp1;
15193 --error ER_PARSE_ERROR
15194 CREATE PROCEDURE sp1( )
15196 declare on handler for sqlstate '02000' set @var2 = 1;
15200 DROP PROCEDURE IF EXISTS sp1;
15203 --error ER_PARSE_ERROR
15204 CREATE PROCEDURE sp1( )
15206 declare optimize handler for sqlstate '02000' set @var2 = 1;
15210 DROP PROCEDURE IF EXISTS sp1;
15213 --error ER_PARSE_ERROR
15214 CREATE PROCEDURE sp1( )
15216 declare option handler for sqlstate '02000' set @var2 = 1;
15220 DROP PROCEDURE IF EXISTS sp1;
15223 --error ER_PARSE_ERROR
15224 CREATE PROCEDURE sp1( )
15226 declare optionally handler for sqlstate '02000' set @var2 = 1;
15230 DROP PROCEDURE IF EXISTS sp1;
15233 --error ER_PARSE_ERROR
15234 CREATE PROCEDURE sp1( )
15236 declare or handler for sqlstate '02000' set @var2 = 1;
15240 DROP PROCEDURE IF EXISTS sp1;
15243 --error ER_PARSE_ERROR
15244 CREATE PROCEDURE sp1( )
15246 declare order handler for sqlstate '02000' set @var2 = 1;
15250 DROP PROCEDURE IF EXISTS sp1;
15253 --error ER_PARSE_ERROR
15254 CREATE PROCEDURE sp1( )
15256 declare out handler for sqlstate '02000' set @var2 = 1;
15260 DROP PROCEDURE IF EXISTS sp1;
15263 --error ER_PARSE_ERROR
15264 CREATE PROCEDURE sp1( )
15266 declare outer handler for sqlstate '02000' set @var2 = 1;
15270 DROP PROCEDURE IF EXISTS sp1;
15273 --error ER_PARSE_ERROR
15274 CREATE PROCEDURE sp1( )
15276 declare outfile handler for sqlstate '02000' set @var2 = 1;
15280 DROP PROCEDURE IF EXISTS sp1;
15283 --error ER_PARSE_ERROR
15284 CREATE PROCEDURE sp1( )
15286 declare precision handler for sqlstate '02000' set @var2 = 1;
15290 DROP PROCEDURE IF EXISTS sp1;
15293 --error ER_PARSE_ERROR
15294 CREATE PROCEDURE sp1( )
15296 declare primary handler for sqlstate '02000' set @var2 = 1;
15300 DROP PROCEDURE IF EXISTS sp1;
15303 --error ER_PARSE_ERROR
15304 CREATE PROCEDURE sp1( )
15306 declare privileges handler for sqlstate '02000' set @var2 = 1;
15310 DROP PROCEDURE IF EXISTS sp1;
15313 --error ER_PARSE_ERROR
15314 CREATE PROCEDURE sp1( )
15316 declare procedure handler for sqlstate '02000' set @var2 = 1;
15320 DROP PROCEDURE IF EXISTS sp1;
15323 --error ER_PARSE_ERROR
15324 CREATE PROCEDURE sp1( )
15326 declare purge handler for sqlstate '02000' set @var2 = 1;
15330 DROP PROCEDURE IF EXISTS sp1;
15333 --error ER_PARSE_ERROR
15334 CREATE PROCEDURE sp1( )
15336 declare range handler for sqlstate '02000' set @var2 = 1;
15340 DROP PROCEDURE IF EXISTS sp1;
15343 --error ER_PARSE_ERROR
15344 CREATE PROCEDURE sp1( )
15346 declare read handler for sqlstate '02000' set @var2 = 1;
15350 DROP PROCEDURE IF EXISTS sp1;
15353 --error ER_PARSE_ERROR
15354 CREATE PROCEDURE sp1( )
15356 declare reads handler for sqlstate '02000' set @var2 = 1;
15360 DROP PROCEDURE IF EXISTS sp1;
15363 --error ER_PARSE_ERROR
15364 CREATE PROCEDURE sp1( )
15366 declare read_only handler for sqlstate '02000' set @var2 = 1;
15370 DROP PROCEDURE IF EXISTS sp1;
15373 --error ER_PARSE_ERROR
15374 CREATE PROCEDURE sp1( )
15376 declare read_write handler for sqlstate '02000' set @var2 = 1;
15380 DROP PROCEDURE IF EXISTS sp1;
15383 --error ER_PARSE_ERROR
15384 CREATE PROCEDURE sp1( )
15386 declare real handler for sqlstate '02000' set @var2 = 1;
15390 DROP PROCEDURE IF EXISTS sp1;
15393 --error ER_PARSE_ERROR
15394 CREATE PROCEDURE sp1( )
15396 declare references handler for sqlstate '02000' set @var2 = 1;
15400 DROP PROCEDURE IF EXISTS sp1;
15403 --error ER_PARSE_ERROR
15404 CREATE PROCEDURE sp1( )
15406 declare regexp handler for sqlstate '02000' set @var2 = 1;
15410 DROP PROCEDURE IF EXISTS sp1;
15413 --error ER_PARSE_ERROR
15414 CREATE PROCEDURE sp1( )
15416 declare release handler for sqlstate '02000' set @var2 = 1;
15420 DROP PROCEDURE IF EXISTS sp1;
15423 --error ER_PARSE_ERROR
15424 CREATE PROCEDURE sp1( )
15426 declare rename handler for sqlstate '02000' set @var2 = 1;
15430 DROP PROCEDURE IF EXISTS sp1;
15433 --error ER_PARSE_ERROR
15434 CREATE PROCEDURE sp1( )
15436 declare repeat handler for sqlstate '02000' set @var2 = 1;
15440 DROP PROCEDURE IF EXISTS sp1;
15443 --error ER_PARSE_ERROR
15444 CREATE PROCEDURE sp1( )
15446 declare replace handler for sqlstate '02000' set @var2 = 1;
15450 DROP PROCEDURE IF EXISTS sp1;
15453 --error ER_PARSE_ERROR
15454 CREATE PROCEDURE sp1( )
15456 declare require handler for sqlstate '02000' set @var2 = 1;
15460 DROP PROCEDURE IF EXISTS sp1;
15463 --error ER_PARSE_ERROR
15464 CREATE PROCEDURE sp1( )
15466 declare restrict handler for sqlstate '02000' set @var2 = 1;
15470 DROP PROCEDURE IF EXISTS sp1;
15473 --error ER_PARSE_ERROR
15474 CREATE PROCEDURE sp1( )
15476 declare return handler for sqlstate '02000' set @var2 = 1;
15480 DROP PROCEDURE IF EXISTS sp1;
15483 --error ER_PARSE_ERROR
15484 CREATE PROCEDURE sp1( )
15486 declare revoke handler for sqlstate '02000' set @var2 = 1;
15490 DROP PROCEDURE IF EXISTS sp1;
15493 --error ER_PARSE_ERROR
15494 CREATE PROCEDURE sp1( )
15496 declare right handler for sqlstate '02000' set @var2 = 1;
15500 DROP PROCEDURE IF EXISTS sp1;
15503 --error ER_PARSE_ERROR
15504 CREATE PROCEDURE sp1( )
15506 declare rlike handler for sqlstate '02000' set @var2 = 1;
15510 DROP PROCEDURE IF EXISTS sp1;
15513 --error ER_PARSE_ERROR
15514 CREATE PROCEDURE sp1( )
15516 declare schema handler for sqlstate '02000' set @var2 = 1;
15520 DROP PROCEDURE IF EXISTS sp1;
15523 --error ER_PARSE_ERROR
15524 CREATE PROCEDURE sp1( )
15526 declare schemas handler for sqlstate '02000' set @var2 = 1;
15530 DROP PROCEDURE IF EXISTS sp1;
15533 --error ER_PARSE_ERROR
15534 CREATE PROCEDURE sp1( )
15536 declare second_microsecond handler for sqlstate '02000' set @var2 = 1;
15540 DROP PROCEDURE IF EXISTS sp1;
15543 --error ER_PARSE_ERROR
15544 CREATE PROCEDURE sp1( )
15546 declare select handler for sqlstate '02000' set @var2 = 1;
15550 DROP PROCEDURE IF EXISTS sp1;
15553 --error ER_PARSE_ERROR
15554 CREATE PROCEDURE sp1( )
15556 declare sensitive handler for sqlstate '02000' set @var2 = 1;
15560 DROP PROCEDURE IF EXISTS sp1;
15563 --error ER_PARSE_ERROR
15564 CREATE PROCEDURE sp1( )
15566 declare separator handler for sqlstate '02000' set @var2 = 1;
15570 DROP PROCEDURE IF EXISTS sp1;
15573 --error ER_PARSE_ERROR
15574 CREATE PROCEDURE sp1( )
15576 declare set handler for sqlstate '02000' set @var2 = 1;
15580 DROP PROCEDURE IF EXISTS sp1;
15583 --error ER_PARSE_ERROR
15584 CREATE PROCEDURE sp1( )
15586 declare show handler for sqlstate '02000' set @var2 = 1;
15590 DROP PROCEDURE IF EXISTS sp1;
15593 --error ER_PARSE_ERROR
15594 CREATE PROCEDURE sp1( )
15596 declare smallint handler for sqlstate '02000' set @var2 = 1;
15600 DROP PROCEDURE IF EXISTS sp1;
15603 --error ER_PARSE_ERROR
15604 CREATE PROCEDURE sp1( )
15606 declare spatial handler for sqlstate '02000' set @var2 = 1;
15610 DROP PROCEDURE IF EXISTS sp1;
15613 --error ER_PARSE_ERROR
15614 CREATE PROCEDURE sp1( )
15616 declare specific handler for sqlstate '02000' set @var2 = 1;
15620 DROP PROCEDURE IF EXISTS sp1;
15623 --error ER_PARSE_ERROR
15624 CREATE PROCEDURE sp1( )
15626 declare sql handler for sqlstate '02000' set @var2 = 1;
15630 DROP PROCEDURE IF EXISTS sp1;
15633 --error ER_PARSE_ERROR
15634 CREATE PROCEDURE sp1( )
15636 declare sqlexception handler for sqlstate '02000' set @var2 = 1;
15640 DROP PROCEDURE IF EXISTS sp1;
15643 --error ER_PARSE_ERROR
15644 CREATE PROCEDURE sp1( )
15646 declare sqlstate handler for sqlstate '02000' set @var2 = 1;
15650 DROP PROCEDURE IF EXISTS sp1;
15653 --error ER_PARSE_ERROR
15654 CREATE PROCEDURE sp1( )
15656 declare sqlwarning handler for sqlstate '02000' set @var2 = 1;
15660 DROP PROCEDURE IF EXISTS sp1;
15663 --error ER_PARSE_ERROR
15664 CREATE PROCEDURE sp1( )
15666 declare sql_big_result handler for sqlstate '02000' set @var2 = 1;
15670 DROP PROCEDURE IF EXISTS sp1;
15673 --error ER_PARSE_ERROR
15674 CREATE PROCEDURE sp1( )
15676 declare sql_calc_found_rows handler for sqlstate '02000' set @var2 = 1;
15680 DROP PROCEDURE IF EXISTS sp1;
15683 --error ER_PARSE_ERROR
15684 CREATE PROCEDURE sp1( )
15686 declare sql_small_result handler for sqlstate '02000' set @var2 = 1;
15690 DROP PROCEDURE IF EXISTS sp1;
15693 --error ER_PARSE_ERROR
15694 CREATE PROCEDURE sp1( )
15696 declare ssl handler for sqlstate '02000' set @var2 = 1;
15700 DROP PROCEDURE IF EXISTS sp1;
15703 --error ER_PARSE_ERROR
15704 CREATE PROCEDURE sp1( )
15706 declare starting handler for sqlstate '02000' set @var2 = 1;
15710 DROP PROCEDURE IF EXISTS sp1;
15713 --error ER_PARSE_ERROR
15714 CREATE PROCEDURE sp1( )
15716 declare straight_join handler for sqlstate '02000' set @var2 = 1;
15720 DROP PROCEDURE IF EXISTS sp1;
15723 --error ER_PARSE_ERROR
15724 CREATE PROCEDURE sp1( )
15726 declare table handler for sqlstate '02000' set @var2 = 1;
15730 DROP PROCEDURE IF EXISTS sp1;
15733 --error ER_PARSE_ERROR
15734 CREATE PROCEDURE sp1( )
15736 declare terminated handler for sqlstate '02000' set @var2 = 1;
15740 DROP PROCEDURE IF EXISTS sp1;
15743 --error ER_PARSE_ERROR
15744 CREATE PROCEDURE sp1( )
15746 declare then handler for sqlstate '02000' set @var2 = 1;
15750 DROP PROCEDURE IF EXISTS sp1;
15753 --error ER_PARSE_ERROR
15754 CREATE PROCEDURE sp1( )
15756 declare tinyblob handler for sqlstate '02000' set @var2 = 1;
15760 DROP PROCEDURE IF EXISTS sp1;
15763 --error ER_PARSE_ERROR
15764 CREATE PROCEDURE sp1( )
15766 declare tinyint handler for sqlstate '02000' set @var2 = 1;
15770 DROP PROCEDURE IF EXISTS sp1;
15773 --error ER_PARSE_ERROR
15774 CREATE PROCEDURE sp1( )
15776 declare tinytext handler for sqlstate '02000' set @var2 = 1;
15780 DROP PROCEDURE IF EXISTS sp1;
15783 --error ER_PARSE_ERROR
15784 CREATE PROCEDURE sp1( )
15786 declare to handler for sqlstate '02000' set @var2 = 1;
15790 DROP PROCEDURE IF EXISTS sp1;
15793 --error ER_PARSE_ERROR
15794 CREATE PROCEDURE sp1( )
15796 declare trailing handler for sqlstate '02000' set @var2 = 1;
15800 DROP PROCEDURE IF EXISTS sp1;
15803 --error ER_PARSE_ERROR
15804 CREATE PROCEDURE sp1( )
15806 declare trigger handler for sqlstate '02000' set @var2 = 1;
15810 DROP PROCEDURE IF EXISTS sp1;
15813 --error ER_PARSE_ERROR
15814 CREATE PROCEDURE sp1( )
15816 declare true handler for sqlstate '02000' set @var2 = 1;
15820 DROP PROCEDURE IF EXISTS sp1;
15823 --error ER_PARSE_ERROR
15824 CREATE PROCEDURE sp1( )
15826 declare undo handler for sqlstate '02000' set @var2 = 1;
15830 DROP PROCEDURE IF EXISTS sp1;
15833 --error ER_PARSE_ERROR
15834 CREATE PROCEDURE sp1( )
15836 declare union handler for sqlstate '02000' set @var2 = 1;
15840 DROP PROCEDURE IF EXISTS sp1;
15843 --error ER_PARSE_ERROR
15844 CREATE PROCEDURE sp1( )
15846 declare unique handler for sqlstate '02000' set @var2 = 1;
15850 DROP PROCEDURE IF EXISTS sp1;
15853 --error ER_PARSE_ERROR
15854 CREATE PROCEDURE sp1( )
15856 declare unlock handler for sqlstate '02000' set @var2 = 1;
15860 DROP PROCEDURE IF EXISTS sp1;
15863 --error ER_PARSE_ERROR
15864 CREATE PROCEDURE sp1( )
15866 declare unsigned handler for sqlstate '02000' set @var2 = 1;
15870 DROP PROCEDURE IF EXISTS sp1;
15873 --error ER_PARSE_ERROR
15874 CREATE PROCEDURE sp1( )
15876 declare update handler for sqlstate '02000' set @var2 = 1;
15880 DROP PROCEDURE IF EXISTS sp1;
15883 --error ER_PARSE_ERROR
15884 CREATE PROCEDURE sp1( )
15886 declare usage handler for sqlstate '02000' set @var2 = 1;
15890 DROP PROCEDURE IF EXISTS sp1;
15893 --error ER_PARSE_ERROR
15894 CREATE PROCEDURE sp1( )
15896 declare use handler for sqlstate '02000' set @var2 = 1;
15900 DROP PROCEDURE IF EXISTS sp1;
15903 --error ER_PARSE_ERROR
15904 CREATE PROCEDURE sp1( )
15906 declare using handler for sqlstate '02000' set @var2 = 1;
15910 DROP PROCEDURE IF EXISTS sp1;
15913 --error ER_PARSE_ERROR
15914 CREATE PROCEDURE sp1( )
15916 declare utc_date handler for sqlstate '02000' set @var2 = 1;
15920 DROP PROCEDURE IF EXISTS sp1;
15923 --error ER_PARSE_ERROR
15924 CREATE PROCEDURE sp1( )
15926 declare utc_time handler for sqlstate '02000' set @var2 = 1;
15930 DROP PROCEDURE IF EXISTS sp1;
15933 --error ER_PARSE_ERROR
15934 CREATE PROCEDURE sp1( )
15936 declare utc_timestamp handler for sqlstate '02000' set @var2 = 1;
15940 DROP PROCEDURE IF EXISTS sp1;
15943 --error ER_PARSE_ERROR
15944 CREATE PROCEDURE sp1( )
15946 declare values handler for sqlstate '02000' set @var2 = 1;
15950 DROP PROCEDURE IF EXISTS sp1;
15953 --error ER_PARSE_ERROR
15954 CREATE PROCEDURE sp1( )
15956 declare varbinary handler for sqlstate '02000' set @var2 = 1;
15960 DROP PROCEDURE IF EXISTS sp1;
15963 --error ER_PARSE_ERROR
15964 CREATE PROCEDURE sp1( )
15966 declare varchar handler for sqlstate '02000' set @var2 = 1;
15970 DROP PROCEDURE IF EXISTS sp1;
15973 --error ER_PARSE_ERROR
15974 CREATE PROCEDURE sp1( )
15976 declare varcharacter handler for sqlstate '02000' set @var2 = 1;
15980 DROP PROCEDURE IF EXISTS sp1;
15983 --error ER_PARSE_ERROR
15984 CREATE PROCEDURE sp1( )
15986 declare varying handler for sqlstate '02000' set @var2 = 1;
15990 DROP PROCEDURE IF EXISTS sp1;
15993 --error ER_PARSE_ERROR
15994 CREATE PROCEDURE sp1( )
15996 declare when handler for sqlstate '02000' set @var2 = 1;
16000 DROP PROCEDURE IF EXISTS sp1;
16003 --error ER_PARSE_ERROR
16004 CREATE PROCEDURE sp1( )
16006 declare where handler for sqlstate '02000' set @var2 = 1;
16010 DROP PROCEDURE IF EXISTS sp1;
16013 --error ER_PARSE_ERROR
16014 CREATE PROCEDURE sp1( )
16016 declare while handler for sqlstate '02000' set @var2 = 1;
16020 DROP PROCEDURE IF EXISTS sp1;
16023 --error ER_PARSE_ERROR
16024 CREATE PROCEDURE sp1( )
16026 declare with handler for sqlstate '02000' set @var2 = 1;
16030 DROP PROCEDURE IF EXISTS sp1;
16033 --error ER_PARSE_ERROR
16034 CREATE PROCEDURE sp1( )
16036 declare write handler for sqlstate '02000' set @var2 = 1;
16040 DROP PROCEDURE IF EXISTS sp1;
16043 --error ER_PARSE_ERROR
16044 CREATE PROCEDURE sp1( )
16046 declare xor handler for sqlstate '02000' set @var2 = 1;
16050 DROP PROCEDURE IF EXISTS sp1;
16053 --error ER_PARSE_ERROR
16054 CREATE PROCEDURE sp1( )
16056 declare year_month handler for sqlstate '02000' set @var2 = 1;
16060 DROP PROCEDURE IF EXISTS sp1;
16063 --error ER_PARSE_ERROR
16064 CREATE PROCEDURE sp1( )
16066 declare zerofill handler for sqlstate '02000' set @var2 = 1;
16071 # ==============================================================================
16073 # test plan section: 4.2 - syntax checks for programming statements - 2
16075 # ==============================================================================
16081 # ------------------------------------------------------------------------------
16082 let $message= Testcase 4.2.26:;
16083 --source include/show_msg80.inc
16085 # testcase: ensure that the scope of every variable, cursor, condition and handler
16086 # declared for a stored procedure (with the declare statement) is properly applied.
16092 DROP PROCEDURE IF EXISTS sp1;
16096 CREATE PROCEDURE sp1()
16100 declare cond1 condition for sqlstate '42000';
16101 declare cur1 cursor for SELECT f1 from t2 limit 1;
16102 declare continue handler for cond1 set @x = 4;
16108 declare cur1 cursor for SELECT f1 from t2 limit 2, 1;
16109 declare continue handler for sqlstate '42000' set @x = 3;
16129 DROP PROCEDURE sp1;
16132 # ------------------------------------------------------------------------------
16133 let $message= Testcase 4.2.28:;
16134 --source include/show_msg80.inc
16136 # testcase: ensure that the set statement can assign a value to every local variable
16137 # declared within a stored procedures definition, as well as to every
16138 # appropriate global server variable.
16142 DROP PROCEDURE IF EXISTS sp1;
16144 SET @start_global_value = @@GLOBAL.sort_buffer_size;
16146 CREATE PROCEDURE sp1()
16148 DECLARE CONTINUE HANDLER FOR SQLSTATE '42000' SET @x2 = 1;
16149 SET SESSION SORT_BUFFER_SIZE = 10 * 1024 * 1024;
16150 SELECT @@sort_buffer_size;
16153 SET GLOBAL SORT_BUFFER_SIZE = 2 * 1024 * 1024;
16154 SELECT @@sort_buffer_size;
16155 SET @@sort_buffer_size = 10 * 1024 * 1024;
16156 SELECT @@sort_buffer_size;
16161 SET @@GLOBAL.sort_buffer_size = @start_global_value;
16164 # ------------------------------------------------------------------------------
16165 let $message= Testcase 4.2.29:;
16166 --source include/show_msg80.inc
16168 # testcase: ensure that the set statement can assign values to variables either
16169 # separately or multiple variables in a list.
16172 DROP PROCEDURE IF EXISTS sp1;
16175 CREATE PROCEDURE sp1()
16177 declare xx char default 'x';
16178 declare xy char default 'y';
16179 declare xz char default 'z';
16180 set @xx = xx, @xy = xy;
16182 SELECT @xx, @xy, @xz;
16189 DROP PROCEDURE sp1;
16193 # ------------------------------------------------------------------------------
16194 let $message= Testcase 4.2.30:;
16195 --source include/show_msg80.inc
16197 # testcase: ensure that the set statement may assign only those values to a variable
16198 # that are appropriate for that variables data type definition
16200 # integer data_type.
16204 DROP PROCEDURE IF EXISTS sp1;
16207 CREATE PROCEDURE sp1()
16218 DROP PROCEDURE IF EXISTS sp1;
16221 CREATE PROCEDURE sp1()
16233 DROP PROCEDURE sp1;
16236 # ------------------------------------------------------------------------------
16237 let $message= Testcase 4.2.31 - a:;
16238 --source include/show_msg80.inc
16240 # character data_type
16244 DROP PROCEDURE IF EXISTS sp1;
16247 CREATE PROCEDURE sp1()
16260 DROP PROCEDURE sp1;
16263 # ------------------------------------------------------------------------------
16264 let $message= Testcase 4.2.31 - b:;
16265 --source include/show_msg80.inc
16269 DROP PROCEDURE IF EXISTS sp1;
16272 CREATE PROCEDURE sp1()
16282 DROP PROCEDURE IF EXISTS sp1;
16285 CREATE PROCEDURE sp1()
16296 DROP PROCEDURE sp1;
16300 # ------------------------------------------------------------------------------
16301 let $message= Testcase 4.2.31 - c:;
16302 --source include/show_msg80.inc
16304 # datetime data_type
16306 DROP PROCEDURE IF EXISTS sp1;
16309 CREATE PROCEDURE sp1()
16311 declare xx datetime;
16319 DROP PROCEDURE IF EXISTS sp1;
16322 CREATE PROCEDURE sp1()
16324 declare xx datetime;
16325 set xx = '2006-06-06 01:01:01';
16333 DROP PROCEDURE sp1;
16336 # ------------------------------------------------------------------------------
16337 let $message= Testcase 4.2.31 - d:;
16338 --source include/show_msg80.inc
16340 # varchar data_type
16342 DROP PROCEDURE IF EXISTS sp1;
16345 CREATE PROCEDURE sp1()
16347 declare xx varchar(20);
16348 set xx = "abcdefghijk";
16356 DROP PROCEDURE sp1;
16359 # ------------------------------------------------------------------------------
16360 let $message= Testcase 4.2.31 - e:;
16361 --source include/show_msg80.inc
16365 DROP PROCEDURE IF EXISTS sp1;
16368 CREATE PROCEDURE sp1()
16370 declare xx tinyint;
16378 DROP PROCEDURE IF EXISTS sp1;
16381 CREATE PROCEDURE sp1()
16383 declare xx tinyint;
16392 DROP PROCEDURE sp1;
16396 # ------------------------------------------------------------------------------
16397 let $message= Testcase 4.2.37:;
16398 --source include/show_msg80.inc
16400 # testcase: ensure that the SELECT into statement that retrieves column values
16401 # with inappropriate data types for the matching variables in its variable
16402 # list is rejected, with an appropriate error message.
16404 DROP PROCEDURE IF EXISTS sp1;
16407 CREATE PROCEDURE sp1( )
16409 declare x integer; declare y integer;
16410 SELECT sal, f2 into x, y from t2 limit 1;
16411 set @x=x; set @y=y;
16415 DROP PROCEDURE IF EXISTS sp1;
16418 CREATE PROCEDURE sp1()
16420 declare x char ascii;
16421 SELECT f1 into x from t2 limit 1;
16427 DROP PROCEDURE IF EXISTS sp1;
16430 CREATE PROCEDURE sp1()
16432 declare x tinytext;
16433 SELECT f1 into x from t2 limit 1;
16440 DROP PROCEDURE IF EXISTS sp1;
16443 CREATE PROCEDURE sp1()
16446 SELECT f1 into x from t2 limit 1;
16452 DROP PROCEDURE IF EXISTS sp1;
16455 CREATE PROCEDURE sp1()
16457 declare x mediumtext;
16458 SELECT f1 into x from t2 limit 1;
16464 DROP PROCEDURE IF EXISTS sp1;
16467 CREATE PROCEDURE sp1()
16469 declare x longtext;
16470 SELECT f1 into x from t2 limit 1;
16476 DROP PROCEDURE IF EXISTS sp1;
16479 CREATE PROCEDURE sp1()
16481 declare x tinyblob;
16482 SELECT f1 into x from t2 limit 1;
16488 DROP PROCEDURE IF EXISTS sp1;
16491 CREATE PROCEDURE sp1()
16494 SELECT f1 into x from t2 limit 1;
16500 DROP PROCEDURE IF EXISTS sp1;
16503 CREATE PROCEDURE sp1()
16505 declare x mediumblob;
16506 SELECT f1 into x from t2 limit 1;
16512 DROP PROCEDURE IF EXISTS sp1;
16515 CREATE PROCEDURE sp1()
16517 declare x longblob;
16518 SELECT f1 into x from t2 limit 1;
16524 DROP PROCEDURE IF EXISTS sp1;
16527 CREATE PROCEDURE sp1()
16530 SELECT f1 into x from t2 limit 1;
16538 DROP PROCEDURE IF EXISTS sp1;
16541 CREATE PROCEDURE sp1()
16544 SELECT f1 into x from t2 limit 1;
16550 DROP PROCEDURE IF EXISTS sp1;
16553 CREATE PROCEDURE sp1()
16555 declare x tinyint unsigned;
16556 SELECT f1 into x from t2 limit 1;
16562 DROP PROCEDURE IF EXISTS sp1;
16565 CREATE PROCEDURE sp1()
16567 declare x tinyint zerofill;
16568 SELECT f1 into x from t2 limit 1;
16574 DROP PROCEDURE IF EXISTS sp1;
16577 CREATE PROCEDURE sp1()
16579 declare x tinyint unsigned zerofill;
16580 SELECT f1 into x from t2 limit 1;
16586 DROP PROCEDURE IF EXISTS sp1;
16589 CREATE PROCEDURE sp1()
16591 declare x smallint;
16592 SELECT f1 into x from t2 limit 1;
16598 DROP PROCEDURE IF EXISTS sp1;
16601 CREATE PROCEDURE sp1()
16603 declare x smallint unsigned;
16604 SELECT f1 into x from t2 limit 1;
16610 DROP PROCEDURE IF EXISTS sp1;
16613 CREATE PROCEDURE sp1()
16615 declare x smallint zerofill;
16616 SELECT f1 into x from t2 limit 1;
16622 DROP PROCEDURE IF EXISTS sp1;
16625 CREATE PROCEDURE sp1()
16627 declare x smallint unsigned zerofill;
16628 SELECT f1 into x from t2 limit 1;
16634 DROP PROCEDURE IF EXISTS sp1;
16637 CREATE PROCEDURE sp1()
16639 declare x mediumint;
16640 SELECT f1 into x from t2 limit 1;
16646 DROP PROCEDURE IF EXISTS sp1;
16649 CREATE PROCEDURE sp1()
16651 declare x mediumint unsigned;
16652 SELECT f1 into x from t2 limit 1;
16658 DROP PROCEDURE IF EXISTS sp1;
16660 CREATE PROCEDURE sp1()
16662 declare x mediumint zerofill;
16663 SELECT f1 into x from t2 limit 1;
16669 DROP PROCEDURE IF EXISTS sp1;
16672 CREATE PROCEDURE sp1()
16674 declare x mediumint unsigned zerofill;
16675 SELECT f1 into x from t2 limit 1;
16681 DROP PROCEDURE IF EXISTS sp1;
16684 CREATE PROCEDURE sp1()
16687 SELECT f1 into x from t2 limit 1;
16693 DROP PROCEDURE IF EXISTS sp1;
16696 CREATE PROCEDURE sp1()
16698 declare x int unsigned;
16699 SELECT f1 into x from t2 limit 1;
16705 DROP PROCEDURE IF EXISTS sp1;
16708 CREATE PROCEDURE sp1()
16710 declare x int zerofill;
16711 SELECT f1 into x from t2 limit 1;
16717 DROP PROCEDURE IF EXISTS sp1;
16720 CREATE PROCEDURE sp1()
16722 declare x int unsigned zerofill;
16723 SELECT f1 into x from t2 limit 1;
16729 DROP PROCEDURE IF EXISTS sp1;
16732 CREATE PROCEDURE sp1()
16735 SELECT f1 into x from t2 limit 1;
16741 DROP PROCEDURE IF EXISTS sp1;
16744 CREATE PROCEDURE sp1()
16746 declare x bigint unsigned;
16747 SELECT f1 into x from t2 limit 1;
16753 DROP PROCEDURE IF EXISTS sp1;
16756 CREATE PROCEDURE sp1()
16758 declare x bigint zerofill;
16759 SELECT f1 into x from t2 limit 1;
16765 DROP PROCEDURE IF EXISTS sp1;
16768 CREATE PROCEDURE sp1()
16770 declare x bigint unsigned zerofill;
16771 SELECT f1 into x from t2 limit 1;
16777 DROP PROCEDURE IF EXISTS sp1;
16780 CREATE PROCEDURE sp1()
16783 SELECT f1 into x from t2 limit 1;
16789 DROP PROCEDURE IF EXISTS sp1;
16792 CREATE PROCEDURE sp1()
16794 declare x decimal unsigned;
16795 SELECT f1 into x from t2 limit 1;
16801 DROP PROCEDURE IF EXISTS sp1;
16804 CREATE PROCEDURE sp1()
16806 declare x decimal zerofill;
16807 SELECT f1 into x from t2 limit 1;
16813 DROP PROCEDURE IF EXISTS sp1;
16816 CREATE PROCEDURE sp1()
16818 declare x decimal unsigned zerofill;
16819 SELECT f1 into x from t2 limit 1;
16825 DROP PROCEDURE IF EXISTS sp1;
16828 CREATE PROCEDURE sp1()
16831 SELECT f1 into x from t2 limit 1;
16837 DROP PROCEDURE IF EXISTS sp1;
16840 CREATE PROCEDURE sp1()
16842 declare x numeric unsigned;
16843 SELECT f1 into x from t2 limit 1;
16849 DROP PROCEDURE IF EXISTS sp1;
16852 CREATE PROCEDURE sp1()
16854 declare x numeric zerofill;
16855 SELECT f1 into x from t2 limit 1;
16861 DROP PROCEDURE IF EXISTS sp1;
16864 CREATE PROCEDURE sp1()
16866 declare x numeric unsigned zerofill;
16867 SELECT f1 into x from t2 limit 1;
16873 DROP PROCEDURE IF EXISTS sp1;
16876 CREATE PROCEDURE sp1()
16879 SELECT f1 into x from t2 limit 1;
16885 DROP PROCEDURE IF EXISTS sp1;
16888 CREATE PROCEDURE sp1()
16890 declare x real unsigned;
16891 SELECT f1 into x from t2 limit 1;
16897 DROP PROCEDURE IF EXISTS sp1;
16900 CREATE PROCEDURE sp1()
16902 declare x real zerofill;
16903 SELECT f1 into x from t2 limit 1;
16909 DROP PROCEDURE IF EXISTS sp1;
16912 CREATE PROCEDURE sp1()
16914 declare x real unsigned zerofill;
16915 SELECT f1 into x from t2 limit 1;
16921 DROP PROCEDURE IF EXISTS sp1;
16924 CREATE PROCEDURE sp1()
16927 SELECT f1 into x from t2 limit 1;
16933 DROP PROCEDURE IF EXISTS sp1;
16936 CREATE PROCEDURE sp1()
16938 declare x float unsigned;
16939 SELECT f1 into x from t2 limit 1;
16945 DROP PROCEDURE IF EXISTS sp1;
16948 CREATE PROCEDURE sp1()
16950 declare x float zerofill;
16951 SELECT f1 into x from t2 limit 1;
16957 DROP PROCEDURE IF EXISTS sp1;
16960 CREATE PROCEDURE sp1()
16962 declare x float unsigned zerofill;
16963 SELECT f1 into x from t2 limit 1;
16969 DROP PROCEDURE IF EXISTS sp1;
16972 CREATE PROCEDURE sp1()
16975 SELECT f1 into x from t2 limit 1;
16981 DROP PROCEDURE IF EXISTS sp1;
16984 CREATE PROCEDURE sp1()
16987 SELECT f1 into x from t2 limit 1;
16993 DROP PROCEDURE IF EXISTS sp1;
16996 CREATE PROCEDURE sp1()
16998 declare x datetime;
16999 SELECT f1 into x from t2 limit 1;
17005 DROP PROCEDURE IF EXISTS sp1;
17008 CREATE PROCEDURE sp1()
17010 declare x timestamp;
17011 SELECT f1 into x from t2 limit 1;
17017 DROP PROCEDURE IF EXISTS sp1;
17020 CREATE PROCEDURE sp1()
17023 SELECT f1 into x from t2 limit 1;
17029 DROP PROCEDURE IF EXISTS sp1;
17032 CREATE PROCEDURE sp1()
17035 SELECT f1 into x from t2 limit 1;
17041 DROP PROCEDURE IF EXISTS sp1;
17044 CREATE PROCEDURE sp1()
17047 SELECT f1 into x from t2 limit 1;
17053 DROP PROCEDURE IF EXISTS sp1;
17056 CREATE PROCEDURE sp1()
17058 declare x enum("1enum", "2enum");
17059 SELECT f1 into x from t2 limit 1;
17065 DROP PROCEDURE IF EXISTS sp1;
17068 CREATE PROCEDURE sp1()
17070 declare x set("1set", "2set");
17071 SELECT f1 into x from t2 limit 1;
17078 DROP PROCEDURE sp1;
17081 # ------------------------------------------------------------------------------
17082 let $message= Testcase 4.2.38:;
17083 --source include/show_msg80.inc
17085 # testcase: ensure that the declare condition for statement can declare a properly
17086 # named condition for every possible sqlstate and mysql-specific error code.
17088 DROP PROCEDURE IF EXISTS sp1;
17091 CREATE PROCEDURE sp1()
17093 declare notable condition for sqlstate '42S02';
17094 declare continue handler for notable set @x2=1;
17096 insert into t2(f1) values (1);
17098 insert into t2(f1) values (1);
17106 DROP PROCEDURE sp1;
17110 # ------------------------------------------------------------------------------
17111 let $message= Testcase 4.2.39:;
17112 --source include/show_msg80.inc
17114 # testcase: ensure that no two conditions declared with the same scope may have the
17115 # same condition name (same condition name in same scope)
17117 DROP PROCEDURE IF EXISTS sp1;
17120 --error ER_SP_DUP_COND
17121 CREATE PROCEDURE sp1()
17123 declare cond1 condition for sqlstate '42000';
17124 declare cond1 condition for sqlstate '23000';
17125 declare continue handler for cond1 set @var2 = 1;
17126 insert into tnull values(1);
17131 # ------------------------------------------------------------------------------
17132 let $message= Testcase 4.2.41:;
17133 --source include/show_msg80.inc
17135 # testcase: ensure that every sqlstate value declared with a declare condition for
17136 # statement is a character string that is 5 character.
17138 DROP PROCEDURE IF EXISTS sp1;
17141 --error ER_SP_BAD_SQLSTATE
17142 CREATE PROCEDURE sp1()
17144 declare cond1 condition for sqlstate '1';
17145 declare continue handler for cond1 set @var2 = 1;
17146 insert into tnull values( 1);
17151 DROP PROCEDURE IF EXISTS sp1;
17155 --error ER_SP_BAD_SQLSTATE
17156 CREATE PROCEDURE sp1()
17158 declare cond1 condition for sqlstate '12';
17159 declare continue handler for cond1 set @var2 = 1;
17160 insert into tnull values( 1);
17165 DROP PROCEDURE IF EXISTS sp1;
17169 --error ER_SP_BAD_SQLSTATE
17170 CREATE PROCEDURE sp1()
17172 declare cond1 condition for sqlstate '123';
17173 declare continue handler for cond1 set @var2 = 1;
17174 insert into tnull values( 1);
17179 DROP PROCEDURE IF EXISTS sp1;
17183 --error ER_SP_BAD_SQLSTATE
17184 CREATE PROCEDURE sp1()
17186 declare cond1 condition for sqlstate '1234';
17187 declare continue handler for cond1 set @var2 = 1;
17188 insert into tnull values( 1);
17193 DROP PROCEDURE IF EXISTS sp1;
17197 --error ER_SP_BAD_SQLSTATE
17198 CREATE PROCEDURE sp1()
17200 declare cond1 condition for sqlstate '123456';
17201 declare continue handler for cond1 set @var2 = 1;
17202 insert into tnull values( 1);
17207 # ------------------------------------------------------------------------------
17208 let $message= Testcase 4.2.42:;
17209 --source include/show_msg80.inc
17211 # testcase: ensure that the declare condition for statement cannot declare a
17212 # condition for an invalid sqlstate.
17216 DROP PROCEDURE IF EXISTS sp1;
17220 --error ER_SP_BAD_SQLSTATE
17221 CREATE PROCEDURE sp1()
17223 declare cond1 condition for sqlstate 'abcdefghi';
17224 declare continue handler for cond1 set @var2 = 1;
17225 insert into tnull values( 1);
17230 DROP PROCEDURE IF EXISTS sp1;
17234 --error ER_SP_BAD_SQLSTATE
17235 CREATE PROCEDURE sp1()
17237 declare cond1 condition for sqlstate '42000test';
17238 declare continue handler for cond1 set @var2 = 1;
17239 insert into tnull values( 1);
17244 DROP PROCEDURE IF EXISTS sp1;
17248 --error ER_SP_BAD_SQLSTATE
17249 CREATE PROCEDURE sp1()
17251 declare cond1 condition for sqlstate '00000@#$%^&';
17252 declare continue handler for cond1 set @var2 = 1;
17253 insert into tnull values( 1);
17258 DROP PROCEDURE IF EXISTS sp1;
17262 --error ER_SP_BAD_SQLSTATE
17263 CREATE PROCEDURE sp1()
17265 declare cond1 condition for sqlstate '123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890';
17266 declare continue handler for cond1 set @var2 = 1;
17267 insert into tnull values( 1);
17272 DROP PROCEDURE IF EXISTS sp1;
17276 --error ER_SP_BAD_SQLSTATE
17277 CREATE PROCEDURE sp1()
17279 declare cond1 condition for sqlstate 'null';
17280 declare continue handler for cond1 set @var2 = 1;
17281 insert into tnull values( 1);
17286 DROP PROCEDURE IF EXISTS sp1;
17290 --error ER_SP_BAD_SQLSTATE
17291 CREATE PROCEDURE sp1()
17293 declare cond1 condition for sqlstate ' ';
17294 declare continue handler for cond1 set @var2 = 1;
17295 insert into tnull values( 1);
17300 DROP PROCEDURE IF EXISTS sp1;
17304 --error ER_PARSE_ERROR
17305 CREATE PROCEDURE sp1()
17307 declare cond1 condition for sqlstate 1234567890;
17308 declare continue handler for cond1 set @var2 = 1;
17309 insert into tnull values( 1);
17314 DROP PROCEDURE IF EXISTS sp1;
17318 --error ER_SP_BAD_SQLSTATE
17319 CREATE PROCEDURE sp1()
17321 declare cond1 condition for sqlstate '2005-03-03';
17322 declare continue handler for cond1 set @var2 = 1;
17323 insert into tnull values( 1);
17328 # ------------------------------------------------------------------------------
17329 let $message= Testcase 4.2.43:;
17330 --source include/show_msg80.inc
17332 # testcase: ensure that the declare condition for statement cannot declare a
17333 # condition for the successful completion sqlstate: 00000.
17336 DROP PROCEDURE IF EXISTS sp1;
17339 --echo expect failure, SQLSTATE 00000 is not an acceptable value
17340 --echo for an SP's handler
17342 --ERROR ER_SP_BAD_SQLSTATE
17343 CREATE PROCEDURE sp1()
17345 declare cond1 condition for sqlstate '00000';
17346 declare continue handler for cond1 set @var2 = 1;
17352 --echo ensure SP doesn't exist
17353 --ERROR ER_SP_DOES_NOT_EXIST
17358 DROP PROCEDURE IF EXISTS sp1;
17361 # ------------------------------------------------------------------------------
17362 let $message= Testcase 4.2.45:;
17363 --source include/show_msg80.inc
17365 # testcase: ensure that within the same scope, no two handlers may be declared for the same condition.
17369 DROP PROCEDURE IF EXISTS sp1;
17373 --error ER_SP_DUP_HANDLER
17374 CREATE PROCEDURE handler1 ()
17376 declare continue handler for sqlstate '23000' set @varr1 = 5;
17377 declare continue handler for sqlstate '23000' set @varr3 = 7;
17381 DROP PROCEDURE IF EXISTS handler1;
17384 --error ER_SP_DUP_HANDLER
17385 CREATE PROCEDURE handler1 ()
17387 declare mycondition condition for sqlstate '23000';
17388 declare continue handler for mycondition set @varr3 = 7;
17389 declare continue handler for sqlstate '23000' set @varr3 = 7;
17394 # ------------------------------------------------------------------------------
17395 let $message= Testcase 4.2.46:;
17396 --source include/show_msg80.inc
17398 # testcase: ensure that every sqlstate value declared with a declare handler for
17399 # statement is a character string that is 5 characters long.
17402 DROP PROCEDURE IF EXISTS sp1;
17406 --error ER_SP_BAD_SQLSTATE
17407 CREATE PROCEDURE sp1()
17409 declare continue handler for sqlstate '1' set @var2 = 1;
17414 DROP PROCEDURE IF EXISTS sp1;
17418 --error ER_SP_BAD_SQLSTATE
17419 CREATE PROCEDURE sp1()
17421 declare continue handler for sqlstate '12' set @var2 = 1;
17426 DROP PROCEDURE IF EXISTS sp1;
17430 --error ER_SP_BAD_SQLSTATE
17431 CREATE PROCEDURE sp1()
17433 declare continue handler for sqlstate '123' set @var2 = 1;
17438 DROP PROCEDURE IF EXISTS sp1;
17442 --error ER_SP_BAD_SQLSTATE
17443 CREATE PROCEDURE sp1()
17445 declare continue handler for sqlstate '1234' set @var2 = 1;
17450 DROP PROCEDURE IF EXISTS sp1;
17454 --error ER_SP_BAD_SQLSTATE
17455 CREATE PROCEDURE sp1()
17457 declare continue handler for sqlstate '123456' set @var2 = 1;
17462 # ------------------------------------------------------------------------------
17463 let $message= Testcase 4.2.47:;
17464 --source include/show_msg80.inc
17466 # testcase: ensure that the declare handler for statement cannot declare a condition
17467 # for an invalid sqlstate.
17470 DROP PROCEDURE IF EXISTS sp1;
17474 --error ER_SP_BAD_SQLSTATE
17475 CREATE PROCEDURE sp1()
17477 declare continue handler for sqlstate '42s0200test' set @var2 = 1;
17478 insert into tnull values( 1);
17484 #drop table IF EXISTS tnull;
17487 # ------------------------------------------------------------------------------
17488 let $message= Testcase 4.2.48:;
17489 --source include/show_msg80.inc
17491 # testcase: ensure that the declare handler for statement cannot declare a condition
17492 # for the successful completion sqlstate: 00000.
17495 DROP PROCEDURE IF EXISTS sp1;
17498 --echo This creation should fail, SQLSTATE 00000 is unacceptable
17499 --ERROR ER_SP_BAD_SQLSTATE
17501 CREATE PROCEDURE sp1()
17503 declare continue handler for sqlstate '00000' set @var2 = 1;
17509 --echo Verify SP wasn't created
17510 --ERROR ER_SP_DOES_NOT_EXIST
17515 DROP PROCEDURE IF EXISTSsp1;
17519 # ------------------------------------------------------------------------------
17520 let $message= Testcase 4.2.52:;
17521 --source include/show_msg80.inc
17523 # testcase: ensure that no two cursors in a stored procedure can have the same name.
17526 DROP PROCEDURE IF EXISTS sp1;
17530 --error ER_SP_DUP_CURS
17531 CREATE PROCEDURE sp1( )
17533 declare done int default 0;
17534 declare count integer default 20;
17535 declare newf1 char(20);
17536 declare newf2 char(20);
17537 declare newf3 char(20);
17538 declare newf4 integer;
17539 declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
17540 declare cur1 cursor for SELECT f1, f2 from t2;
17541 declare continue handler for sqlstate '02000' set done = 1;
17544 set count = count - 1;
17546 fetch cur1 into newf1, newlf1, newf3, newsal;
17547 set count = count - 1;
17555 # ------------------------------------------------------------------------------
17556 let $message= Testcase 4.2.53:;
17557 --source include/show_msg80.inc
17559 # testcase: ensure that a cursor declaration may not include a SELECT into statement.
17562 DROP PROCEDURE IF EXISTS sp1;
17566 --error ER_SP_BAD_CURSOR_SELECT
17567 CREATE PROCEDURE sp1( )
17569 declare done int default 0;
17570 declare count integer default 20;
17571 declare newf1 char(20);
17572 declare newf2 char(20);
17573 declare newf3 char(20);
17574 declare newf4 integer;
17575 declare cur1 cursor for SELECT f1, lf1, f3, f4 into @w, @x, @y, @z from t2;
17576 declare continue handler for sqlstate '02000' set done = 1;
17579 set count = count - 1;
17581 fetch cur1 into newf1, newlf1, newf3, newsal;
17582 set count = count - 1;
17590 # ------------------------------------------------------------------------------
17591 let $message= Testcase 4.2.54:;
17592 --source include/show_msg80.inc
17594 # testcase: ensure that a cursor declaration that includes an order by
17595 # claUSE may not be an updateable cursor.
17597 #FIXME: testcase empty / missing
17599 # ------------------------------------------------------------------------------
17600 let $message= Testcase 4.2.55:;
17601 --source include/show_msg80.inc
17603 # testcase: ensure that open <cursor name> fails unless a cursor with
17604 # the same name has already been declared.
17607 DROP PROCEDURE IF EXISTS sp1;
17611 --error ER_SP_CURSOR_MISMATCH
17612 CREATE PROCEDURE sp1( )
17614 declare done int default 0;
17615 declare count integer default 20;
17616 declare newf1 char(20);
17617 declare newf2 char(20);
17618 declare newf3 char(20);
17619 declare newf4 integer;
17620 declare continue handler for sqlstate '02000' set done = 1;
17623 set count = count - 1;
17625 fetch cur1 into newf1, newf2, newf4, newf3;
17626 set count = count - 1;
17634 DROP PROCEDURE IF EXISTS sp1;
17638 CREATE PROCEDURE sp1( )
17640 declare done int default 0;
17641 declare count integer default 0;
17642 declare newf1 char(20);
17643 declare newf2 char(20);
17644 declare newf3 char(20);
17645 declare newf4 integer;
17646 declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
17647 declare continue handler for sqlstate '02000' set done = 1;
17652 set count = count - 1;
17654 fetch cur1 into newf1, newf2, newf3, newf4;
17655 set count = count - 1;
17663 --error ER_SP_CURSOR_ALREADY_OPEN
17667 # ------------------------------------------------------------------------------
17668 let $message= Testcase 4.2.56:;
17669 --source include/show_msg80.inc
17671 # testcase: ensure that open <cursor name> fails if the same cursor is currently already open.
17673 DROP PROCEDURE IF EXISTS sp1;
17676 CREATE PROCEDURE sp1( )
17678 declare done int default 0;
17679 declare count integer default 20;
17680 declare newf1 char(20);
17681 declare newf2 char(20);
17682 declare newf3 char(20);
17683 declare newf4 integer;
17684 declare cur1 cursor for SELECT f1, f2, f4, f5 from t2;
17685 declare continue handler for sqlstate '02000' set done = 1;
17689 set count = count - 1;
17691 fetch cur1 into newf1, newf2, newf4, newf3;
17692 set count = count - 1;
17699 --error ER_SP_CURSOR_ALREADY_OPEN
17703 DROP PROCEDURE sp1;
17707 # ------------------------------------------------------------------------------
17708 let $message= Testcase 4.2.57:;
17709 --source include/show_msg80.inc
17711 # testcase: ensure that fetch <cursor name> fails unless a cursor with the same name is already open.
17713 DROP PROCEDURE IF EXISTS sp1;
17716 CREATE PROCEDURE sp1( )
17718 declare done int default 0;
17719 declare count integer default 20;
17720 declare newf1 char(20);
17721 declare newf2 char(20);
17722 declare newf3 char(20);
17723 declare newf4 integer;
17724 declare cur1 cursor for SELECT f1, f2, f4, f5 from t2;
17725 declare cur2 cursor for SELECT f1, f2 from t2;
17726 declare continue handler for sqlstate '02000' set done = 1;
17729 set count = count - 1;
17731 fetch cur1 into newf1, newf2, newf4, newf3;
17732 set count = count - 1;
17739 --error ER_SP_CURSOR_NOT_OPEN
17743 DROP PROCEDURE sp1;
17750 # ------------------------------------------------------------------------------
17751 let $message= Testcase 4.2.59:;
17752 --source include/show_msg80.inc
17754 # testcase: ensure that fetch <cursor name> fails with an appropriate error message
17755 # if it is executed before the cursor has been opened.
17758 DROP PROCEDURE IF EXISTS sp1;
17761 CREATE PROCEDURE sp1( )
17763 declare done int default 0;
17764 declare count integer default 20;
17765 declare newf1 char(20);
17766 declare newf2 char(20);
17767 declare newf3 char(20);
17768 declare newf4 integer;
17769 declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 20, 10;
17770 declare continue handler for sqlstate '02000' set done = 1;
17772 set count = count - 1;
17774 fetch cur1 into newf1, newf2, newf4, newf3;
17775 set count = count - 1;
17783 --error ER_SP_CURSOR_NOT_OPEN
17786 DROP PROCEDURE IF EXISTS sp1;
17789 CREATE PROCEDURE sp1( )
17791 declare done int default 0;
17792 declare count integer default 10;
17793 declare newf1 char(20);
17794 declare newf2 char(20);
17795 declare newf3 char(20);
17796 declare newf4 integer;
17797 declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
17798 declare continue handler for sqlstate '02000' set done = 1;
17801 declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
17802 set count = count - 1;
17804 fetch cur1 into newf1, newf2, newf3, newf4;
17805 set count = count - 1;
17814 --error ER_SP_CURSOR_NOT_OPEN
17818 DROP PROCEDURE sp1;
17821 # ------------------------------------------------------------------------------
17822 let $message= Testcase 4.2.60:;
17823 --source include/show_msg80.inc
17825 # testcase: ensure that fetch <cursor name> fails with an appropriate error message
17826 # if it is executed after the cursor has been closed.
17828 DROP PROCEDURE IF EXISTS sp1;
17831 CREATE PROCEDURE sp1( )
17833 declare done int default 0;
17834 declare count integer default 20;
17835 declare newf1 char(20);
17836 declare newf2 char(20);
17837 declare newf3 char(20);
17838 declare newf4 integer;
17839 declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 20, 10;
17840 declare continue handler for sqlstate '02000' set done = 1;
17844 set count = count - 1;
17846 fetch cur1 into newf1, newf2, newf4, newf3;
17847 set count = count - 1;
17853 --error ER_SP_CURSOR_NOT_OPEN
17856 DROP PROCEDURE IF EXISTS sp1;
17859 CREATE PROCEDURE sp1( )
17861 declare done int default 0;
17862 declare count integer default 20;
17863 declare newf1 char(20);
17864 declare newf2 char(20);
17865 declare newf3 char(20);
17866 declare newf4 integer;
17867 declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
17868 declare continue handler for sqlstate '02000' set done = 1;
17872 declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
17875 fetch cur1 into newf1, newf2, newf3, newf4;
17879 --error ER_SP_CURSOR_NOT_OPEN
17883 DROP PROCEDURE sp1;
17888 # ------------------------------------------------------------------------------
17889 let $message= Testcase 4.2.62:;
17890 --source include/show_msg80.inc
17892 # testcase: ensure that fetch <cursor name> fails with an appropriate error message
17893 # if the data type of the column values being fetched are not appropriate
17894 # for the matching fetch variables to which the data is being assigned.
17896 DROP PROCEDURE IF EXISTS sp1;
17899 CREATE PROCEDURE sp1( )
17901 declare done int default 0;
17902 declare count integer default 20;
17903 declare newf2 char(20);
17904 declare newf1 int1;
17905 declare cur1 cursor for SELECT f1, f3 from t2 limit 20, 10;
17906 declare continue handler for sqlstate '02000' set done = 1;
17909 set count = count - 1;
17911 fetch cur1 into newf1, newf2;
17915 set count = count - 1;
17922 #This test seems to make no sense, as always NULL may be set.
17923 #--error ER_SP_CURSOR_NOT_OPEN
17927 DROP PROCEDURE sp1;
17931 # ------------------------------------------------------------------------------
17932 let $message= Testcase 4.2.63:;
17933 --source include/show_msg80.inc
17935 # testcase: ensure that close <cursor name> fails unless a cursor with the same name is already open.
17937 DROP PROCEDURE IF EXISTS sp1;
17940 CREATE PROCEDURE sp1()
17942 declare done int default 0;
17943 declare count integer default 20;
17944 declare newf1 char(20);
17945 declare newf2 char(20);
17946 declare newf3 char(20);
17947 declare newf4 integer;
17948 declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 20, 10;
17949 declare continue handler for sqlstate '02000' set done = 1;
17953 set count = count - 1;
17955 fetch cur1 into newf1, newf2, newf4, newf3;
17956 set count = count - 1;
17963 --error ER_SP_CURSOR_NOT_OPEN
17966 DROP PROCEDURE IF EXISTS sp1;
17969 CREATE PROCEDURE sp1( )
17971 declare done int default 0;
17972 declare count integer default 0;
17973 declare newf1 char(20);
17974 declare newf2 char(20);
17975 declare newf3 char(20);
17976 declare newf4 integer;
17977 declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
17978 declare continue handler for sqlstate '02000' set done = 1;
17980 declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
17987 --error ER_SP_CURSOR_NOT_OPEN
17991 DROP PROCEDURE sp1;
17995 # ------------------------------------------------------------------------------
17996 let $message= Testcase 4.2.64:;
17997 --source include/show_msg80.inc
17999 # testcase: ensure that all cursors are closed when a transaction terminates with a commit statement.
18001 DROP PROCEDURE IF EXISTS sp1;
18004 CREATE PROCEDURE sp1( )
18006 declare done int default 0;
18007 declare count integer default 20;
18008 declare newf1 char(20);
18009 declare newf2 char(20);
18010 declare newf3 char(20);
18011 declare newf4 integer;
18012 declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 20, 10;
18016 fetch cur1 into newf1, newf2, newf4, newf3;
18018 fetch cur1 into newf1, newf2, newf4, newf3;
18023 --error ER_SP_FETCH_NO_DATA
18027 DROP PROCEDURE sp1;
18031 # ------------------------------------------------------------------------------
18032 let $message= Testcase 4.2.65:;
18033 --source include/show_msg80.inc
18035 # testcase: ensure that all cursors are closed when a transaction terminates with a rollback statement.
18038 DROP PROCEDURE IF EXISTS sp1;
18041 CREATE PROCEDURE sp1( )
18043 declare done int default 0;
18044 declare count integer default 20;
18045 declare newf1 char(20);
18046 declare newf2 char(20);
18047 declare newf3 char(20);
18048 declare newf4 integer;
18049 declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 20, 10;
18052 fetch cur1 into newf1, newf2, newf4, newf3;
18054 fetch cur1 into newf1, newf2, newf4, newf3;
18060 --error ER_SP_FETCH_NO_DATA
18064 DROP PROCEDURE sp1;
18067 # ------------------------------------------------------------------------------
18068 let $message= Testcase 4.2.66:;
18069 --source include/show_msg80.inc
18071 # testcase: ensure that the result set of the cursor that has been closed is not
18072 # longer available to the fetch statement.
18075 DROP PROCEDURE IF EXISTS sp1;
18078 CREATE PROCEDURE sp1( )
18080 declare done int default 0;
18081 declare count integer default 20;
18082 declare newf1 char(20);
18083 declare newf2 char(20);
18084 declare newf3 char(20);
18085 declare newf4 integer;
18086 declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 20, 10;
18087 declare continue handler for sqlstate '02000' set done = 1;
18090 set count = count - 1;
18092 fetch cur1 into newf1, newf2, newf4, newf3;
18093 set count = count - 1;
18096 fetch cur1 into newf1, newf2, newf4, newf3;
18101 --error ER_SP_CURSOR_NOT_OPEN
18105 DROP PROCEDURE sp1;
18109 # ------------------------------------------------------------------------------
18110 let $message= Testcase 4.2.67:;
18111 --source include/show_msg80.inc
18113 # testcase: ensure that cursor declared within a compound statement is closed when
18114 # that compound statement ends (without cursor close statement)
18117 DROP PROCEDURE IF EXISTS sp1;
18120 CREATE PROCEDURE sp1( )
18122 declare done int default 0;
18123 declare count integer default 20;
18124 declare newf1 char(20);
18125 declare newf2 char(20);
18126 declare newf3 char(20);
18127 declare newf4 integer;
18128 declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 20, 10;
18129 declare continue handler for sqlstate '02000' set done = 1;
18132 # set count = count - 1;
18133 # while count > 0 do
18134 fetch cur1 into newf1, newf2, newf4, newf3;
18135 # set count = count - 1;
18138 fetch cur1 into newf1, newf2, newf4, newf3;
18142 #--error ER_SP_FETCH_NO_DATA
18146 DROP PROCEDURE sp1;
18153 # ------------------------------------------------------------------------------
18154 let $message= Testcase 4.2.70:;
18155 --source include/show_msg80.inc
18157 # testcase: ensure that multiple cursors, nested within multiple compound statements
18158 # within a stored procedure always act correctly and return the expected result.
18160 create table temp1( f1 char(20), f2 char(20), f3 int, f4 char(20) );
18161 create table temp2( f1 char(20), f2 char(20), f3 int, f4 char(20) );
18163 DROP PROCEDURE IF EXISTS sp1;
18166 CREATE PROCEDURE sp1( )
18168 declare done int default 0;
18169 declare count integer default 20;
18170 declare newf1 char(20);
18171 declare newf2 char(20);
18172 declare newf3 char(20);
18173 declare newf4 integer;
18174 declare newf21 char(20);
18175 declare newf22 char(20);
18176 declare newf23 char(20);
18177 declare newf24 integer;
18178 declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 7, 1;
18179 declare cur2 cursor for SELECT f1, f2, f4, f5 from t2 limit 15, 1;
18180 declare continue handler for sqlstate '02000' set done = 1;
18187 fetch cur1 into newf1, newf2, newf4, newf3;
18188 set count = count - 1;
18191 insert into temp1 values(newf1, newf2, newf4, newf3);
18197 fetch cur2 into newf21, newf22, newf24, newf23;
18198 set count = count - 1;
18201 insert into temp2 values(newf21, newf22, newf24, newf23);
18208 SELECT count(*) from temp1;
18209 SELECT * from temp2;
18212 DROP PROCEDURE sp1;
18217 # ==============================================================================
18218 let $message= Section 3.1.3 - Syntax checks for the stored procedure-specific flow control statements
18219 . IF, CASE, LOOP, LEAVE, ITERATE, REPEAT, WHILE:;
18220 --source include/show_msg80.inc
18224 # ------------------------------------------------------------------------------
18225 let $message= Testcase 4.3.1:;
18226 --source include/show_msg80.inc
18228 # testcase : ensure that all clauses that should be supported are supported
18231 DROP PROCEDURE IF EXISTS sp1;
18232 DROP TABLE IF EXISTS res_t3_itisalongname_1381742_itsaverylongname_1381742;
18235 #FIXME: change back to $engine_type for INNODB and MYISAM, but MEMORY doesn't support this
18236 --replace_result $engine_type <engine_to_be_tested>
18238 CREATE TABLE res_t3_itisalongname_1381742_itsaverylongname_1381742(
18239 middleinitial CHAR, lastname VARCHAR(50),
18240 age_averylongfieldname_averylongname_1234569 INT, COMMENT VARCHAR(100))
18241 ENGINE=$engine_type;
18243 INSERT INTO res_t3_itisalongname_1381742_itsaverylongname_1381742
18244 VALUES('a', 'aaaaaaaaaabbbbbbbbc', 0, 'default');
18247 CREATE PROCEDURE sp1(a INT)
18249 DECLARE itisjustaverylargevariablename_xxxxxxxxxxxxxxxxxxxxx CHAR;
18250 DECLARE itisjustaverylargevarcharvariablename_xxxxxxxxxxxxxxxxxxxxx VARCHAR(100);
18251 DECLARE itisjustamediumsizeintintegervariablename INTEGER;
18252 SET itisjustaverylargevariablename_xxxxxxxxxxxxxxxxxxxxx = 'b';
18253 SET itisjustaverylargevarcharvariablename_xxxxxxxxxxxxxxxxxxxxx
18254 = 'oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@%';
18255 SET itisjustamediumsizeintintegervariablename = 5;
18259 SET @comment = 'value of a is greater than 100';
18260 ELSEIF a < 100 THEN
18262 SET @comment = 'value of a is less than 50';
18264 SET @comment = 'value of a is less than 25';
18266 SET @comment = 'value of a is greater than 50 and less than 100';
18269 SET @comment = 'value of a is 100';
18272 IF itisjustamediumsizeintintegervariablename = 0 THEN LEAVE label1;
18274 INSERT INTO res_t3_itisalongname_1381742_itsaverylongname_1381742
18275 VALUES(itisjustaverylargevariablename_xxxxxxxxxxxxxxxxxxxxx,
18276 CONCAT(itisjustaverylargevarcharvariablename_xxxxxxxxxxxxxxxxxxxxx,
18277 ' ', a), a, @comment);
18278 SET itisjustamediumsizeintintegervariablename
18279 = itisjustamediumsizeintintegervariablename - 1;
18297 SELECT * from res_t3_itisalongname_1381742_itsaverylongname_1381742
18298 ORDER BY middleinitial, lastname, age_averylongfieldname_averylongname_1234569;
18301 drop table res_t3_itisalongname_1381742_itsaverylongname_1381742;
18302 DROP PROCEDURE sp1;
18305 # ------------------------------------------------------------------------------
18306 let $message= Testcase 4.3.2:;
18307 --source include/show_msg80.inc
18309 # testcase: ensure that all clauses that should be supported are supported (case, while, repeat)
18312 DROP PROCEDURE IF EXISTS sp2;
18316 CREATE PROCEDURE sp2( action char(20) )
18318 declare v1 char(20);
18319 declare v2 char(20);
18320 declare count integer;
18322 set v2 = 'address';
18324 case when action = 'delete' then
18325 insert into t3 values(v1, v2, count);
18326 delete from t3 where f1=v1;
18327 when action = 'insert' then
18329 insert into t3 values(v1, v2, count);
18330 set count = count + 1;
18335 insert into t3 values(v1, v2, count);
18336 if count > 5 then leave label1;
18338 set count = count + 1;
18343 insert into t3 values(v1, v2, count);
18344 set count = count + 1;
18347 label1: while count < 5 do
18348 insert into t3 values(v1, v2, count);
18349 if count > 5 then leave label1;
18351 set count = count + 1;
18354 set @dummystring = 'temp value';
18359 CALL sp2( 'insert' );
18361 SELECT * from t3 where f3 <=5 && f3 >= 0;
18363 SELECT count(*) from t3;
18364 CALL sp2( 'delete' );
18365 SELECT count(*) from t3;
18368 SELECT @dummystring;
18371 DROP PROCEDURE sp2;
18374 # ------------------------------------------------------------------------------
18375 let $message= Testcase 4.1.2:
18377 Ensure that all sub-clauses that should not be supported are disallowed with
18378 an appropriate error message. (case);
18379 --source include/show_msg80.inc
18383 drop table IF EXISTS res_t3_itisalongname_1381742_itsaverylongname_1381742;
18384 DROP PROCEDURE IF EXISTS sp3;
18387 create table res_t3_itisalongname_1381742_itsaverylongname_1381742 (name char, address varchar(50), age_averylongfieldname_averylongname_1234569 smallint);
18390 --error ER_PARSE_ERROR
18391 CREATE PROCEDURE sp3( action char(20) )
18394 when action = 'delete' then
18395 delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
18397 set @dummystring = 'temp value';
18404 DROP PROCEDURE IF EXISTS sp3;
18408 --error ER_PARSE_ERROR
18409 CREATE PROCEDURE sp3( action char(20) )
18413 action = 'delete' then
18414 delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
18416 set @dummystring = 'temp value';
18424 DROP PROCEDURE IF EXISTS sp3;
18428 --error ER_PARSE_ERROR
18429 CREATE PROCEDURE sp3( action char(20) )
18432 when action = 'delete' then
18433 delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
18434 then action = 'truncate' when
18435 truncate from res_t3_itisalongname_1381742_itsaverylongname_1381742;
18437 set @dummystring = 'temp value';
18444 DROP PROCEDURE IF EXISTS sp3;
18448 --error ER_PARSE_ERROR
18449 CREATE PROCEDURE sp3( action char(20) )
18451 declare v1 char(20);
18452 declare v2 char(20);
18453 declare count integer;
18460 delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
18466 DROP PROCEDURE IF EXISTS sp3;
18471 CREATE PROCEDURE sp3( action char(20) )
18473 declare count int default 1;
18474 declare done int default 0;
18475 declare continue handler for sqlstate 'HY000' set done=1;
18478 when action = 'delete' then
18480 delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
18482 when action = 'insert' then
18483 label2: while count < 10 do
18485 insert into res_t3_itisalongname_1381742_itsaverylongname_1381742
18486 values('xxxxxxxxxxxxxxxxxxx', '1231230981(*&(*&)(*&(', count);
18487 set count = count + 1;
18494 set @dummystring = 'temp value';
18501 SELECT count, done;
18505 CALL sp3('insert');
18508 DROP PROCEDURE sp3;
18509 drop table res_t3_itisalongname_1381742_itsaverylongname_1381742;
18512 # ------------------------------------------------------------------------------
18513 let $message= Testcase 4.3.4:;
18514 --source include/show_msg80.inc
18516 # testcase: ensure that all supported sub-clauses are supported only in the correct order (if)
18519 DROP PROCEDURE IF EXISTS sp4;
18523 --error ER_PARSE_ERROR
18524 CREATE PROCEDURE sp4()
18529 if count > 10 then leave label1;
18531 set count = count + 1;
18532 elseif count > 20 then
18541 DROP PROCEDURE IF EXISTS sp4;
18545 --error ER_PARSE_ERROR
18546 CREATE PROCEDURE sp4()
18552 set count = count + 1;
18562 DROP PROCEDURE IF EXISTS sp4;
18566 --error ER_PARSE_ERROR
18567 CREATE PROCEDURE sp4()
18572 elseif count > 20 then
18583 DROP PROCEDURE IF EXISTS sp4;
18587 --error ER_PARSE_ERROR
18588 CREATE PROCEDURE sp4()
18604 DROP PROCEDURE IF EXISTS sp4;
18608 --error ER_PARSE_ERROR
18609 CREATE PROCEDURE sp4()
18611 declare i int default 10;
18628 DROP PROCEDURE IF EXISTS sp4;
18632 CREATE PROCEDURE sp4()
18634 declare idummy int default 10;
18641 declare idummy2 int default 10;
18656 --error ER_BAD_FIELD_ERROR
18660 DROP PROCEDURE sp4;
18663 # ------------------------------------------------------------------------------
18664 let $message= Testcase 4.3.5:;
18665 --source include/show_msg80.inc
18667 #test case: ensure that all supported sub-clauses are supported only in the correct order (case)
18670 DROP PROCEDURE IF EXISTS sp5;
18674 --error ER_PARSE_ERROR
18675 CREATE PROCEDURE sp5()
18677 declare count integer default 1;
18682 when count = 1 then
18683 set count = count + 1;
18689 DROP PROCEDURE IF EXISTS sp5;
18693 --error ER_PARSE_ERROR
18694 CREATE PROCEDURE sp5(count int)
18696 when case count = 1 then
18698 when count = 2 then
18699 set count = count + 1;
18705 DROP PROCEDURE IF EXISTS sp5;
18709 --error ER_PARSE_ERROR
18710 CREATE PROCEDURE sp5(count int)
18713 when count = 1 then
18715 when count = 2 then
18716 set count = count + 1;
18722 DROP PROCEDURE IF EXISTS sp5;
18726 --error ER_PARSE_ERROR
18727 CREATE PROCEDURE sp5(count int)
18729 when count = 1 then
18731 case when count = 2 then
18732 set count = count + 1;
18738 # ------------------------------------------------------------------------------
18739 let $message= Testcase 4.3.6:
18741 Ensure that all supported sub-clauses are supported only in the correct order (repeat).;
18742 --source include/show_msg80.inc
18745 DROP PROCEDURE IF EXISTS sp6;
18749 --error ER_PARSE_ERROR
18750 CREATE PROCEDURE sp6()
18752 declare count1 integer default 1;
18754 set count1 = count1 + 1;
18755 if count1 > 5 then leave label1; END if;
18762 DROP PROCEDURE IF EXISTS sp6;
18766 --error ER_PARSE_ERROR
18767 CREATE PROCEDURE sp6()
18769 declare count1 integer default 1;
18770 label1: until count1 > 5
18772 set count1 = count1 + 1;
18773 if count1 > 5 then leave label1; END if;
18779 DROP PROCEDURE IF EXISTS sp6;
18783 --error ER_PARSE_ERROR
18784 CREATE PROCEDURE sp6()
18786 declare count1 integer default 1;
18788 set count1 = count1 + 1;
18789 if count1 > 5 then leave label1; END if;
18796 DROP PROCEDURE IF EXISTS sp6;
18800 --error ER_PARSE_ERROR
18801 CREATE PROCEDURE sp6()
18803 declare count1 integer default 1;
18805 set count1 = count1 + 1;
18806 if count1 > 5 then leave label1; END if;
18812 DROP PROCEDURE IF EXISTS sp6;
18816 --error ER_PARSE_ERROR
18817 CREATE PROCEDURE sp6()
18819 declare count1 integer default 1;
18821 set count1 = count1 + 1;
18822 if count1 > 5 then leave label1; END if;
18830 DROP PROCEDURE IF EXISTS sp6;
18834 CREATE PROCEDURE sp6()
18836 declare count1 integer default 1;
18838 set count1 = count1-1;
18848 DROP PROCEDURE sp6;
18851 # ------------------------------------------------------------------------------
18852 let $message= Testcase 4.3.7:;
18853 --source include/show_msg80.inc
18855 # testcase: ensure that an appropriate error message is returned if a
18856 # sub claUSE is out-of-order in a stored procedure definition (loop, if, iterate, leave).
18859 DROP PROCEDURE IF EXISTS sp7;
18863 --error ER_PARSE_ERROR
18864 CREATE PROCEDURE sp7()
18867 set @dummystring = 'temp value';
18868 if count > 10 then leave label1;
18876 DROP PROCEDURE IF EXISTS sp7;
18880 --error ER_PARSE_ERROR
18881 CREATE PROCEDURE sp7()
18884 set @dummystring = 'temp value';
18885 if count > 10 then leave label1;
18893 DROP PROCEDURE IF EXISTS sp7;
18897 --error ER_PARSE_ERROR
18898 CREATE PROCEDURE sp7()
18900 label1: iterate label1;
18902 set @dummystring = 'temp value';
18903 if count > 10 then leave label1;
18911 # ------------------------------------------------------------------------------
18912 let $message= Testcase 4.3.8:;
18913 --source include/show_msg80.inc
18915 # testcase: ensure that an appropriate error message is returned if a sub claUSE is
18916 # out-of-order in a stored procedure definition. (while)
18919 DROP PROCEDURE IF EXISTS sp8;
18923 --error ER_PARSE_ERROR
18924 CREATE PROCEDURE sp8()
18926 declare v1 int default 5;
18934 DROP PROCEDURE IF EXISTS sp8;
18938 --error ER_PARSE_ERROR
18939 CREATE PROCEDURE sp8()
18941 declare v1 int default 5;
18949 DROP PROCEDURE IF EXISTS sp8;
18953 --error ER_PARSE_ERROR
18954 CREATE PROCEDURE sp8()
18956 declare v1 int default 5;
18963 # ------------------------------------------------------------------------------
18964 let $message= Testcase 4.3.12:;
18965 --source include/show_msg80.inc
18967 # testcase : ensure that the labels enclosing each loop statement must match
18970 drop table IF EXISTS res_t3_itisalongname_1381742_itsaverylongname_1381742;
18971 DROP PROCEDURE IF EXISTS sp12;
18974 create table res_t3_itisalongname_1381742_itsaverylongname_1381742( f1 char(20), f2 varchar(20), f3 smallint);
18977 --error ER_SP_LABEL_MISMATCH
18978 CREATE PROCEDURE sp12( )
18980 declare count1 integer default 1;
18981 declare count2 int;
18983 if count1 > 2 then leave label1;
18985 insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
18987 if count2 > 2 then leave label2;
18989 set count2 = count2 + 1;
18991 set count1 = count1 + 1;
18998 drop table res_t3_itisalongname_1381742_itsaverylongname_1381742;
19002 # ------------------------------------------------------------------------------
19003 let $message= Testcase 4.3.13:;
19004 --source include/show_msg80.inc
19006 # ensure that it is possible to put a beginning label at the start of a loop statement
19007 # without also requiring an ending label at the END of the same statement
19010 drop table IF EXISTS res_t3_itisalongname_1381742_itsaverylongname_1381742;
19011 DROP PROCEDURE IF EXISTS sp13;
19014 create table res_t3_itisalongname_1381742_itsaverylongname_1381742( f1 char(20), f2 varchar(20), f3 smallint);
19017 CREATE PROCEDURE sp13( )
19019 declare count1 integer default 1;
19021 if count1 > 2 then leave lable1;
19023 insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
19024 set count1 = count1 + 1;
19031 SELECT * from res_t3_itisalongname_1381742_itsaverylongname_1381742;
19034 DROP PROCEDURE sp13;
19035 drop table res_t3_itisalongname_1381742_itsaverylongname_1381742;
19038 # ------------------------------------------------------------------------------
19039 let $message= Testcase 4.3.14:;
19040 --source include/show_msg80.inc
19042 # testcase: ensure that it is not possible to put an ending label at the END of a loop statement
19043 # without also requiring a matching beginning label at the start of the same statement.
19046 drop table IF EXISTS res_t3_itisalongname_1381742_itsaverylongname_1381742;
19047 DROP PROCEDURE IF EXISTS sp14;
19050 create table res_t3_itisalongname_1381742_itsaverylongname_1381742( f1 char(20), f2 varchar(20), f3 smallint);
19053 --error ER_SP_LILABEL_MISMATCH
19054 CREATE PROCEDURE sp14( )
19056 declare count1 integer default 1;
19058 if count1 > 2 then leave lable1;
19060 insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
19061 set count1 = count1 + 1;
19068 drop table res_t3_itisalongname_1381742_itsaverylongname_1381742;
19071 # ------------------------------------------------------------------------------
19072 let $message= Testcase 4.3.15:;
19073 --source include/show_msg80.inc
19075 # ensure that every beginning label must END with a colon (:)
19078 drop table IF EXISTS res_t3_itisalongname_1381742_itsaverylongname_1381742;
19079 DROP PROCEDURE IF EXISTS sp15;
19082 create table res_t3_itisalongname_1381742_itsaverylongname_1381742( f1 char(20), f2 varchar(20), f3 smallint);
19085 --error ER_PARSE_ERROR
19086 CREATE PROCEDURE sp15( )
19088 declare count1 integer default 1;
19090 if count1 > 2 then leave lable1;
19092 insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
19093 set count1 = count1 + 1;
19100 # ------------------------------------------------------------------------------
19101 let $message= Testcase 4.3.16:
19103 Ensure that every beginning label with the same scope must be unique.;
19104 --source include/show_msg80.inc
19107 DROP PROCEDURE IF EXISTS sp16;
19110 delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
19113 --error ER_SP_LABEL_REDEFINE
19114 CREATE PROCEDURE sp16( )
19116 declare count1 integer default 1;
19117 declare count2 integer default 1;
19119 set count1 = count1 + 1;
19122 set count2 = count2 + 1;
19123 insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( xyz , pqr, count1);
19132 DROP PROCEDURE IF EXISTS sp16;
19136 --error ER_SP_LABEL_REDEFINE
19137 CREATE PROCEDURE sp16( )
19139 declare count1 integer default 1;
19140 declare count2 integer default 1;
19141 declare count3 integer default 1;
19143 set count1 = count1 + 1;
19145 set count2 = count2 + 1;
19153 set count3 = count3 + 1;
19161 # ------------------------------------------------------------------------------
19162 let $message= Testcase 4.3.17:;
19163 --source include/show_msg80.inc
19165 # testcase: ensure that the repeat statement acts correctly for all variants,
19166 # including cases where statements are nested.
19170 # ------------------------------------------------------------------------------
19171 let $message= Testcase 4.3.18:;
19172 --source include/show_msg80.inc
19174 # testcase : ensure that the labels enclosing each repeat statement must match.
19177 DROP PROCEDURE IF EXISTS sp18;
19180 delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
19183 --error ER_SP_LABEL_MISMATCH
19184 CREATE PROCEDURE sp18( )
19186 declare count1 integer default 1;
19188 set count1 = count1 + 1;
19189 insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
19196 # ------------------------------------------------------------------------------
19197 let $message= Testcase 4.3.19:;
19198 --source include/show_msg80.inc
19200 # testcase: ensure that it is possible to put a beginning label at the start of
19201 # a repeat statement without also requiring an ending label at the
19202 # END of the same statement.
19204 delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
19207 DROP PROCEDURE IF EXISTS sp19;
19211 CREATE PROCEDURE sp19( )
19213 declare count1 integer default 1;
19215 set count1 = count1 + 1;
19216 insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
19223 SELECT * from res_t3_itisalongname_1381742_itsaverylongname_1381742;
19226 DROP PROCEDURE sp19;
19229 # ------------------------------------------------------------------------------
19230 let $message= Testcase 4.3.20:;
19231 --source include/show_msg80.inc
19233 # testcase: ensure that it is not possible to put an ending label at the END of a
19234 # repeat statement without also requiring a matching beginning label
19235 # at the start of the same statement.
19237 delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
19240 DROP PROCEDURE IF EXISTS sp20;
19244 --error ER_PARSE_ERROR
19245 CREATE PROCEDURE sp20( )
19247 declare count1 integer default 1;
19249 set count1 = count1 + 1;
19250 insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
19257 # ------------------------------------------------------------------------------
19258 let $message= Testcase 4.3.21:;
19259 --source include/show_msg80.inc
19261 # ensure that the while statement acts correctly for all variants,
19262 # including cases where statements are nested
19266 # ------------------------------------------------------------------------------
19267 let $message= Testcase 4.3.22:;
19268 --source include/show_msg80.inc
19270 # testcase: ensure that the labels enclosing each while statement must match.
19272 delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
19275 DROP PROCEDURE IF EXISTS sp22;
19279 --error ER_SP_LABEL_MISMATCH
19280 CREATE PROCEDURE sp22( )
19282 declare count1 integer default 1;
19283 declare count2 integer default 1;
19284 while count1 < 3 do
19285 set count1 = count1 + 1;
19287 label1: while count2 < 3 do
19288 set count2 = count2 + 1;
19289 insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
19296 # ------------------------------------------------------------------------------
19297 let $message= Testcase 4.3.23:;
19298 --source include/show_msg80.inc
19300 # testcase: ensure that it is not possible to put an ending label at the END of
19301 # a while statement without also requiring a matching beginning label
19302 # at the start of the same statement.
19304 delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
19307 DROP PROCEDURE IF EXISTS sp23;
19311 --error ER_PARSE_ERROR
19312 CREATE PROCEDURE sp23( )
19314 declare count1 integer default 1;
19315 declare count2 integer default 1;
19316 while count1 < 3 do
19317 set count1 = count1 + 1;
19319 while count2 < 3 do
19320 set count2 = count2 + 1;
19321 insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
19330 # ------------------------------------------------------------------------------
19331 let $message= Testcase 4.3.25:;
19332 --source include/show_msg80.inc
19334 # testcase: ensure that it is possible to put a beginning label at the start of a
19335 # while statement without also requiring an ending label at the END of the same statement.
19337 delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
19339 DROP PROCEDURE IF EXISTS sp25;
19343 CREATE PROCEDURE sp25( )
19345 declare count1 integer default 1;
19346 declare count2 integer default 1;
19347 while count1 < 3 do
19348 set count1 = count1 + 1;
19350 label1: while count2 < 3 do
19351 set count2 = count2 + 1;
19352 insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
19359 SELECT * from res_t3_itisalongname_1381742_itsaverylongname_1381742;
19362 DROP PROCEDURE sp25;
19363 drop table res_t3_itisalongname_1381742_itsaverylongname_1381742;
19366 # ==============================================================================
19367 let $message= Section 3.1.4 - Checks for the global nature of stored procedures:;
19368 --source include/show_msg80.inc
19372 # ------------------------------------------------------------------------------
19373 let $message= Testcase 4.4.1:;
19374 --source include/show_msg80.inc
19376 # testcase: ensure that, regardless of the database in which it was created,
19377 # a stored procedure can be called (for a procedure) from any #database
19380 DROP PROCEDURE IF EXISTS sp1;
19381 DROP DATABASE IF EXISTS d40401;
19385 CREATE PROCEDURE sp1 ( n char(20) )
19391 CREATE DATABASE d40401;
19394 CALL db_storedproc.sp1('abcd');
19399 DROP PROCEDURE sp1;
19400 DROP DATABASE d40401;
19403 # ------------------------------------------------------------------------------
19404 let $message= Testcase 4.4.2:;
19405 --source include/show_msg80.inc
19407 # testcase: ensure that, regardless of the database in which it was created,
19408 # a stored procedure can be executed (for a function) from any database.
19411 DROP FUNCTION IF EXISTS fn1;
19412 DROP FUNCTION IF EXISTS fn11;
19413 DROP DATABASE IF EXISTS d40402;
19417 CREATE FUNCTION fn1(n int) returns int
19425 CREATE DATABASE d40402;
19429 SELECT db_storedproc.fn1(100);
19431 SELECT db_storedproc.fn1(1000);
19434 CREATE FUNCTION db_storedproc.fn11(n int) returns int
19442 SELECT db_storedproc.fn11(100);
19444 SELECT db_storedproc.fn11(1000);
19450 DROP FUNCTION fn11;
19451 DROP DATABASE d40402;
19456 # ------------------------------------------------------------------------------
19457 let $message= Testcase 4.4.3:;
19458 --source include/show_msg80.inc
19460 # testcase: ensure that the USE of a stored procedure from a database other than the database in
19461 # which it was created does not permanently change the database in use.
19464 DROP DATABASE IF EXISTS d1;
19465 DROP DATABASE IF EXISTS d2;
19468 CREATE DATABASE d1;
19469 CREATE DATABASE d2;
19473 create table res_t41(a char(5), b char(10));
19474 insert into res_t41 values('abcde', 'a!@#$%^&*(');
19478 create table res_t42(a char(5), b char(10));
19483 CREATE PROCEDURE sp2(n char (20))
19485 SELECT res_t41.a, res_t41.b into @a, @b from res_t41 where res_t41.b = n;
19486 insert into d2.res_t42 values (@a, @b);
19492 CALL d1.sp2('a!@#$%^&*(');
19496 SELECT * from d1.res_t41;
19497 SELECT * from res_t42;
19505 # ------------------------------------------------------------------------------
19506 let $message= Testcase 4.4.4:;
19507 --source include/show_msg80.inc
19509 # testcase : ensure that the mysql-specific USE <database name> statement is disallowed
19510 # in a stored procedure.
19513 DROP DATABASE IF EXISTS d1;
19516 CREATE DATABASE d1;
19521 --error ER_SP_BADSTATEMENT
19522 CREATE PROCEDURE sp3()
19534 # ------------------------------------------------------------------------------
19535 let $message= Testcase 4.4.5:;
19536 --source include/show_msg80.inc
19538 # testcase: ensure that when a database is dropped, all stored procedures #created within
19539 # that database are also cleanly dropped.
19542 DROP DATABASE IF EXISTS d1;
19545 CREATE DATABASE d1;
19548 create table t43(a char(5), b char(10));
19549 insert into t43 values('abcde', 'a!@#$%^&*(');
19551 CREATE PROCEDURE d1.sp4()
19552 SELECT * from d1.t43;
19554 --replace_column 13 modified 14 created
19555 SELECT * from mysql.proc where specific_name = 'sp4';
19559 CREATE DATABASE d1;
19562 create table t44(a char(5), b char(10));
19564 --replace_column 13 modified 14 created
19565 SELECT * from mysql.proc where specific_name = 'sp4';
19572 # ------------------------------------------------------------------------------
19573 let $message= Testcase 4.4.6:;
19574 --source include/show_msg80.inc
19576 # testcase: ensure that a stored procedure created without a qualifying #database name belongs
19577 # to the database in USE at creation time.
19583 DROP PROCEDURE IF EXISTS sp5;
19586 CREATE PROCEDURE sp5()
19587 SELECT * from db_storedproc.t4 limit 0, 10;
19589 SELECT db from mysql.proc where specific_name = 'sp5';
19592 DROP PROCEDURE sp5;
19595 # ------------------------------------------------------------------------------
19596 let $message= Testcase 4.4.7:;
19597 --source include/show_msg80.inc
19599 # testcase: ensure that a stored procedure created with a qualifying database
19600 # name belongs to the database specified.
19605 drop table IF EXISTS t46;
19606 DROP PROCEDURE IF EXISTS sp6;
19609 create table t46(f1 char(20), f2 char(20));
19610 insert into t46 values ('abcd', 'wxyz');
19612 CREATE PROCEDURE db_storedproc.sp6()
19613 SELECT * from db_storedproc.t4 limit 0, 10;
19615 SELECT db from mysql.proc where specific_name = 'sp6';
19619 DROP PROCEDURE sp6;
19622 # ------------------------------------------------------------------------------
19623 let $message= Testcase 4.4.8:;
19624 --source include/show_msg80.inc
19626 # testcase : ensure that, regardless of the database in which it was created,
19627 # a procedure can be altered from any database.
19630 DROP DATABASE IF EXISTS d1;
19631 DROP DATABASE IF EXISTS d2;
19634 CREATE DATABASE d1;
19635 CREATE DATABASE d2;
19639 CREATE PROCEDURE sp8 ( n char(20) ) sql security DEFINER comment 'initial'
19640 SELECT * from t1 where t1.f1 = n;
19643 alter procedure d1.sp8 sql security DEFINER comment 'updated';
19644 --replace_column 13 modified 14 created
19645 SELECT * from mysql.proc where specific_name='sp8' and db='d1';
19648 # ------------------------------------------------------------------------------
19649 let $message= Testcase 4.4.9:;
19650 --source include/show_msg80.inc
19652 # testcase :ensure that, regardless of the database in which it was created,
19653 # a stored procedure can be executed (for a function) from any database.
19658 DROP FUNCTION IF EXISTS fn1;
19659 DROP FUNCTION IF EXISTS fn11;
19663 CREATE FUNCTION d1.fn2(n int) returns int sql security invoker comment 'initial'
19672 alter function d1.fn2 sql security DEFINER comment 'updated';
19673 --replace_column 13 modified 14 created
19674 SELECT * from mysql.proc where specific_name='fn2' and db='d1';
19677 # ------------------------------------------------------------------------------
19678 let $message= Testcase 4.4.10:;
19679 --source include/show_msg80.inc
19681 # testcase: ensure that, regardless of the database in which it was created,
19682 # a procedure can be dropped from any database.
19687 CREATE PROCEDURE sp9 ( n char(20) )
19688 SELECT * from t1 where t1.f1 = n;
19691 DROP PROCEDURE d1.sp9; --replace_column 13 modified 14 created
19692 SELECT * from mysql.proc where specific_name='sp9' and db='d1';
19695 # ------------------------------------------------------------------------------
19696 let $message= Testcase 4.4.11:;
19697 --source include/show_msg80.inc
19699 # testcase: ensure that, regardless of the database in which it was created,
19700 # a function can be dropped from any database.
19706 CREATE FUNCTION d1.fn3(n int) returns int
19715 DROP FUNCTION d1.fn3;
19716 --replace_column 13 modified 14 created
19717 SELECT * from mysql.proc where specific_name='fn3' and db='d1';
19726 # ==============================================================================
19727 # test plan section: 4.5 -
19728 # ==============================================================================
19729 let $message= Section 3.1.5 - Parameter use checks:
19730 Functions with all data types;
19731 --source include/show_msg80.inc
19734 let $plus_20= 1.00e+20;
19735 let $plus_24= 1.00e+24;
19736 let $plus_30= 1.00e+30;
19737 let $plus_36= 1.00e+36;
19738 let $plus_40= 1.00e+40;
19739 let $minus_30= -1.00e+30;
19740 let $minus_36= -1.00e+36;
19741 let $minus_40= -1.00e+40;
19743 let $callvar01m= -1.00e+20;
19744 let $callvar01p= 1.00e+20;
19745 let $callvar02= -9.22e+18;
19746 let $callvar03= -9.22e+18;
19748 let $procvar01_m30= -1.00e+30;
19749 let $procvar01_m36= -1.00e+36;
19750 let $procvar01_m40= -1.00e+40;
19751 let $procvar01_20= 1.00e+20;
19752 let $procvar01_24= 1.00e+24;
19753 let $procvar01_30= 1.00e+30;
19754 let $procvar01_36= 1.00e+36;
19755 let $procvar01_40= 1.00e+40;
19757 #################123456789-123456789-123456789-123456789-
19758 let $plus_20= 100000000000000000000;
19759 let $plus_24= 1000000000000000000000000;
19760 let $plus_30= 1000000000000000000000000000000;
19761 let $plus_36= 1000000000000000000000000000000000000;
19762 let $plus_40= 10000000000000000000000000000000000000000;
19763 let $minus_30= -1000000000000000000000000000000;
19764 let $minus_36= -1000000000000000000000000000000000000;
19765 let $minus_40= -10000000000000000000000000000000000000000;
19767 let $procvar_m00= -1.00e+22;
19768 let $procvar_00= 1.00e+22;
19769 let $procvar01_m30= $procvar_m00;
19770 let $procvar01_m36= $procvar_m00;
19771 let $procvar01_m40= $procvar_m00;
19772 let $procvar01_20= $procvar_00;
19773 let $procvar01_24= $procvar_00;
19774 let $procvar01_30= $procvar_00;
19775 let $procvar01_36= $procvar_00;
19776 let $procvar01_40= $procvar_00;
19777 let $procvar03= -9.22e+18;
19778 let $procvar05= -9.22e+18;
19779 let $procvar07= -9.22e+18;
19783 DROP DATABASE IF EXISTS d1;
19786 CREATE DATABASE d1;
19790 DROP FUNCTION IF EXISTS fn1;
19794 CREATE FUNCTION fn1( f1 bigint) returns bigint
19796 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
19801 SELECT fn1(-9.22e+18);
19805 DROP FUNCTION IF EXISTS fn2;
19809 CREATE FUNCTION fn2( f1 bigint unsigned) returns bigint unsigned
19811 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
19816 SELECT fn2(1.84e+19);
19820 DROP FUNCTION IF EXISTS fn3;
19824 CREATE FUNCTION fn3( f1 bigint unsigned zerofill) returns bigint unsigned zerofill
19826 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
19831 --disable_ps_protocol
19832 SELECT fn3(1.84e+17);
19833 --enable_ps_protocol
19836 DROP FUNCTION IF EXISTS fn4;
19840 CREATE FUNCTION fn4( f1 bigint zerofill) returns bigint zerofill
19842 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
19847 --disable_ps_protocol
19848 SELECT fn4(-9.22e+15);
19849 --enable_ps_protocol
19852 DROP FUNCTION IF EXISTS fn5;
19856 CREATE FUNCTION fn5( f1 decimal) returns decimal
19858 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
19863 SELECT fn5(-1.00e+09);
19867 DROP FUNCTION IF EXISTS fn6;
19871 CREATE FUNCTION fn6( f1 decimal (0)) returns decimal (0)
19873 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
19878 SELECT fn6(-1.00e+09);
19882 DROP FUNCTION IF EXISTS fn7;
19886 CREATE FUNCTION fn7( f1 decimal (0) unsigned) returns decimal (0) unsigned
19888 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
19893 SELECT fn7(99999999999);
19897 DROP FUNCTION IF EXISTS fn8;
19901 CREATE FUNCTION fn8( f1 decimal (0) unsigned zerofill) returns decimal (0) unsigned zerofill
19903 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
19908 SELECT fn8(999999999);
19911 DROP FUNCTION IF EXISTS fn9;
19915 CREATE FUNCTION fn9( f1 decimal (0) zerofill) returns decimal (0) zerofill
19917 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
19922 SELECT fn9(-1.00e+09);
19926 DROP FUNCTION IF EXISTS fn10;
19930 CREATE FUNCTION fn10( f1 decimal (0, 0)) returns decimal (0, 0)
19932 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
19937 SELECT fn10(-1.00e+09);
19941 DROP FUNCTION IF EXISTS fn11;
19945 CREATE FUNCTION fn11( f1 decimal (0, 0) unsigned) returns decimal (0, 0) unsigned
19947 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
19952 SELECT fn11(99999999999);
19956 DROP FUNCTION IF EXISTS fn12;
19960 CREATE FUNCTION fn12( f1 decimal (0, 0) unsigned zerofill) returns decimal (0, 0) unsigned zerofill
19962 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
19967 SELECT fn12(999999999);
19970 DROP FUNCTION IF EXISTS fn13;
19974 CREATE FUNCTION fn13( f1 decimal (0, 0) zerofill) returns decimal (0, 0) zerofill
19976 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
19981 SELECT fn13(-1.00e+09);
19985 DROP FUNCTION IF EXISTS fn14;
19989 CREATE FUNCTION fn14( f1 decimal (63, 30)) returns decimal (63, 30)
19991 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
19996 SELECT fn14(-1.00e+21);
20000 DROP FUNCTION IF EXISTS fn15;
20004 CREATE FUNCTION fn15( f1 decimal (63, 30) unsigned) returns decimal (63, 30) unsigned
20006 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20011 SELECT fn15(1.00e+16);
20015 DROP FUNCTION IF EXISTS fn16;
20019 CREATE FUNCTION fn16( f1 decimal (63, 30) unsigned zerofill) returns decimal (63, 30) unsigned zerofill
20021 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20026 SELECT fn16(1.00e+16);
20030 DROP FUNCTION IF EXISTS fn17;
20034 CREATE FUNCTION fn17( f1 decimal (63, 30) zerofill) returns decimal (63, 30) zerofill
20036 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20041 SELECT fn17(-1.00e+21);
20045 DROP FUNCTION IF EXISTS fn18_d;
20049 CREATE FUNCTION fn18_d( f1 decimal (64)) returns decimal (64)
20051 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20057 eval SELECT fn18_d( $minus_30 );
20061 DROP FUNCTION IF EXISTS fn19_du;
20065 CREATE FUNCTION fn19_du( f1 decimal (64) unsigned) returns decimal (64) unsigned
20067 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20072 eval SELECT fn19_du( $plus_20 );
20075 DROP FUNCTION IF EXISTS fn20_duz;
20079 CREATE FUNCTION fn20_duz( f1 decimal (64) unsigned zerofill) returns decimal (64) unsigned zerofill
20081 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20086 eval SELECT fn20_duz( $plus_24 );
20089 DROP FUNCTION IF EXISTS fn21_d_z;
20093 CREATE FUNCTION fn21_d_z( f1 decimal (64) zerofill) returns decimal (64) zerofill
20095 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20100 SELECT fn21_d_z(1.00e+00);
20103 DROP FUNCTION IF EXISTS fn22;
20107 CREATE FUNCTION fn22( f1 decimal unsigned) returns decimal unsigned
20109 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20114 SELECT fn22(1.00e+00);
20118 DROP FUNCTION IF EXISTS fn23;
20122 CREATE FUNCTION fn23( f1 decimal unsigned zerofill) returns decimal unsigned zerofill
20124 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20129 SELECT fn23(1.00e+00);
20132 DROP FUNCTION IF EXISTS fn24;
20136 CREATE FUNCTION fn24( f1 decimal zerofill) returns decimal zerofill
20138 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20143 SELECT fn24(-1.00e+09);
20147 DROP FUNCTION IF EXISTS fn25;
20151 CREATE FUNCTION fn25( f1 double) returns double
20153 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20158 SELECT fn25(1.00e+00);
20162 DROP FUNCTION IF EXISTS fn26;
20166 CREATE FUNCTION fn26( f1 double unsigned) returns double unsigned
20168 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20173 SELECT fn26(1.00e+00);
20176 DROP FUNCTION IF EXISTS fn27;
20180 CREATE FUNCTION fn27( f1 double unsigned zerofill) returns double unsigned zerofill
20182 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20187 --disable_ps_protocol
20188 SELECT fn27(1.00e+00);
20189 --enable_ps_protocol
20193 DROP FUNCTION IF EXISTS fn28;
20197 CREATE FUNCTION fn28( f1 double zerofill) returns double zerofill
20199 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20204 --disable_ps_protocol
20205 SELECT fn28(1.00e+00);
20206 --enable_ps_protocol
20210 DROP FUNCTION IF EXISTS fn29;
20215 CREATE FUNCTION fn29( f1 float) returns float
20217 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20222 SELECT fn29(1.00e+00);
20226 DROP FUNCTION IF EXISTS fn30;
20230 CREATE FUNCTION fn30( f1 float unsigned) returns float unsigned
20232 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20237 SELECT fn30(1.00e+00);
20241 DROP FUNCTION IF EXISTS fn31;
20245 CREATE FUNCTION fn31( f1 float unsigned zerofill) returns float unsigned zerofill
20247 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20252 --disable_ps_protocol
20253 SELECT fn31(1.00e+00);
20254 --enable_ps_protocol
20258 DROP FUNCTION IF EXISTS fn32;
20262 CREATE FUNCTION fn32( f1 float zerofill) returns float zerofill
20264 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20269 --disable_ps_protocol
20270 SELECT fn32(1.00e+00);
20271 --enable_ps_protocol
20275 DROP FUNCTION IF EXISTS fn33;
20279 CREATE FUNCTION fn33( f1 float(0)) returns float(0)
20281 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20286 SELECT fn33(1.00e+00);
20290 DROP FUNCTION IF EXISTS fn34;
20294 CREATE FUNCTION fn34( f1 float(0) unsigned) returns float(0) unsigned
20296 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20301 SELECT fn34(1.00e+00);
20305 DROP FUNCTION IF EXISTS fn35;
20309 CREATE FUNCTION fn35( f1 float(0) unsigned zerofill) returns float(0) unsigned zerofill
20311 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20316 --disable_ps_protocol
20317 SELECT fn35(1.00e+00);
20318 --enable_ps_protocol
20322 DROP FUNCTION IF EXISTS fn36;
20326 CREATE FUNCTION fn36( f1 float(0) zerofill) returns float(0) zerofill
20328 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20333 --disable_ps_protocol
20334 SELECT fn36(1.00e+00);
20335 --enable_ps_protocol
20339 DROP FUNCTION IF EXISTS fn37;
20343 CREATE FUNCTION fn37( f1 float(23)) returns float(23)
20345 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20350 SELECT fn37(1.00e+00);
20354 DROP FUNCTION IF EXISTS fn38;
20358 CREATE FUNCTION fn38( f1 float(23) unsigned) returns float(23) unsigned
20360 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20365 SELECT fn38(1.00e+00);
20369 DROP FUNCTION IF EXISTS fn39;
20373 CREATE FUNCTION fn39( f1 float(23) unsigned zerofill) returns float(23) unsigned zerofill
20375 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20380 --disable_ps_protocol
20381 SELECT fn39(1.00e+00);
20382 --enable_ps_protocol
20386 DROP FUNCTION IF EXISTS fn40;
20390 CREATE FUNCTION fn40( f1 float(23) zerofill) returns float(23) zerofill
20392 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20397 --disable_ps_protocol
20398 SELECT fn40(1.00e+00);
20399 --enable_ps_protocol
20403 DROP FUNCTION IF EXISTS fn41;
20407 CREATE FUNCTION fn41( f1 float(24)) returns float(24)
20409 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20414 SELECT fn41(1.00e+00);
20418 DROP FUNCTION IF EXISTS fn42;
20422 CREATE FUNCTION fn42( f1 float(24) unsigned) returns float(24) unsigned
20424 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20429 SELECT fn42(1.00e+00);
20432 DROP FUNCTION IF EXISTS fn43;
20436 CREATE FUNCTION fn43( f1 float(24) unsigned zerofill) returns float(24) unsigned zerofill
20438 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20443 --disable_ps_protocol
20444 SELECT fn43(1.00e+00);
20445 --enable_ps_protocol
20449 DROP FUNCTION IF EXISTS fn44;
20453 CREATE FUNCTION fn44( f1 float(24) zerofill) returns float(24) zerofill
20455 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20460 --disable_ps_protocol
20461 SELECT fn44(1.00e+00);
20462 --enable_ps_protocol
20466 DROP FUNCTION IF EXISTS fn45;
20470 CREATE FUNCTION fn45( f1 float(53)) returns float(53)
20472 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20477 SELECT fn45(1.00e+00);
20481 DROP FUNCTION IF EXISTS fn46;
20485 CREATE FUNCTION fn46( f1 float(53) unsigned) returns float(53) unsigned
20487 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20492 SELECT fn46(1.00e+00);
20495 DROP FUNCTION IF EXISTS fn47;
20499 CREATE FUNCTION fn47( f1 float(53) unsigned zerofill) returns float(53) unsigned zerofill
20501 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20506 --disable_ps_protocol
20507 SELECT fn47(1.00e+00);
20508 --enable_ps_protocol
20512 DROP FUNCTION IF EXISTS fn48;
20516 CREATE FUNCTION fn48( f1 float(53) zerofill) returns float(53) zerofill
20518 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20523 --disable_ps_protocol
20524 SELECT fn48(1.00e+00);
20525 --enable_ps_protocol
20529 DROP FUNCTION IF EXISTS fn49;
20533 CREATE FUNCTION fn49( f1 int) returns int
20535 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20540 SELECT fn49(-2.15e+09);
20544 DROP FUNCTION IF EXISTS fn50;
20548 CREATE FUNCTION fn50( f1 int unsigned) returns int unsigned
20550 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20555 SELECT fn50(4.29e+09);
20559 DROP FUNCTION IF EXISTS fn51;
20563 CREATE FUNCTION fn51( f1 int unsigned zerofill) returns int unsigned zerofill
20565 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20570 SELECT fn51(4.29e+09);
20574 DROP FUNCTION IF EXISTS fn52;
20578 CREATE FUNCTION fn52( f1 int zerofill) returns int zerofill
20580 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20585 --disable_ps_protocol
20586 SELECT fn52(2.15e+08);
20587 --enable_ps_protocol
20590 DROP FUNCTION IF EXISTS fn53;
20594 CREATE FUNCTION fn53( f1 mediumint) returns mediumint
20596 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20601 SELECT fn53(-8388600);
20604 DROP FUNCTION IF EXISTS fn54;
20608 CREATE FUNCTION fn54( f1 mediumint unsigned) returns mediumint unsigned
20610 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20615 SELECT fn54(16777201);
20619 DROP FUNCTION IF EXISTS fn55;
20623 CREATE FUNCTION fn55( f1 mediumint unsigned zerofill) returns mediumint unsigned zerofill
20625 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20630 SELECT fn55(16777210);
20634 DROP FUNCTION IF EXISTS fn56;
20638 CREATE FUNCTION fn56( f1 mediumint zerofill) returns mediumint zerofill
20640 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20645 SELECT fn56(-8388601);
20648 DROP FUNCTION IF EXISTS fn57;
20652 CREATE FUNCTION fn57( f1 numeric) returns numeric
20654 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20659 SELECT fn57(-999999999);
20663 DROP FUNCTION IF EXISTS fn58;
20667 CREATE FUNCTION fn58( f1 numeric (0)) returns numeric (0)
20669 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20674 SELECT fn58(-999999999);
20678 DROP FUNCTION IF EXISTS fn59;
20682 CREATE FUNCTION fn59( f1 numeric (0) unsigned) returns numeric (0) unsigned
20684 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20689 SELECT fn59(9999999999);
20692 DROP FUNCTION IF EXISTS fn60;
20696 CREATE FUNCTION fn60( f1 numeric (0) unsigned zerofill) returns numeric (0) unsigned zerofill
20698 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20703 SELECT fn60(99999999);
20707 DROP FUNCTION IF EXISTS fn61;
20711 CREATE FUNCTION fn61( f1 numeric (0) zerofill) returns numeric (0) zerofill
20713 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20718 SELECT fn61(-99999999);
20722 DROP FUNCTION IF EXISTS fn62;
20726 CREATE FUNCTION fn62( f1 numeric (0, 0)) returns numeric (0, 0)
20728 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20733 SELECT fn62(-999999999);
20737 DROP FUNCTION IF EXISTS fn63;
20741 CREATE FUNCTION fn63( f1 numeric (0, 0) unsigned) returns numeric (0, 0) unsigned
20743 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20748 SELECT fn63(9999999999);
20752 DROP FUNCTION IF EXISTS fn64;
20756 CREATE FUNCTION fn64( f1 numeric (0, 0) unsigned zerofill) returns numeric (0, 0) unsigned zerofill
20758 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20763 SELECT fn64(99999999);
20767 DROP FUNCTION IF EXISTS fn65;
20771 CREATE FUNCTION fn65( f1 numeric (0, 0) zerofill) returns numeric (0, 0) zerofill
20773 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20778 SELECT fn65(-99999999);
20782 DROP FUNCTION IF EXISTS fn66;
20786 CREATE FUNCTION fn66( f1 numeric (63, 30)) returns numeric (63, 30)
20788 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20793 SELECT fn66(-1e+36);
20797 DROP FUNCTION IF EXISTS fn67;
20801 CREATE FUNCTION fn67( f1 numeric (63, 30) unsigned) returns numeric (63, 30) unsigned
20803 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20808 SELECT fn67(1e+36);
20812 DROP FUNCTION IF EXISTS fn68;
20816 CREATE FUNCTION fn68( f1 numeric (63, 30) unsigned zerofill) returns numeric (63, 30) unsigned zerofill
20818 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20823 SELECT fn68(1e+36);
20827 DROP FUNCTION IF EXISTS fn69;
20831 CREATE FUNCTION fn69( f1 numeric (63, 30) zerofill) returns numeric (63, 30) zerofill
20833 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20838 SELECT fn69(-1e+36);
20842 DROP FUNCTION IF EXISTS fn70_n;
20846 CREATE FUNCTION fn70_n( f1 numeric (64)) returns numeric (64)
20848 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20854 #SELECT fn70_n(-1e+40);
20855 eval SELECT fn70_n( $minus_30 );
20856 eval SELECT fn70_n( $minus_40 );
20860 DROP FUNCTION IF EXISTS fn71_nu;
20864 CREATE FUNCTION fn71_nu( f1 numeric (64) unsigned) returns numeric (64) unsigned
20866 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20872 #SELECT fn71_nu(1.00e+40);
20873 eval SELECT fn71_nu( $plus_40 );
20877 DROP FUNCTION IF EXISTS fn72_nuz;
20881 CREATE FUNCTION fn72_nuz( f1 numeric (64) unsigned zerofill) returns numeric (64) unsigned zerofill
20883 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20889 #SELECT fn72_nuz(1.00e+40);
20890 eval SELECT fn72_nuz( $plus_40 );
20894 DROP FUNCTION IF EXISTS fn73_n_z;
20898 CREATE FUNCTION fn73_n_z( f1 numeric (64) zerofill) returns numeric (64) zerofill
20900 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20906 #SELECT fn73_n_z(1.00e+40);
20907 eval SELECT fn73_n_z( $plus_40 );
20910 DROP FUNCTION IF EXISTS fn74;
20914 CREATE FUNCTION fn74( f1 numeric unsigned) returns numeric unsigned
20916 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20921 SELECT fn74(999999999);
20925 DROP FUNCTION IF EXISTS fn75;
20929 CREATE FUNCTION fn75( f1 numeric unsigned zerofill) returns numeric unsigned zerofill
20931 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20936 SELECT fn75(999999999);
20940 DROP FUNCTION IF EXISTS fn76;
20944 CREATE FUNCTION fn76( f1 numeric zerofill) returns numeric zerofill
20946 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20951 SELECT fn76(-999999999);
20955 DROP FUNCTION IF EXISTS fn77;
20959 CREATE FUNCTION fn77( f1 real) returns real
20961 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20970 DROP FUNCTION IF EXISTS fn78;
20974 CREATE FUNCTION fn78( f1 real unsigned) returns real unsigned
20976 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20985 DROP FUNCTION IF EXISTS fn79;
20989 CREATE FUNCTION fn79( f1 real unsigned zerofill) returns real unsigned zerofill
20991 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
20996 --disable_ps_protocol
20998 --enable_ps_protocol
21002 DROP FUNCTION IF EXISTS fn80;
21006 CREATE FUNCTION fn80( f1 real zerofill) returns real zerofill
21008 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21013 --disable_ps_protocol
21015 --enable_ps_protocol
21019 DROP FUNCTION IF EXISTS fn81;
21023 CREATE FUNCTION fn81( f1 smallint) returns smallint
21025 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21030 SELECT fn81(-32701);
21034 DROP FUNCTION IF EXISTS fn82;
21038 CREATE FUNCTION fn82( f1 smallint unsigned) returns smallint unsigned
21040 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21045 SELECT fn82(65531);
21049 DROP FUNCTION IF EXISTS fn83;
21053 CREATE FUNCTION fn83( f1 smallint unsigned zerofill) returns smallint unsigned zerofill
21055 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21060 SELECT fn83(65531);
21064 DROP FUNCTION IF EXISTS fn84;
21068 CREATE FUNCTION fn84( f1 smallint zerofill) returns smallint zerofill
21070 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21075 SELECT fn84(-32601);
21078 DROP FUNCTION IF EXISTS fn85;
21082 CREATE FUNCTION fn85( f1 tinyint) returns tinyint
21084 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21093 DROP FUNCTION IF EXISTS fn86;
21097 CREATE FUNCTION fn86( f1 tinyint unsigned) returns tinyint unsigned
21099 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21108 DROP FUNCTION IF EXISTS fn87;
21112 CREATE FUNCTION fn87( f1 tinyint unsigned zerofill) returns tinyint unsigned zerofill
21114 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21123 DROP FUNCTION IF EXISTS fn88;
21127 CREATE FUNCTION fn88( f1 tinyint zerofill) returns tinyint zerofill
21129 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21137 DROP FUNCTION IF EXISTS fn89;
21141 CREATE FUNCTION fn89( f1 enum('1enum', '2enum')) returns enum('1enum', '2enum')
21143 IF f1 = '1enum' THEN
21152 SELECT fn89( '1enum');
21155 DROP FUNCTION IF EXISTS fn90;
21159 CREATE FUNCTION fn90( f1 set('1set', '2set')) returns set('1set', '2set')
21161 IF f1 = '1set' THEN
21170 SELECT fn90( '1set');
21173 DROP FUNCTION IF EXISTS fn91;
21177 CREATE FUNCTION fn91( f1 date) returns date
21179 set f1 = adddate(f1, interval 31 day);
21184 SELECT fn91('1997-12-31');
21187 DROP FUNCTION IF EXISTS fn92;
21192 CREATE FUNCTION fn92( f1 time) returns time
21194 set f1 = addtime(f1, '02:00:00.999998');
21199 SELECT fn92( '23:59:59.999999');
21203 DROP FUNCTION IF EXISTS fn93;
21208 CREATE FUNCTION fn93( f1 datetime) returns datetime
21210 set f1 = addtime(f1, '1 1:1:1.000002');
21215 SELECT fn93('1997-12-31 23:59:59.999999');
21218 DROP FUNCTION IF EXISTS fn94;
21223 CREATE FUNCTION fn94( f1 char) returns char
21225 set f1 = concat('a', f1);
21233 DROP FUNCTION IF EXISTS fn95;
21238 CREATE FUNCTION fn95( f1 char ascii) returns char ascii
21240 set f1 = concat('a', f1);
21249 DROP FUNCTION IF EXISTS fn96;
21253 CREATE FUNCTION fn96( f1 binary) returns binary(2)
21255 set f1 = concat('a', f1);
21264 DROP FUNCTION IF EXISTS fn97;
21268 CREATE FUNCTION fn97( f1 longtext) returns longtext
21270 set f1 = concat('hello', f1);
21275 SELECT fn97( 'world');
21278 DROP FUNCTION IF EXISTS fn98;
21282 CREATE FUNCTION fn98( f1 mediumtext) returns mediumtext
21284 set f1 = concat('hello', f1);
21289 SELECT fn98( 'world');
21292 DROP FUNCTION IF EXISTS fn99;
21296 CREATE FUNCTION fn99( f1 text) returns text
21298 set f1 = concat('hello', f1);
21303 SELECT fn99( 'world');
21306 DROP FUNCTION IF EXISTS fn100;
21310 CREATE FUNCTION fn100( f1 tinytext) returns tinytext
21312 set f1 = concat('hello', f1);
21317 SELECT fn100( 'world');
21320 DROP FUNCTION IF EXISTS fn101;
21324 CREATE FUNCTION fn101( f1 year) returns year
21335 DROP FUNCTION IF EXISTS fn102;
21339 CREATE FUNCTION fn102( f1 year(4)) returns year(4)
21346 SELECT fn102(1982);
21350 DROP FUNCTION IF EXISTS fn103;
21354 CREATE FUNCTION fn103( f1 geometrycollection) returns geometrycollection
21361 SELECT fn103('\0\0\0\0
\x01\x03\0\0\0
\x02\0\0\0
\x05\0\0\0\0\0\0\0\0\0?\0\0\0\0\0\0?\0\0\0\0\0\04@\0\0\0\0\0\0?\0\0\0\0\0\04@\0\0\0\0\0\04@\0\0\0\0\0\0?\0\0\0\0\0\04@\0\0\0\0\0\0?\0\0\0\0\0\0?
\x05\0\0\0\0\0\0\0\0\0
\x18@\0\0\0\0\0\0
\x18@\0\0\0\0\0\0 @\0\0\0\0\0\0
\x18@\0\0\0\0\0\0 @\0\0\0\0\0\0 @\0\0\0\0\0\0
\x18@\0\0\0\0\0\0 @\0\0\0\0\0\0
\x18@\0\0\0\0\0\0
\x18@');
21365 DROP FUNCTION IF EXISTS fn104;
21369 CREATE FUNCTION fn104( f1 linestring) returns linestring
21376 SELECT fn104('\0\0\0\0
\x01\x02\0\0\0
\x03\0\0\0\0\0\0\0\0\0?\0\0\0\0\0\0?\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0
\b@\0\0\0\0\0\0
\b@');
21380 DROP FUNCTION IF EXISTS fn105;
21384 CREATE FUNCTION fn105( f1 point) returns point
21391 SELECT fn105('\0\0\0\0
\x01\x01\0\0\0\0\0\0\0\0\04@\0\0\0\0\0\04@');
21395 DROP FUNCTION IF EXISTS fn106;
21399 CREATE FUNCTION fn106( f1 polygon) returns polygon
21406 SELECT fn106('\0\0\0\0
\x01\x03\0\0\0
\x02\0\0\0
\x05\0\0\0\0\0\0\0\0\0?\0\0\0\0\0\0?\0\0\0\0\0\04@\0\0\0\0\0\0?\0\0\0\0\0\04@\0\0\0\0\0\04@\0\0\0\0\0\0?\0\0\0\0\0\04@\0\0\0\0\0\0?\0\0\0\0\0\0?
\x05\0\0\0\0\0\0\0\0\0
\x18@\0\0\0\0\0\0
\x18@\0\0\0\0\0\0 @\0\0\0\0\0\0
\x18@\0\0\0\0\0\0 @\0\0\0\0\0\0 @\0\0\0\0\0\0
\x18@\0\0\0\0\0\0 @\0\0\0\0\0\0
\x18@\0\0\0\0\0\0
\x18@');
21410 DROP FUNCTION IF EXISTS fn107;
21414 CREATE FUNCTION fn107( f1 timestamp) returns timestamp
21421 --replace_column 1 returned
21422 SELECT fn107(20050510080451);
21428 # ==============================================================================
21429 # test plan section: 4.5 - stored procs with in, out parameters using all datatypes
21430 # ==============================================================================
21433 DROP DATABASE IF EXISTS db1;
21436 CREATE DATABASE db1;
21440 DROP PROCEDURE IF EXISTS sp1;
21444 CREATE PROCEDURE sp1( f1 bigint)
21446 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21451 CALL sp1(-9.22e+18);
21455 DROP PROCEDURE IF EXISTS sp2;
21459 CREATE PROCEDURE sp2( f1 bigint unsigned)
21461 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21466 CALL sp2(1.84e+19);
21470 DROP PROCEDURE IF EXISTS sp3;
21474 CREATE PROCEDURE sp3( f1 bigint unsigned zerofill)
21476 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21481 CALL sp3(1.84e+17);
21485 DROP PROCEDURE IF EXISTS sp4;
21489 CREATE PROCEDURE sp4( f1 bigint zerofill)
21491 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21496 CALL sp4(-9.22e+15);
21500 DROP PROCEDURE IF EXISTS sp5;
21504 CREATE PROCEDURE sp5( f1 decimal)
21506 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21511 CALL sp5(-1.00e+09);
21515 DROP PROCEDURE IF EXISTS sp6;
21519 CREATE PROCEDURE sp6( f1 decimal (0))
21521 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21526 CALL sp6(-1.00e+09);
21529 DROP PROCEDURE IF EXISTS sp7;
21533 CREATE PROCEDURE sp7( f1 decimal (0) unsigned)
21535 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21540 CALL sp7(99999999999);
21543 DROP PROCEDURE IF EXISTS sp8;
21547 CREATE PROCEDURE sp8( f1 decimal (0) unsigned zerofill)
21549 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21554 CALL sp8(999999999);
21558 DROP PROCEDURE IF EXISTS sp9;
21562 CREATE PROCEDURE sp9( f1 decimal (0) zerofill)
21564 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21569 CALL sp9(-1.00e+09);
21572 DROP PROCEDURE IF EXISTS sp10;
21576 CREATE PROCEDURE sp10( f1 decimal (0, 0))
21578 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21583 CALL sp10(-1.00e+09);
21586 DROP PROCEDURE IF EXISTS sp11;
21590 CREATE PROCEDURE sp11( f1 decimal (0, 0) unsigned)
21592 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21597 CALL sp11(99999999999);
21600 DROP PROCEDURE IF EXISTS sp12;
21604 CREATE PROCEDURE sp12( f1 decimal (0, 0) unsigned zerofill)
21606 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21611 CALL sp12(999999999);
21614 DROP PROCEDURE IF EXISTS sp13;
21618 CREATE PROCEDURE sp13( f1 decimal (0, 0) zerofill)
21620 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21625 CALL sp13(-1.00e+09);
21628 DROP PROCEDURE IF EXISTS sp14;
21632 CREATE PROCEDURE sp14( f1 decimal (63, 30))
21634 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21639 CALL sp14(-1.00e+21);
21643 DROP PROCEDURE IF EXISTS sp15;
21647 CREATE PROCEDURE sp15( f1 decimal (63, 30) unsigned)
21649 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21654 CALL sp15(1.00e+16);
21658 DROP PROCEDURE IF EXISTS sp16;
21662 CREATE PROCEDURE sp16( f1 decimal (63, 30) unsigned zerofill)
21664 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21669 CALL sp16(1.00e+16);
21673 DROP PROCEDURE IF EXISTS sp17;
21677 CREATE PROCEDURE sp17( f1 decimal (63, 30) zerofill)
21679 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21684 CALL sp17(-1.00e+21);
21687 DROP PROCEDURE IF EXISTS sp18_d;
21691 CREATE PROCEDURE sp18_d( f1 decimal (64))
21693 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21698 CALL sp18_d(-1.00e+30);
21699 eval CALL sp18_d( $minus_30 );
21702 DROP PROCEDURE IF EXISTS sp19_du;
21706 CREATE PROCEDURE sp19_du( f1 decimal (64) unsigned)
21708 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21713 CALL sp19_du(1.00e+20);
21714 eval CALL sp19_du( $plus_20 );
21715 CALL sp19_du(1.00e+24);
21716 eval CALL sp19_du( $plus_24 );
21719 DROP PROCEDURE IF EXISTS sp20_duz;
21723 CREATE PROCEDURE sp20_duz( f1 decimal (64) unsigned zerofill)
21725 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21730 CALL sp20_duz(1.00e+20);
21731 eval CALL sp20_duz( $plus_20 );
21732 CALL sp20_duz(1.00e+24);
21733 eval CALL sp20_duz( $plus_24 );
21736 DROP PROCEDURE IF EXISTS sp21;
21740 CREATE PROCEDURE sp21( f1 decimal (64) zerofill)
21742 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21747 CALL sp21(1.00e+00);
21750 DROP PROCEDURE IF EXISTS sp22;
21754 CREATE PROCEDURE sp22( f1 decimal unsigned)
21756 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21761 CALL sp22(1.00e+00);
21764 DROP PROCEDURE IF EXISTS sp23;
21768 CREATE PROCEDURE sp23( f1 decimal unsigned zerofill)
21770 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21775 CALL sp23(1.00e+00);
21778 DROP PROCEDURE IF EXISTS sp24;
21782 CREATE PROCEDURE sp24( f1 decimal zerofill)
21784 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21789 CALL sp24(-1.00e+09);
21792 DROP PROCEDURE IF EXISTS sp25;
21796 CREATE PROCEDURE sp25( f1 double)
21798 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21803 CALL sp25(1.00e+00);
21806 DROP PROCEDURE IF EXISTS sp26;
21810 CREATE PROCEDURE sp26( f1 double unsigned)
21812 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21817 CALL sp26(1.00e+00);
21820 DROP PROCEDURE IF EXISTS sp27;
21824 CREATE PROCEDURE sp27( f1 double unsigned zerofill)
21826 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21831 CALL sp27(1.00e+00);
21834 DROP PROCEDURE IF EXISTS sp28;
21838 CREATE PROCEDURE sp28( f1 double zerofill)
21840 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21845 CALL sp28(1.00e+00);
21848 DROP PROCEDURE IF EXISTS sp29;
21852 CREATE PROCEDURE sp29( f1 float)
21854 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21859 CALL sp29(1.00e+00);
21862 DROP PROCEDURE IF EXISTS sp30;
21866 CREATE PROCEDURE sp30( f1 float unsigned)
21868 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21873 CALL sp30(1.00e+00);
21876 DROP PROCEDURE IF EXISTS sp31;
21880 CREATE PROCEDURE sp31( f1 float unsigned zerofill)
21882 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21887 CALL sp31(1.00e+00);
21890 DROP PROCEDURE IF EXISTS sp32;
21894 CREATE PROCEDURE sp32( f1 float zerofill)
21896 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21901 CALL sp32(1.00e+00);
21904 DROP PROCEDURE IF EXISTS sp33;
21908 CREATE PROCEDURE sp33( f1 float(0))
21910 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21915 CALL sp33(1.00e+00);
21918 DROP PROCEDURE IF EXISTS sp34;
21922 CREATE PROCEDURE sp34( f1 float(0) unsigned)
21924 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21929 CALL sp34(1.00e+00);
21932 DROP PROCEDURE IF EXISTS sp35;
21936 CREATE PROCEDURE sp35( f1 float(0) unsigned zerofill)
21938 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21943 CALL sp35(1.00e+00);
21946 DROP PROCEDURE IF EXISTS sp36;
21950 CREATE PROCEDURE sp36( f1 float(0) zerofill)
21952 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21957 CALL sp36(1.00e+00);
21960 DROP PROCEDURE IF EXISTS sp37;
21964 CREATE PROCEDURE sp37( f1 float(23))
21966 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21971 CALL sp37(1.00e+00);
21974 DROP PROCEDURE IF EXISTS sp38;
21978 CREATE PROCEDURE sp38( f1 float(23) unsigned)
21980 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21985 CALL sp38(1.00e+00);
21988 DROP PROCEDURE IF EXISTS sp39;
21992 CREATE PROCEDURE sp39( f1 float(23) unsigned zerofill)
21994 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
21999 CALL sp39(1.00e+00);
22002 DROP PROCEDURE IF EXISTS sp40;
22006 CREATE PROCEDURE sp40( f1 float(23) zerofill)
22008 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22013 CALL sp40(1.00e+00);
22016 DROP PROCEDURE IF EXISTS sp41;
22020 CREATE PROCEDURE sp41( f1 float(24))
22022 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22027 CALL sp41(1.00e+00);
22030 DROP PROCEDURE IF EXISTS sp42;
22034 CREATE PROCEDURE sp42( f1 float(24) unsigned)
22036 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22041 CALL sp42(1.00e+00);
22044 DROP PROCEDURE IF EXISTS sp43;
22048 CREATE PROCEDURE sp43( f1 float(24) unsigned zerofill)
22050 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22055 CALL sp43(1.00e+00);
22058 DROP PROCEDURE IF EXISTS sp44;
22062 CREATE PROCEDURE sp44( f1 float(24) zerofill)
22064 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22069 CALL sp44(1.00e+00);
22072 DROP PROCEDURE IF EXISTS sp45;
22076 CREATE PROCEDURE sp45( f1 float(53))
22078 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22083 CALL sp45(1.00e+00);
22086 DROP PROCEDURE IF EXISTS sp46;
22090 CREATE PROCEDURE sp46( f1 float(53) unsigned)
22092 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22097 CALL sp46(1.00e+00);
22100 DROP PROCEDURE IF EXISTS sp47;
22104 CREATE PROCEDURE sp47( f1 float(53) unsigned zerofill)
22106 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22111 CALL sp47(1.00e+00);
22114 DROP PROCEDURE IF EXISTS sp48;
22118 CREATE PROCEDURE sp48( f1 float(53) zerofill)
22120 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22125 CALL sp48(1.00e+00);
22128 DROP PROCEDURE IF EXISTS sp49;
22132 CREATE PROCEDURE sp49( f1 int)
22134 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22139 CALL sp49(-2.15e+09);
22142 DROP PROCEDURE IF EXISTS sp50;
22146 CREATE PROCEDURE sp50( f1 int unsigned)
22148 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22153 CALL sp50(4.29e+09);
22156 DROP PROCEDURE IF EXISTS sp51;
22160 CREATE PROCEDURE sp51( f1 int unsigned zerofill)
22162 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22167 CALL sp51(4.29e+09);
22170 DROP PROCEDURE IF EXISTS sp52;
22174 CREATE PROCEDURE sp52( f1 int zerofill)
22176 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22181 CALL sp52(2.15e+08);
22184 DROP PROCEDURE IF EXISTS sp53;
22188 CREATE PROCEDURE sp53( f1 mediumint)
22190 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22195 CALL sp53(-8388600);
22198 DROP PROCEDURE IF EXISTS sp54;
22202 CREATE PROCEDURE sp54( f1 mediumint unsigned)
22204 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22209 CALL sp54(16777201);
22212 DROP PROCEDURE IF EXISTS sp55;
22216 CREATE PROCEDURE sp55( f1 mediumint unsigned zerofill)
22218 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22223 CALL sp55(16777210);
22226 DROP PROCEDURE IF EXISTS sp56;
22230 CREATE PROCEDURE sp56( f1 mediumint zerofill)
22232 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22237 CALL sp56(-8388601);
22240 DROP PROCEDURE IF EXISTS sp57;
22244 CREATE PROCEDURE sp57( f1 numeric)
22246 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22251 CALL sp57(-999999999);
22254 DROP PROCEDURE IF EXISTS sp58;
22258 CREATE PROCEDURE sp58( f1 numeric (0))
22260 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22265 CALL sp58(-999999999);
22268 DROP PROCEDURE IF EXISTS sp59;
22272 CREATE PROCEDURE sp59( f1 numeric (0) unsigned)
22274 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22279 CALL sp59(9999999999);
22282 DROP PROCEDURE IF EXISTS sp60;
22286 CREATE PROCEDURE sp60( f1 numeric (0) unsigned zerofill)
22288 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22293 CALL sp60(99999999);
22296 DROP PROCEDURE IF EXISTS sp61;
22300 CREATE PROCEDURE sp61( f1 numeric (0) zerofill)
22302 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22307 CALL sp61(-99999999);
22310 DROP PROCEDURE IF EXISTS sp62;
22314 CREATE PROCEDURE sp62( f1 numeric (0, 0))
22316 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22321 CALL sp62(-999999999);
22324 DROP PROCEDURE IF EXISTS sp63;
22328 CREATE PROCEDURE sp63( f1 numeric (0, 0) unsigned)
22330 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22335 CALL sp63(9999999999);
22339 DROP PROCEDURE IF EXISTS sp64;
22343 CREATE PROCEDURE sp64( f1 numeric (0, 0) unsigned zerofill)
22345 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22350 CALL sp64(99999999);
22354 DROP PROCEDURE IF EXISTS sp65;
22358 CREATE PROCEDURE sp65( f1 numeric (0, 0) zerofill)
22360 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22365 CALL sp65(-99999999);
22369 DROP PROCEDURE IF EXISTS sp66_n;
22373 CREATE PROCEDURE sp66_n( f1 numeric (63, 30))
22375 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22380 CALL sp66_n(-1e+36);
22381 eval CALL sp66_n( $minus_36 );
22384 DROP PROCEDURE IF EXISTS sp67_nu;
22388 CREATE PROCEDURE sp67_nu( f1 numeric (63, 30) unsigned)
22390 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22395 CALL sp67_nu(1e+36);
22396 eval CALL sp67_nu( $plus_36 );
22400 DROP PROCEDURE IF EXISTS sp68_nuz;
22404 CREATE PROCEDURE sp68_nuz( f1 numeric (63, 30) unsigned zerofill)
22406 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22411 CALL sp68_nuz(1e+36);
22412 eval CALL sp68_nuz( $plus_36 );
22416 DROP PROCEDURE IF EXISTS sp69_n_z;
22420 CREATE PROCEDURE sp69_n_z( f1 numeric (63, 30) zerofill)
22422 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22427 CALL sp69_n_z(-1e+36);
22428 eval CALL sp69_n_z( $minus_36 );
22432 DROP PROCEDURE IF EXISTS sp70_n;
22436 CREATE PROCEDURE sp70_n( f1 numeric (64))
22438 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22444 CALL sp70_n(-1e+40);
22446 eval CALL sp70_n( $minus_40 );
22450 DROP PROCEDURE IF EXISTS sp71_nu;
22454 CREATE PROCEDURE sp71_nu( f1 numeric (64) unsigned)
22456 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22462 CALL sp71_nu(1.00e+40);
22464 eval CALL sp71_nu( $plus_40 );
22468 DROP PROCEDURE IF EXISTS sp72_nuz;
22472 CREATE PROCEDURE sp72_nuz( f1 numeric (64) unsigned zerofill)
22474 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22480 CALL sp72_nuz(1.00e+40);
22482 eval CALL sp72_nuz( $plus_40 );
22486 DROP PROCEDURE IF EXISTS sp73_n_z;
22490 CREATE PROCEDURE sp73_n_z( f1 numeric (64) zerofill)
22492 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22498 CALL sp73_n_z(1.00e+40);
22500 eval CALL sp73_n_z( $plus_40 );
22504 DROP PROCEDURE IF EXISTS sp74;
22508 CREATE PROCEDURE sp74( f1 numeric unsigned)
22510 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22515 CALL sp74(999999999);
22518 DROP PROCEDURE IF EXISTS sp75;
22522 CREATE PROCEDURE sp75( f1 numeric unsigned zerofill)
22524 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22529 CALL sp75(999999999);
22532 DROP PROCEDURE IF EXISTS sp76;
22536 CREATE PROCEDURE sp76( f1 numeric zerofill)
22538 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22543 CALL sp76(-999999999);
22546 DROP PROCEDURE IF EXISTS sp77;
22550 CREATE PROCEDURE sp77( f1 real)
22552 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22560 DROP PROCEDURE IF EXISTS sp78;
22564 CREATE PROCEDURE sp78( f1 real unsigned)
22566 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22574 DROP PROCEDURE IF EXISTS sp79;
22578 CREATE PROCEDURE sp79( f1 real unsigned zerofill)
22580 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22588 DROP PROCEDURE IF EXISTS sp80;
22592 CREATE PROCEDURE sp80( f1 real zerofill)
22594 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22602 DROP PROCEDURE IF EXISTS sp81;
22606 CREATE PROCEDURE sp81( f1 smallint)
22608 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22616 DROP PROCEDURE IF EXISTS sp82;
22620 CREATE PROCEDURE sp82( f1 smallint unsigned)
22622 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22630 DROP PROCEDURE IF EXISTS sp83;
22634 CREATE PROCEDURE sp83( f1 smallint unsigned zerofill)
22636 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22644 DROP PROCEDURE IF EXISTS sp84;
22648 CREATE PROCEDURE sp84( f1 smallint zerofill)
22650 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22658 DROP PROCEDURE IF EXISTS sp85;
22662 CREATE PROCEDURE sp85( f1 tinyint)
22664 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22672 DROP PROCEDURE IF EXISTS sp86;
22676 CREATE PROCEDURE sp86( f1 tinyint unsigned)
22678 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22686 DROP PROCEDURE IF EXISTS sp87;
22690 CREATE PROCEDURE sp87( f1 tinyint unsigned zerofill)
22692 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22700 DROP PROCEDURE IF EXISTS sp88;
22704 CREATE PROCEDURE sp88( f1 tinyint zerofill)
22706 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
22714 DROP PROCEDURE IF EXISTS sp89;
22718 CREATE PROCEDURE sp89( f1 enum('1enum', '2enum'))
22720 IF f1 = '1enum' THEN set f1 = '2enum'; ELSE set f1 = '1enum'; END IF;
22724 CALL sp89( '1enum');
22727 DROP PROCEDURE IF EXISTS sp90;
22731 CREATE PROCEDURE sp90( f1 set('1set', '2set'))
22733 IF f1 = '1set' THEN set f1 = '2set'; ELSE set f1 = '1set'; END IF;
22737 CALL sp90( '1set');
22740 DROP PROCEDURE IF EXISTS sp91;
22744 CREATE PROCEDURE sp91( f1 date)
22746 set f1 = adddate(f1, interval 31 day);
22751 CALL sp91( '1997-12-31');
22754 DROP PROCEDURE IF EXISTS sp92;
22758 CREATE PROCEDURE sp92( f1 time)
22760 set f1 = addtime(f1, '02:00:00.999998');
22765 CALL sp92( '23:59:59.999999');
22768 DROP PROCEDURE IF EXISTS sp93;
22772 CREATE PROCEDURE sp93( f1 datetime)
22774 set f1 = addtime(f1, '1 1:1:1.000002');
22779 CALL sp93('1997-12-31 23:59:59.999999');
22782 DROP PROCEDURE IF EXISTS sp94;
22786 CREATE PROCEDURE sp94( f1 char)
22788 set f1 = concat('a', f1);
22796 DROP PROCEDURE IF EXISTS sp95;
22800 CREATE PROCEDURE sp95( f1 char ascii)
22802 set f1 = concat('a', f1);
22811 DROP PROCEDURE IF EXISTS sp96;
22815 CREATE PROCEDURE sp96( f1 char binary)
22817 set f1 = concat('a', f1);
22826 DROP PROCEDURE IF EXISTS sp97;
22830 CREATE PROCEDURE sp97( f1 longtext)
22832 set f1 = concat('hello', f1);
22837 CALL sp97( 'world');
22840 DROP PROCEDURE IF EXISTS sp98;
22844 CREATE PROCEDURE sp98( f1 mediumtext)
22846 set f1 = concat('hello', f1);
22851 CALL sp98( 'world');
22854 DROP PROCEDURE IF EXISTS sp99;
22858 CREATE PROCEDURE sp99( f1 text)
22860 set f1 = concat('hello', f1);
22865 CALL sp99( 'world');
22868 DROP PROCEDURE IF EXISTS sp100;
22872 CREATE PROCEDURE sp100( f1 tinytext)
22874 set f1 = concat('hello', f1);
22879 CALL sp100( 'world');
22882 DROP PROCEDURE IF EXISTS sp101;
22886 CREATE PROCEDURE sp101( f1 year)
22896 DROP PROCEDURE IF EXISTS sp102;
22900 CREATE PROCEDURE sp102( f1 year(4))
22910 DROP PROCEDURE IF EXISTS sp103;
22914 CREATE PROCEDURE sp103( f1 geometrycollection)
22921 CALL sp103('\0\0\0\0
\x01\x03\0\0\0
\x02\0\0\0
\x05\0\0\0\0\0\0\0\0\0?\0\0\0\0\0\0?\0\0\0\0\0\04@\0\0\0\0\0\0?\0\0\0\0\0\04@\0\0\0\0\0\04@\0\0\0\0\0\0?\0\0\0\0\0\04@\0\0\0\0\0\0?\0\0\0\0\0\0?
\x05\0\0\0\0\0\0\0\0\0
\x18@\0\0\0\0\0\0
\x18@\0\0\0\0\0\0 @\0\0\0\0\0\0
\x18@\0\0\0\0\0\0 @\0\0\0\0\0\0 @\0\0\0\0\0\0
\x18@\0\0\0\0\0\0 @\0\0\0\0\0\0
\x18@\0\0\0\0\0\0
\x18@');
22924 DROP PROCEDURE IF EXISTS sp104;
22928 CREATE PROCEDURE sp104( f1 linestring)
22935 CALL sp104('\0\0\0\0
\x01\x02\0\0\0
\x03\0\0\0\0\0\0\0\0\0?\0\0\0\0\0\0?\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0
\b@\0\0\0\0\0\0
\b@');
22938 DROP PROCEDURE IF EXISTS sp105;
22942 CREATE PROCEDURE sp105( f1 point)
22949 CALL sp105('\0\0\0\0
\x01\x01\0\0\0\0\0\0\0\0\04@\0\0\0\0\0\04@');
22952 DROP PROCEDURE IF EXISTS sp106;
22956 CREATE PROCEDURE sp106( f1 polygon)
22963 CALL sp106('\0\0\0\0
\x01\x03\0\0\0
\x02\0\0\0
\x05\0\0\0\0\0\0\0\0\0?\0\0\0\0\0\0?\0\0\0\0\0\04@\0\0\0\0\0\0?\0\0\0\0\0\04@\0\0\0\0\0\04@\0\0\0\0\0\0?\0\0\0\0\0\04@\0\0\0\0\0\0?\0\0\0\0\0\0?
\x05\0\0\0\0\0\0\0\0\0
\x18@\0\0\0\0\0\0
\x18@\0\0\0\0\0\0 @\0\0\0\0\0\0
\x18@\0\0\0\0\0\0 @\0\0\0\0\0\0 @\0\0\0\0\0\0
\x18@\0\0\0\0\0\0 @\0\0\0\0\0\0
\x18@\0\0\0\0\0\0
\x18@');
22966 DROP PROCEDURE IF EXISTS sp107;
22970 CREATE PROCEDURE sp107( f1 timestamp)
22972 set f1 = now() + 0 + f1;
22977 --replace_column 1 returned
22978 CALL sp107(2.00e+13);
22984 # ==============================================================================
22985 # test plan section: 4.5 - parameter checks - multiple data types in stored procedure and functions
22986 # ==============================================================================
22989 DROP DATABASE IF EXISTS db1;
22992 CREATE DATABASE db1;
22996 DROP PROCEDURE IF EXISTS sp1;
22998 CREATE PROCEDURE sp1( in f1 year, inout f2 year, out f3 year, in f4 year,
22999 inout f5 year, out f6 year, in f7 year(4), inout f8 year(4),
23000 out f9 year(4), in f10 year(4), inout f11 year(4), out f12 year(4))
23002 set f1 = f1 + 10; set f2 = f2 + 10; set f3 = f2 + 10;
23003 set f4 = f4 + 10; set f5 = f5 + 10; set f6 = f5 + 10;
23004 set f7 = f7 + 51; set f8 = f8 + 51; set f9 = f8 + 51;
23005 set f10 = f10 + 51; set f11 = f11 + 51; set f12 = f11 + 51;
23006 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23010 DROP PROCEDURE IF EXISTS spexecute01;
23012 CREATE PROCEDURE spexecute01()
23018 declare var5 year(4);
23019 declare var6 year(4);
23020 declare var7 year(4);
23021 declare var8 year(4);
23026 CALL sp1(51, var1, var2, 51, var3, var4, 1982, var5, var6, 1982, var7, var8);
23027 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23031 CALL spexecute01();
23032 DROP PROCEDURE spexecute01;
23033 DROP PROCEDURE sp1;
23036 DROP PROCEDURE IF EXISTS sp2;
23038 CREATE PROCEDURE sp2( in f1 text, inout f2 text, out f3 text, in f4 text, inout f5 text,
23039 out f6 text, in f7 tinytext, inout f8 tinytext, out f9 tinytext,
23040 in f10 tinytext, inout f11 tinytext, out f12 tinytext)
23042 set f1 = concat('hello', f1); set f2 = concat('hello', f2); set f3 = concat('hello', f2);
23043 set f4 = concat('hello', f4); set f5 = concat('hello', f5); set f6 = concat('hello', f5);
23044 set f7 = concat('hello', f7); set f8 = concat('hello', f8); set f9 = concat('hello', f8);
23045 set f10 = concat('hello', f10); set f11 = concat('hello', f11); set f12 = concat('hello', f11);
23046 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23050 DROP PROCEDURE IF EXISTS spexecute02;
23052 CREATE PROCEDURE spexecute02()
23058 declare var5 tinytext;
23059 declare var6 tinytext;
23060 declare var7 tinytext;
23061 declare var8 tinytext;
23062 set var1 = 'world';
23063 set var3 = 'world';
23064 set var5 = 'world';
23065 set var7 = 'world';
23066 CALL sp2( 'world', var1, var2, 'world', var3, var4, 'world', var5, var6, 'world', var7, var8);
23067 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23071 CALL spexecute02();
23072 DROP PROCEDURE spexecute02;
23073 DROP PROCEDURE sp2;
23076 DROP PROCEDURE IF EXISTS sp3;
23078 CREATE PROCEDURE sp3( in f1 char, inout f2 char, out f3 char, in f4 char ascii,
23079 inout f5 char ascii, out f6 char ascii, in f7 longtext,
23080 inout f8 longtext, out f9 longtext, in f10 mediumtext,
23081 inout f11 mediumtext, out f12 mediumtext)
23083 set f1 = concat('a', f1); set f2 = concat('a', f2); set f3 = concat('a', f1);
23084 set f4 = concat('a', f4); set f5 = concat('a', f5); set f6 = concat('a', f4);
23085 set f7 = concat('hello', f7); set f8 = concat('hello', f8); set f9 = concat('hello', f9);
23086 set f10 = concat('hello', f10); set f11 = concat('hello', f11); set f12 = concat('hello', f11);
23087 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23091 DROP PROCEDURE IF EXISTS spexecute03;
23093 CREATE PROCEDURE spexecute03()
23097 declare var3 char ascii;
23098 declare var4 char ascii;
23099 declare var5 longtext;
23100 declare var6 longtext;
23101 declare var7 mediumtext;
23102 declare var8 mediumtext;
23105 set var5 = 'world';
23106 set var7 = 'world';
23107 CALL sp3( 'h', var1, var2, 'h', var3, var4, 'world', var5, var6, 'world', var7, var8);
23108 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23112 CALL spexecute03();
23114 DROP PROCEDURE spexecute03;
23115 DROP PROCEDURE sp3;
23118 DROP PROCEDURE IF EXISTS sp4;
23120 CREATE PROCEDURE sp4( in f1 bigint, inout f2 bigint, out f3 bigint,
23121 in f4 bigint, inout f5 bigint, out f6 bigint,
23122 in f7 bigint, inout f8 bigint, out f9 bigint,
23123 in f10 bigint, inout f11 bigint, out f12 bigint)
23126 set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
23127 set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10);
23129 set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10);
23130 set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23132 set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10);
23133 set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23135 set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10);
23136 set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23137 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23141 DROP PROCEDURE IF EXISTS spexecute04;
23143 CREATE PROCEDURE spexecute04()
23145 declare var1 bigint;
23146 declare var2 bigint;
23147 declare var3 bigint;
23148 declare var4 bigint;
23149 declare var5 bigint;
23150 declare var6 bigint;
23151 declare var7 bigint;
23152 declare var8 bigint;
23153 set var1 = -9.22e+18;
23154 set var3 = -9.22e+18;
23155 set var5 = -9.22e+18;
23156 set var7 = -9.22e+18;
23157 CALL sp4(-9.22e+18, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23158 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23162 CALL spexecute04();
23163 DROP PROCEDURE spexecute04;
23164 DROP PROCEDURE sp4;
23168 DROP PROCEDURE IF EXISTS sp6;
23170 CREATE PROCEDURE sp6( in f1 timestamp, inout f2 timestamp, out f3 timestamp, in f4 timestamp, inout f5 timestamp, out f6 timestamp, in f7 timestamp, inout f8 timestamp, out f9 timestamp, in f10 timestamp, inout f11 timestamp, out f12 timestamp)
23172 set f1 = now() + 0 + f1; set f2 = now() + 0 + f2; set f3 = now() + 0 + f1;
23173 set f4 = now() + 0 + f4; set f5 = now() + 0 + f5; set f6 = now() + 0 + f5;
23174 set f7 = now() + 0 + f7; set f8 = now() + 0 + f8; set f9 = now() + 0 + f8;
23175 set f10 = now() + 0 + f10; set f11 = now() + 0 + f11; set f12 = now() + 0 + f11;
23176 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23180 DROP PROCEDURE IF EXISTS spexecute06;
23182 CREATE PROCEDURE spexecute06()
23184 declare var1 timestamp;
23185 declare var2 timestamp;
23186 declare var3 timestamp;
23187 declare var4 timestamp;
23188 declare var5 timestamp;
23189 declare var6 timestamp;
23190 declare var7 timestamp;
23191 declare var8 timestamp;
23192 set var1 = 2.00e+13;
23193 set var3 = 2.00e+13;
23194 set var5 = 2.00e+13;
23195 set var7 = 2.00e+13;
23196 CALL sp6(2.00e+13, var1, var2, 2.00e+13, var3, var4, 2.00e+13, var5, var6, 2.00e+13, var7, var8);
23200 --replace_column 1 returned 2 returned 3 returned 4 returned 5 returned 6 returned 7 returned 8 returned 9 returned 10 returned 11 returned 12 returned
23201 CALL spexecute06();
23202 DROP PROCEDURE spexecute06;
23203 DROP PROCEDURE sp6;
23206 DROP PROCEDURE IF EXISTS sp07;
23208 CREATE PROCEDURE sp07( IN f1 BIGINT UNSIGNED,
23209 INOUT f2 BIGINT UNSIGNED,
23210 OUT f3 BIGINT UNSIGNED,
23224 SELECT f10, f11, f12;
23226 set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
23227 set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10);
23228 set f3 = (f3 * 2); set f3 = (f3 - 10); set f3 = (f3 + 10);
23230 set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10);
23231 set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23233 set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10);
23234 set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23236 set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10);
23237 set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23241 SELECT f10, f11, f12;
23245 DROP PROCEDURE IF EXISTS spexecute07;
23247 CREATE PROCEDURE spexecute07()
23249 declare var1 bigint unsigned;
23250 declare var2 bigint unsigned;
23251 declare var3 bigint;
23252 declare var4 bigint;
23253 declare var5 bigint;
23254 declare var6 bigint;
23255 declare var7 bigint;
23256 declare var8 bigint;
23257 set var1 = 1.84e+19;
23258 set var3 = -9.22e+18;
23259 set var5 = -9.22e+18;
23260 set var7 = -9.22e+18;
23265 CALL sp07( var1, var1, var2, var3, var3, var4,
23266 var5, var5, var6, var7, var7, var8 );
23274 CALL spexecute07();
23275 DROP PROCEDURE spexecute07;
23276 DROP PROCEDURE sp07;
23279 DROP PROCEDURE IF EXISTS sp8;
23281 CREATE PROCEDURE sp8( in f1 bigint unsigned zerofill,
23282 inout f2 bigint unsigned zerofill,
23283 out f3 bigint unsigned zerofill,
23294 set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
23295 set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10);
23296 set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23298 set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10);
23299 set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23301 set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10);
23302 set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23304 set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10);
23305 set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23306 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23310 DROP PROCEDURE IF EXISTS spexecute08;
23312 CREATE PROCEDURE spexecute08()
23314 declare var1 bigint unsigned zerofill;
23315 declare var2 bigint unsigned zerofill;
23316 declare var3 bigint;
23317 declare var4 bigint;
23318 declare var5 bigint;
23319 declare var6 bigint;
23320 declare var7 bigint;
23321 declare var8 bigint;
23322 set var1 = 1.84e+17;
23323 set var3 = -9.22e+18;
23324 set var5 = -9.22e+18;
23325 set var7 = -9.22e+18;
23326 CALL sp8(1.84e+17, var1, var2, -9.22e+18, var3, var4,
23327 -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23328 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23332 CALL spexecute08();
23333 DROP PROCEDURE spexecute08;
23334 DROP PROCEDURE sp8;
23337 DROP PROCEDURE IF EXISTS sp9;
23339 CREATE PROCEDURE sp9( in f1 bigint zerofill,
23340 inout f2 bigint zerofill,
23341 out f3 bigint zerofill,
23353 set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
23354 set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10);
23355 set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23357 set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10);
23358 set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23360 set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10);
23361 set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23363 set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10);
23364 set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23365 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23369 DROP PROCEDURE IF EXISTS spexecute09;
23371 CREATE PROCEDURE spexecute09()
23373 declare var1 bigint zerofill;
23374 declare var2 bigint zerofill;
23375 declare var3 bigint;
23376 declare var4 bigint;
23377 declare var5 bigint;
23378 declare var6 bigint;
23379 declare var7 bigint;
23380 declare var8 bigint;
23381 set var1 = -9.22e+15;
23382 set var3 = -9.22e+18;
23383 set var5 = -9.22e+18;
23384 set var7 = -9.22e+18;
23385 CALL sp9(-9.22e+15, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23386 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23390 CALL spexecute09();
23391 DROP PROCEDURE spexecute09;
23392 DROP PROCEDURE sp9;
23395 DROP PROCEDURE IF EXISTS sp10;
23397 CREATE PROCEDURE sp10( in f1 decimal,
23411 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23412 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23413 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23414 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23415 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23419 DROP PROCEDURE IF EXISTS spexecute10;
23421 CREATE PROCEDURE spexecute10()
23423 declare var1 decimal;
23424 declare var2 decimal;
23425 declare var3 bigint;
23426 declare var4 bigint;
23427 declare var5 bigint;
23428 declare var6 bigint;
23429 declare var7 bigint;
23430 declare var8 bigint;
23431 set var1 = -1.00e+09;
23432 set var3 = -9.22e+18;
23433 set var5 = -9.22e+18;
23434 set var7 = -9.22e+18;
23435 CALL sp10(-1.00e+09, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23436 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23440 CALL spexecute10();
23441 DROP PROCEDURE spexecute10;
23442 DROP PROCEDURE sp10;
23445 DROP PROCEDURE IF EXISTS sp11;
23447 CREATE PROCEDURE sp11( in f1 decimal (0), inout f2 decimal (0), out f3 decimal (0), in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
23450 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23451 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23452 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23453 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23454 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23458 DROP PROCEDURE IF EXISTS spexecute11;
23460 CREATE PROCEDURE spexecute11()
23462 declare var1 decimal (0);
23463 declare var2 decimal (0);
23464 declare var3 bigint;
23465 declare var4 bigint;
23466 declare var5 bigint;
23467 declare var6 bigint;
23468 declare var7 bigint;
23469 declare var8 bigint;
23470 set var1 = --1.00e+09;
23471 set var3 = -9.22e+18;
23472 set var5 = -9.22e+18;
23473 set var7 = -9.22e+18;
23474 CALL sp11(--1.00e+09, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23475 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23479 CALL spexecute11();
23480 DROP PROCEDURE spexecute11;
23481 DROP PROCEDURE sp11;
23484 DROP PROCEDURE IF EXISTS sp12;
23486 CREATE PROCEDURE sp12( in f1 decimal (0) unsigned, inout f2 decimal (0) unsigned, out f3 decimal (0) unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
23489 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23490 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23491 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23492 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23493 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23497 DROP PROCEDURE IF EXISTS spexecute12;
23499 CREATE PROCEDURE spexecute12()
23501 declare var1 decimal (0) unsigned;
23502 declare var2 decimal (0) unsigned;
23503 declare var3 bigint;
23504 declare var4 bigint;
23505 declare var5 bigint;
23506 declare var6 bigint;
23507 declare var7 bigint;
23508 declare var8 bigint;
23509 set var1 = 99999999999;
23510 set var3 = -9.22e+18;
23511 set var5 = -9.22e+18;
23512 set var7 = -9.22e+18;
23513 CALL sp12(99999999999, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23514 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23518 CALL spexecute12();
23519 DROP PROCEDURE spexecute12;
23520 DROP PROCEDURE sp12;
23523 DROP PROCEDURE IF EXISTS sp13;
23525 CREATE PROCEDURE sp13( in f1 decimal (0, 0) zerofill, inout f2 decimal (0, 0) zerofill, out f3 decimal (0, 0) zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
23528 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23529 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23530 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23531 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23532 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23536 DROP PROCEDURE IF EXISTS spexecute13;
23538 CREATE PROCEDURE spexecute13()
23540 declare var1 decimal (0, 0) zerofill;
23541 declare var2 decimal (0, 0) zerofill;
23542 declare var3 bigint;
23543 declare var4 bigint;
23544 declare var5 bigint;
23545 declare var6 bigint;
23546 declare var7 bigint;
23547 declare var8 bigint;
23548 set var1 = -1.00e+09;
23549 set var3 = -9.22e+18;
23550 set var5 = -9.22e+18;
23551 set var7 = -9.22e+18;
23552 CALL sp13(-1.00e+09, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23553 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23557 CALL spexecute13();
23558 DROP PROCEDURE spexecute13;
23559 DROP PROCEDURE sp13;
23562 DROP PROCEDURE IF EXISTS sp14;
23564 CREATE PROCEDURE sp14( in f1 decimal (63, 30), inout f2 decimal (63, 30), out f3 decimal (63, 30), in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
23567 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23568 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23569 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23570 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23571 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23575 DROP PROCEDURE IF EXISTS spexecute14;
23577 CREATE PROCEDURE spexecute14()
23579 declare var1 decimal (63, 30);
23580 declare var2 decimal (63, 30);
23581 declare var3 bigint;
23582 declare var4 bigint;
23583 declare var5 bigint;
23584 declare var6 bigint;
23585 declare var7 bigint;
23586 declare var8 bigint;
23587 set var1 = -1.00e+21;
23588 set var3 = -9.22e+18;
23589 set var5 = -9.22e+18;
23590 set var7 = -9.22e+18;
23591 CALL sp14(-1.00e+21, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23592 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23596 CALL spexecute14();
23597 DROP PROCEDURE spexecute14;
23598 DROP PROCEDURE sp14;
23601 DROP PROCEDURE IF EXISTS sp15;
23603 CREATE PROCEDURE sp15( in f1 double, inout f2 double, out f3 double, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
23605 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23606 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23607 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23608 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23609 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23613 DROP PROCEDURE IF EXISTS spexecute15;
23615 CREATE PROCEDURE spexecute15()
23617 declare var1 double;
23618 declare var2 double;
23619 declare var3 bigint;
23620 declare var4 bigint;
23621 declare var5 bigint;
23622 declare var6 bigint;
23623 declare var7 bigint;
23624 declare var8 bigint;
23625 set var1 = 1.00e+00;
23626 set var3 = -9.22e+18;
23627 set var5 = -9.22e+18;
23628 set var7 = -9.22e+18;
23629 CALL sp15(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23630 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23634 CALL spexecute15();
23635 DROP PROCEDURE spexecute15;
23636 DROP PROCEDURE sp15;
23639 DROP PROCEDURE IF EXISTS sp16;
23641 CREATE PROCEDURE sp16( in f1 double zerofill, inout f2 double zerofill, out f3 double zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
23643 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23644 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23645 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23646 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23647 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23651 DROP PROCEDURE IF EXISTS spexecute16;
23653 CREATE PROCEDURE spexecute16()
23655 declare var1 double zerofill;
23656 declare var2 double zerofill;
23657 declare var3 bigint;
23658 declare var4 bigint;
23659 declare var5 bigint;
23660 declare var6 bigint;
23661 declare var7 bigint;
23662 declare var8 bigint;
23663 set var1 = 1.00e+00;
23664 set var3 = -9.22e+18;
23665 set var5 = -9.22e+18;
23666 set var7 = -9.22e+18;
23667 CALL sp16(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23668 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23672 CALL spexecute16();
23673 DROP PROCEDURE spexecute16;
23674 DROP PROCEDURE sp16;
23677 DROP PROCEDURE IF EXISTS sp17;
23679 CREATE PROCEDURE sp17( in f1 double unsigned, inout f2 double unsigned, out f3 double unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
23681 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23682 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23683 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23684 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23685 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23689 DROP PROCEDURE IF EXISTS spexecute17;
23691 CREATE PROCEDURE spexecute17()
23693 declare var1 double unsigned;
23694 declare var2 double unsigned;
23695 declare var3 bigint;
23696 declare var4 bigint;
23697 declare var5 bigint;
23698 declare var6 bigint;
23699 declare var7 bigint;
23700 declare var8 bigint;
23701 set var1 = 1.00e+00;
23702 set var3 = -9.22e+18;
23703 set var5 = -9.22e+18;
23704 set var7 = -9.22e+18;
23705 CALL sp17(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23706 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23710 CALL spexecute17();
23711 DROP PROCEDURE spexecute17;
23712 DROP PROCEDURE sp17;
23715 DROP PROCEDURE IF EXISTS sp18;
23717 CREATE PROCEDURE sp18( in f1 double unsigned zerofill, inout f2 double unsigned zerofill, out f3 double unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
23719 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23720 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23721 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23722 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23723 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23727 DROP PROCEDURE IF EXISTS spexecute18;
23729 CREATE PROCEDURE spexecute18()
23731 declare var1 double unsigned zerofill;
23732 declare var2 double unsigned zerofill;
23733 declare var3 bigint;
23734 declare var4 bigint;
23735 declare var5 bigint;
23736 declare var6 bigint;
23737 declare var7 bigint;
23738 declare var8 bigint;
23739 set var1 = 1.00e+00;
23740 set var3 = -9.22e+18;
23741 set var5 = -9.22e+18;
23742 set var7 = -9.22e+18;
23743 CALL sp18(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23744 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23748 CALL spexecute18();
23749 DROP PROCEDURE spexecute18;
23750 DROP PROCEDURE sp18;
23753 DROP PROCEDURE IF EXISTS sp19;
23755 CREATE PROCEDURE sp19( in f1 float unsigned, inout f2 float unsigned, out f3 float unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
23757 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23758 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23759 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23760 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23761 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23765 DROP PROCEDURE IF EXISTS spexecute19;
23767 CREATE PROCEDURE spexecute19()
23769 declare var1 float unsigned;
23770 declare var2 float unsigned;
23771 declare var3 bigint;
23772 declare var4 bigint;
23773 declare var5 bigint;
23774 declare var6 bigint;
23775 declare var7 bigint;
23776 declare var8 bigint;
23777 set var1 = 1.00e+00;
23778 set var3 = -9.22e+18;
23779 set var5 = -9.22e+18;
23780 set var7 = -9.22e+18;
23781 CALL sp19(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23782 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23786 CALL spexecute19();
23787 DROP PROCEDURE spexecute19;
23788 DROP PROCEDURE sp19;
23791 DROP PROCEDURE IF EXISTS sp20;
23793 CREATE PROCEDURE sp20( in f1 float unsigned zerofill, inout f2 float unsigned zerofill, out f3 float unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
23795 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23796 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23797 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23798 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23799 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23803 DROP PROCEDURE IF EXISTS spexecute20;
23805 CREATE PROCEDURE spexecute20()
23807 declare var1 float unsigned zerofill;
23808 declare var2 float unsigned zerofill;
23809 declare var3 bigint;
23810 declare var4 bigint;
23811 declare var5 bigint;
23812 declare var6 bigint;
23813 declare var7 bigint;
23814 declare var8 bigint;
23815 set var1 = 1.00e+00;
23816 set var3 = -9.22e+18;
23817 set var5 = -9.22e+18;
23818 set var7 = -9.22e+18;
23819 CALL sp20(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23820 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23824 CALL spexecute20();
23825 DROP PROCEDURE spexecute20;
23826 DROP PROCEDURE sp20;
23829 DROP PROCEDURE IF EXISTS sp21;
23831 CREATE PROCEDURE sp21( in f1 float zerofill, inout f2 float zerofill, out f3 float zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
23833 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23834 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23835 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23836 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23837 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23841 DROP PROCEDURE IF EXISTS spexecute21;
23843 CREATE PROCEDURE spexecute21()
23845 declare var1 float zerofill;
23846 declare var2 float zerofill;
23847 declare var3 bigint;
23848 declare var4 bigint;
23849 declare var5 bigint;
23850 declare var6 bigint;
23851 declare var7 bigint;
23852 declare var8 bigint;
23853 set var1 = 1.00e+00;
23854 set var3 = -9.22e+18;
23855 set var5 = -9.22e+18;
23856 set var7 = -9.22e+18;
23857 CALL sp21(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23858 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23862 CALL spexecute21();
23863 DROP PROCEDURE spexecute21;
23864 DROP PROCEDURE sp21;
23867 DROP PROCEDURE IF EXISTS sp22;
23869 CREATE PROCEDURE sp22( in f1 float(0), inout f2 float(0), out f3 float(0), in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
23871 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23872 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23873 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23874 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23875 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23879 DROP PROCEDURE IF EXISTS spexecute22;
23881 CREATE PROCEDURE spexecute22()
23883 declare var1 float(0);
23884 declare var2 float(0);
23885 declare var3 bigint;
23886 declare var4 bigint;
23887 declare var5 bigint;
23888 declare var6 bigint;
23889 declare var7 bigint;
23890 declare var8 bigint;
23891 set var1 = 1.00e+00;
23892 set var3 = -9.22e+18;
23893 set var5 = -9.22e+18;
23894 set var7 = -9.22e+18;
23895 CALL sp22(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23896 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23900 CALL spexecute22();
23901 DROP PROCEDURE spexecute22;
23902 DROP PROCEDURE sp22;
23905 DROP PROCEDURE IF EXISTS sp23;
23907 CREATE PROCEDURE sp23( in f1 numeric, inout f2 numeric, out f3 numeric, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
23909 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23910 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23911 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23912 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23913 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23917 DROP PROCEDURE IF EXISTS spexecute23;
23919 CREATE PROCEDURE spexecute23()
23921 declare var1 numeric;
23922 declare var2 numeric;
23923 declare var3 bigint;
23924 declare var4 bigint;
23925 declare var5 bigint;
23926 declare var6 bigint;
23927 declare var7 bigint;
23928 declare var8 bigint;
23929 set var1 = -999999999;
23930 set var3 = -9.22e+18;
23931 set var5 = -9.22e+18;
23932 set var7 = -9.22e+18;
23933 CALL sp23(-999999999, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23934 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23938 CALL spexecute23();
23939 DROP PROCEDURE spexecute23;
23940 DROP PROCEDURE sp23;
23943 DROP PROCEDURE IF EXISTS sp24;
23945 CREATE PROCEDURE sp24( in f1 real, inout f2 real, out f3 real, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
23947 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23948 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23949 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23950 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23951 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23955 DROP PROCEDURE IF EXISTS spexecute24;
23957 CREATE PROCEDURE spexecute24()
23961 declare var3 bigint;
23962 declare var4 bigint;
23963 declare var5 bigint;
23964 declare var6 bigint;
23965 declare var7 bigint;
23966 declare var8 bigint;
23968 set var3 = -9.22e+18;
23969 set var5 = -9.22e+18;
23970 set var7 = -9.22e+18;
23971 CALL sp24(1.1, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
23972 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
23976 CALL spexecute24();
23977 DROP PROCEDURE spexecute24;
23978 DROP PROCEDURE sp24;
23981 DROP PROCEDURE IF EXISTS sp25;
23983 CREATE PROCEDURE sp25( in f1 smallint, inout f2 smallint, out f3 smallint, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
23985 set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
23986 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
23987 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
23988 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
23989 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
23993 DROP PROCEDURE IF EXISTS spexecute25;
23995 CREATE PROCEDURE spexecute25()
23997 declare var1 smallint;
23998 declare var2 smallint;
23999 declare var3 bigint;
24000 declare var4 bigint;
24001 declare var5 bigint;
24002 declare var6 bigint;
24003 declare var7 bigint;
24004 declare var8 bigint;
24006 set var3 = -9.22e+18;
24007 set var5 = -9.22e+18;
24008 set var7 = -9.22e+18;
24009 CALL sp25(-32701, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24010 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24014 CALL spexecute25();
24015 DROP PROCEDURE spexecute25;
24016 DROP PROCEDURE sp25;
24019 DROP PROCEDURE IF EXISTS sp26;
24021 CREATE PROCEDURE sp26( in f1 date, inout f2 date, out f3 date, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24023 set f1 = adddate(f1, interval 31 day); set f2 = adddate(f2, interval 31 day); set f3 = adddate(f2, interval 31 day);
24024 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24025 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24026 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24027 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24031 DROP PROCEDURE IF EXISTS spexecute26;
24033 CREATE PROCEDURE spexecute26()
24037 declare var3 bigint;
24038 declare var4 bigint;
24039 declare var5 bigint;
24040 declare var6 bigint;
24041 declare var7 bigint;
24042 declare var8 bigint;
24043 set var1 = '1997-12-31';
24044 set var3 = -9.22e+18;
24045 set var5 = -9.22e+18;
24046 set var7 = -9.22e+18;
24047 CALL sp26( '1997-12-31', var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24048 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24052 CALL spexecute26();
24053 DROP PROCEDURE spexecute26;
24054 DROP PROCEDURE sp26;
24057 DROP PROCEDURE IF EXISTS sp27;
24059 CREATE PROCEDURE sp27( in f1 time, inout f2 time, out f3 time, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24061 set f1 = addtime(f1, '02:00:00.999998'); set f2 = addtime(f2, '02:00:00.999998'); set f3 = addtime(f2, '02:00:00.999998');
24062 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24063 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24064 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24065 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24069 DROP PROCEDURE IF EXISTS spexecute27;
24071 CREATE PROCEDURE spexecute27()
24075 declare var3 bigint;
24076 declare var4 bigint;
24077 declare var5 bigint;
24078 declare var6 bigint;
24079 declare var7 bigint;
24080 declare var8 bigint;
24081 set var1 = '23:59:59.999999';
24082 set var3 = -9.22e+18;
24083 set var5 = -9.22e+18;
24084 set var7 = -9.22e+18;
24085 CALL sp27( '23:59:59.999999', var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24086 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24090 CALL spexecute27();
24091 DROP PROCEDURE spexecute27;
24092 DROP PROCEDURE sp27;
24095 DROP PROCEDURE IF EXISTS sp28;
24097 CREATE PROCEDURE sp28( in f1 datetime, inout f2 datetime, out f3 datetime, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24099 set f1 = addtime(f1, '1 1:1:1.000002'); set f2 = addtime(f2, '1 1:1:1.000002'); set f3 = addtime(f1, '1 1:1:1.000002');
24100 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24101 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24102 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24103 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24107 DROP PROCEDURE IF EXISTS spexecute28;
24109 CREATE PROCEDURE spexecute28()
24111 declare var1 datetime;
24112 declare var2 datetime;
24113 declare var3 bigint;
24114 declare var4 bigint;
24115 declare var5 bigint;
24116 declare var6 bigint;
24117 declare var7 bigint;
24118 declare var8 bigint;
24119 set var1 = '1997-12-31 23:59:59.999999';
24120 set var3 = -9.22e+18;
24121 set var5 = -9.22e+18;
24122 set var7 = -9.22e+18;
24123 CALL sp28('1997-12-31 23:59:59.999999', var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24124 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24128 CALL spexecute28();
24129 DROP PROCEDURE spexecute28;
24130 DROP PROCEDURE sp28;
24133 DROP PROCEDURE IF EXISTS sp29;
24135 CREATE PROCEDURE sp29( in f1 float(0) unsigned, inout f2 float(0) unsigned, out f3 float(0) unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24137 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24138 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24139 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24140 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24141 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24145 DROP PROCEDURE IF EXISTS spexecute29;
24147 CREATE PROCEDURE spexecute29()
24149 declare var1 float(0) unsigned;
24150 declare var2 float(0) unsigned;
24151 declare var3 bigint;
24152 declare var4 bigint;
24153 declare var5 bigint;
24154 declare var6 bigint;
24155 declare var7 bigint;
24156 declare var8 bigint;
24157 set var1 = 1.00e+00;
24158 set var3 = -9.22e+18;
24159 set var5 = -9.22e+18;
24160 set var7 = -9.22e+18;
24161 CALL sp29(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24162 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24166 CALL spexecute29();
24167 DROP PROCEDURE spexecute29;
24168 DROP PROCEDURE sp29;
24171 DROP PROCEDURE IF EXISTS sp30;
24173 CREATE PROCEDURE sp30( in f1 float(0) zerofill, inout f2 float(0) zerofill, out f3 float(0) zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24175 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24176 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24177 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24178 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24179 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24183 DROP PROCEDURE IF EXISTS spexecute30;
24185 CREATE PROCEDURE spexecute30()
24187 declare var1 float(0) zerofill;
24188 declare var2 float(0) zerofill;
24189 declare var3 bigint;
24190 declare var4 bigint;
24191 declare var5 bigint;
24192 declare var6 bigint;
24193 declare var7 bigint;
24194 declare var8 bigint;
24195 set var1 = 1.00e+00;
24196 set var3 = -9.22e+18;
24197 set var5 = -9.22e+18;
24198 set var7 = -9.22e+18;
24199 CALL sp30(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24200 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24204 CALL spexecute30();
24205 DROP PROCEDURE spexecute30;
24206 DROP PROCEDURE sp30;
24209 DROP PROCEDURE IF EXISTS sp31;
24211 CREATE PROCEDURE sp31( in f1 float(23), inout f2 float(23), out f3 float(23), in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24213 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24214 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24215 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24216 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24217 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24221 DROP PROCEDURE IF EXISTS spexecute31;
24223 CREATE PROCEDURE spexecute31()
24225 declare var1 float(23);
24226 declare var2 float(23);
24227 declare var3 bigint;
24228 declare var4 bigint;
24229 declare var5 bigint;
24230 declare var6 bigint;
24231 declare var7 bigint;
24232 declare var8 bigint;
24233 set var1 = 1.00e+00;
24234 set var3 = -9.22e+18;
24235 set var5 = -9.22e+18;
24236 set var7 = -9.22e+18;
24237 CALL sp31(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24238 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24242 CALL spexecute31();
24243 DROP PROCEDURE spexecute31;
24244 DROP PROCEDURE sp31;
24247 DROP PROCEDURE IF EXISTS sp32;
24249 CREATE PROCEDURE sp32( in f1 float(23) unsigned, inout f2 float(23) unsigned, out f3 float(23) unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24251 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24252 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24253 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24254 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24255 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24259 DROP PROCEDURE IF EXISTS spexecute32;
24261 CREATE PROCEDURE spexecute32()
24263 declare var1 float(23) unsigned;
24264 declare var2 float(23) unsigned;
24265 declare var3 bigint;
24266 declare var4 bigint;
24267 declare var5 bigint;
24268 declare var6 bigint;
24269 declare var7 bigint;
24270 declare var8 bigint;
24271 set var1 = 1.00e+00;
24272 set var3 = -9.22e+18;
24273 set var5 = -9.22e+18;
24274 set var7 = -9.22e+18;
24275 CALL sp32(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24276 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24280 CALL spexecute32();
24281 DROP PROCEDURE spexecute32;
24282 DROP PROCEDURE sp32;
24285 DROP PROCEDURE IF EXISTS sp33;
24287 CREATE PROCEDURE sp33( in f1 float(23) zerofill, inout f2 float(23) zerofill, out f3 float(23) zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24289 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24290 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24291 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24292 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24293 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24297 DROP PROCEDURE IF EXISTS spexecute33;
24299 CREATE PROCEDURE spexecute33()
24301 declare var1 float(23) zerofill;
24302 declare var2 float(23) zerofill;
24303 declare var3 bigint;
24304 declare var4 bigint;
24305 declare var5 bigint;
24306 declare var6 bigint;
24307 declare var7 bigint;
24308 declare var8 bigint;
24309 set var1 = 1.00e+00;
24310 set var3 = -9.22e+18;
24311 set var5 = -9.22e+18;
24312 set var7 = -9.22e+18;
24313 CALL sp33(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24314 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24318 CALL spexecute33();
24319 DROP PROCEDURE spexecute33;
24320 DROP PROCEDURE sp33;
24323 DROP PROCEDURE IF EXISTS sp34;
24325 CREATE PROCEDURE sp34( in f1 float(24), inout f2 float(24), out f3 float(24), in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24327 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24328 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24329 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24330 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24331 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24335 DROP PROCEDURE IF EXISTS spexecute34;
24337 CREATE PROCEDURE spexecute34()
24339 declare var1 float(24);
24340 declare var2 float(24);
24341 declare var3 bigint;
24342 declare var4 bigint;
24343 declare var5 bigint;
24344 declare var6 bigint;
24345 declare var7 bigint;
24346 declare var8 bigint;
24347 set var1 = 1.00e+00;
24348 set var3 = -9.22e+18;
24349 set var5 = -9.22e+18;
24350 set var7 = -9.22e+18;
24351 CALL sp34(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24352 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24356 CALL spexecute34();
24357 DROP PROCEDURE spexecute34;
24358 DROP PROCEDURE sp34;
24361 DROP PROCEDURE IF EXISTS sp35;
24363 CREATE PROCEDURE sp35( in f1 float(24) unsigned, inout f2 float(24) unsigned, out f3 float(24) unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24365 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24366 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24367 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24368 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24369 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24373 DROP PROCEDURE IF EXISTS spexecute35;
24375 CREATE PROCEDURE spexecute35()
24377 declare var1 float(24) unsigned;
24378 declare var2 float(24) unsigned;
24379 declare var3 bigint;
24380 declare var4 bigint;
24381 declare var5 bigint;
24382 declare var6 bigint;
24383 declare var7 bigint;
24384 declare var8 bigint;
24385 set var1 = 1.00e+00;
24386 set var3 = -9.22e+18;
24387 set var5 = -9.22e+18;
24388 set var7 = -9.22e+18;
24389 CALL sp35(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24390 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24394 CALL spexecute35();
24395 DROP PROCEDURE spexecute35;
24396 DROP PROCEDURE sp35;
24399 DROP PROCEDURE IF EXISTS sp36;
24401 CREATE PROCEDURE sp36( in f1 float(24) zerofill, inout f2 float(24) zerofill, out f3 float(24) zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24403 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24404 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24405 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24406 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24407 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24411 DROP PROCEDURE IF EXISTS spexecute36;
24413 CREATE PROCEDURE spexecute36()
24415 declare var1 float(24) zerofill;
24416 declare var2 float(24) zerofill;
24417 declare var3 bigint;
24418 declare var4 bigint;
24419 declare var5 bigint;
24420 declare var6 bigint;
24421 declare var7 bigint;
24422 declare var8 bigint;
24423 set var1 = 1.00e+00;
24424 set var3 = -9.22e+18;
24425 set var5 = -9.22e+18;
24426 set var7 = -9.22e+18;
24427 CALL sp36(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24428 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24432 CALL spexecute36();
24433 DROP PROCEDURE spexecute36;
24434 DROP PROCEDURE sp36;
24437 DROP PROCEDURE IF EXISTS sp37;
24439 CREATE PROCEDURE sp37( in f1 float(53), inout f2 float(53), out f3 float(53), in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24441 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24442 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24443 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24444 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24445 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24449 DROP PROCEDURE IF EXISTS spexecute37;
24451 CREATE PROCEDURE spexecute37()
24453 declare var1 float(53);
24454 declare var2 float(53);
24455 declare var3 bigint;
24456 declare var4 bigint;
24457 declare var5 bigint;
24458 declare var6 bigint;
24459 declare var7 bigint;
24460 declare var8 bigint;
24461 set var1 = 1.00e+00;
24462 set var3 = -9.22e+18;
24463 set var5 = -9.22e+18;
24464 set var7 = -9.22e+18;
24465 CALL sp37(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24466 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24470 CALL spexecute37();
24471 DROP PROCEDURE spexecute37;
24472 DROP PROCEDURE sp37;
24475 DROP PROCEDURE IF EXISTS sp38;
24477 CREATE PROCEDURE sp38( in f1 float(53) unsigned, inout f2 float(53) unsigned, out f3 float(53) unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24479 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24480 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24481 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24482 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24483 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24487 DROP PROCEDURE IF EXISTS spexecute38;
24489 CREATE PROCEDURE spexecute38()
24491 declare var1 float(53) unsigned;
24492 declare var2 float(53) unsigned;
24493 declare var3 bigint;
24494 declare var4 bigint;
24495 declare var5 bigint;
24496 declare var6 bigint;
24497 declare var7 bigint;
24498 declare var8 bigint;
24499 set var1 = 1.00e+00;
24500 set var3 = -9.22e+18;
24501 set var5 = -9.22e+18;
24502 set var7 = -9.22e+18;
24503 CALL sp38(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24504 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24508 CALL spexecute38();
24509 DROP PROCEDURE spexecute38;
24510 DROP PROCEDURE sp38;
24513 DROP PROCEDURE IF EXISTS sp39;
24515 CREATE PROCEDURE sp39( in f1 float(53) zerofill, inout f2 float(53) zerofill, out f3 float(53) zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24517 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24518 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24519 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24520 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24521 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24525 DROP PROCEDURE IF EXISTS spexecute39;
24527 CREATE PROCEDURE spexecute39()
24529 declare var1 float(53) zerofill;
24530 declare var2 float(53) zerofill;
24531 declare var3 bigint;
24532 declare var4 bigint;
24533 declare var5 bigint;
24534 declare var6 bigint;
24535 declare var7 bigint;
24536 declare var8 bigint;
24537 set var1 = 1.00e+00;
24538 set var3 = -9.22e+18;
24539 set var5 = -9.22e+18;
24540 set var7 = -9.22e+18;
24541 CALL sp39(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24542 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24546 CALL spexecute39();
24547 DROP PROCEDURE spexecute39;
24548 DROP PROCEDURE sp39;
24551 DROP PROCEDURE IF EXISTS sp40;
24553 CREATE PROCEDURE sp40( in f1 real unsigned, inout f2 real unsigned, out f3 real unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24555 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24556 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24557 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24558 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24559 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24563 DROP PROCEDURE IF EXISTS spexecute40;
24565 CREATE PROCEDURE spexecute40()
24567 declare var1 real unsigned;
24568 declare var2 real unsigned;
24569 declare var3 bigint;
24570 declare var4 bigint;
24571 declare var5 bigint;
24572 declare var6 bigint;
24573 declare var7 bigint;
24574 declare var8 bigint;
24576 set var3 = -9.22e+18;
24577 set var5 = -9.22e+18;
24578 set var7 = -9.22e+18;
24579 CALL sp40(1.1, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24580 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24584 CALL spexecute40();
24585 DROP PROCEDURE spexecute40;
24586 DROP PROCEDURE sp40;
24589 DROP PROCEDURE IF EXISTS sp41;
24591 CREATE PROCEDURE sp41( in f1 real unsigned zerofill, inout f2 real unsigned zerofill, out f3 real unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24593 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24594 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24595 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24596 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24597 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24601 DROP PROCEDURE IF EXISTS spexecute41;
24603 CREATE PROCEDURE spexecute41()
24605 declare var1 real unsigned zerofill;
24606 declare var2 real unsigned zerofill;
24607 declare var3 bigint;
24608 declare var4 bigint;
24609 declare var5 bigint;
24610 declare var6 bigint;
24611 declare var7 bigint;
24612 declare var8 bigint;
24614 set var3 = -9.22e+18;
24615 set var5 = -9.22e+18;
24616 set var7 = -9.22e+18;
24617 CALL sp41(1.1, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24618 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24622 CALL spexecute41();
24623 DROP PROCEDURE spexecute41;
24624 DROP PROCEDURE sp41;
24627 DROP PROCEDURE IF EXISTS sp42;
24629 CREATE PROCEDURE sp42( in f1 real zerofill, inout f2 real zerofill, out f3 real zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24631 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24632 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24633 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24634 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24635 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24639 DROP PROCEDURE IF EXISTS spexecute42;
24641 CREATE PROCEDURE spexecute42()
24643 declare var1 real zerofill;
24644 declare var2 real zerofill;
24645 declare var3 bigint;
24646 declare var4 bigint;
24647 declare var5 bigint;
24648 declare var6 bigint;
24649 declare var7 bigint;
24650 declare var8 bigint;
24652 set var3 = -9.22e+18;
24653 set var5 = -9.22e+18;
24654 set var7 = -9.22e+18;
24655 CALL sp42(1.1, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24656 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24660 CALL spexecute42();
24661 DROP PROCEDURE spexecute42;
24662 DROP PROCEDURE sp42;
24665 DROP PROCEDURE IF EXISTS sp43;
24667 CREATE PROCEDURE sp43( in f1 numeric (0), inout f2 numeric (0), out f3 numeric (0), in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24669 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24670 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24671 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24672 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24673 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24677 DROP PROCEDURE IF EXISTS spexecute43;
24679 CREATE PROCEDURE spexecute43()
24681 declare var1 numeric (0);
24682 declare var2 numeric (0);
24683 declare var3 bigint;
24684 declare var4 bigint;
24685 declare var5 bigint;
24686 declare var6 bigint;
24687 declare var7 bigint;
24688 declare var8 bigint;
24689 set var1 = -999999999;
24690 set var3 = -9.22e+18;
24691 set var5 = -9.22e+18;
24692 set var7 = -9.22e+18;
24693 CALL sp43(-999999999, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24694 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24698 CALL spexecute43();
24699 DROP PROCEDURE spexecute43;
24700 DROP PROCEDURE sp43;
24703 DROP PROCEDURE IF EXISTS sp44;
24705 CREATE PROCEDURE sp44( in f1 numeric (0) unsigned, inout f2 numeric (0) unsigned, out f3 numeric (0) unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24707 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24708 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24709 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24710 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24711 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24715 DROP PROCEDURE IF EXISTS spexecute44;
24717 CREATE PROCEDURE spexecute44()
24719 declare var1 numeric (0) unsigned;
24720 declare var2 numeric (0) unsigned;
24721 declare var3 bigint;
24722 declare var4 bigint;
24723 declare var5 bigint;
24724 declare var6 bigint;
24725 declare var7 bigint;
24726 declare var8 bigint;
24727 set var1 = 9999999999;
24728 set var3 = -9.22e+18;
24729 set var5 = -9.22e+18;
24730 set var7 = -9.22e+18;
24731 CALL sp44(9999999999, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24732 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24736 CALL spexecute44();
24737 DROP PROCEDURE spexecute44;
24738 DROP PROCEDURE sp44;
24741 DROP PROCEDURE IF EXISTS sp45;
24743 CREATE PROCEDURE sp45( in f1 numeric (0) zerofill, inout f2 numeric (0) zerofill, out f3 numeric (0) zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24745 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24746 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24747 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24748 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24749 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24753 DROP PROCEDURE IF EXISTS spexecute45;
24755 CREATE PROCEDURE spexecute45()
24757 declare var1 numeric (0) zerofill;
24758 declare var2 numeric (0) zerofill;
24759 declare var3 bigint;
24760 declare var4 bigint;
24761 declare var5 bigint;
24762 declare var6 bigint;
24763 declare var7 bigint;
24764 declare var8 bigint;
24765 set var1 = -99999999;
24766 set var3 = -9.22e+18;
24767 set var5 = -9.22e+18;
24768 set var7 = -9.22e+18;
24769 CALL sp45(-99999999, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24770 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24774 CALL spexecute45();
24775 DROP PROCEDURE spexecute45;
24776 DROP PROCEDURE sp45;
24779 DROP PROCEDURE IF EXISTS sp46;
24781 CREATE PROCEDURE sp46( in f1 numeric (0, 0), inout f2 numeric (0, 0), out f3 numeric (0, 0), in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24783 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24784 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24785 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24786 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24787 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24791 DROP PROCEDURE IF EXISTS spexecute46;
24793 CREATE PROCEDURE spexecute46()
24795 declare var1 numeric (0, 0);
24796 declare var2 numeric (0, 0);
24797 declare var3 bigint;
24798 declare var4 bigint;
24799 declare var5 bigint;
24800 declare var6 bigint;
24801 declare var7 bigint;
24802 declare var8 bigint;
24803 set var1 = -999999999;
24804 set var3 = -9.22e+18;
24805 set var5 = -9.22e+18;
24806 set var7 = -9.22e+18;
24807 CALL sp46(-999999999, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24808 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24812 CALL spexecute46();
24813 DROP PROCEDURE spexecute46;
24814 DROP PROCEDURE sp46;
24817 DROP PROCEDURE IF EXISTS sp47;
24819 CREATE PROCEDURE sp47( in f1 numeric (0, 0) unsigned, inout f2 numeric (0, 0) unsigned, out f3 numeric (0, 0) unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24821 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24822 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24823 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24824 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24825 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24829 DROP PROCEDURE IF EXISTS spexecute47;
24831 CREATE PROCEDURE spexecute47()
24833 declare var1 numeric (0, 0) unsigned;
24834 declare var2 numeric (0, 0) unsigned;
24835 declare var3 bigint;
24836 declare var4 bigint;
24837 declare var5 bigint;
24838 declare var6 bigint;
24839 declare var7 bigint;
24840 declare var8 bigint;
24841 set var1 = 9999999999;
24842 set var3 = -9.22e+18;
24843 set var5 = -9.22e+18;
24844 set var7 = -9.22e+18;
24845 CALL sp47(9999999999, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24846 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24850 CALL spexecute47();
24851 DROP PROCEDURE spexecute47;
24852 DROP PROCEDURE sp47;
24855 DROP PROCEDURE IF EXISTS sp48;
24857 CREATE PROCEDURE sp48( in f1 numeric (0, 0) zerofill, inout f2 numeric (0, 0) zerofill, out f3 numeric (0, 0) zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24859 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24860 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24861 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24862 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24863 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24867 DROP PROCEDURE IF EXISTS spexecute48;
24869 CREATE PROCEDURE spexecute48()
24871 declare var1 numeric (0, 0) zerofill;
24872 declare var2 numeric (0, 0) zerofill;
24873 declare var3 bigint;
24874 declare var4 bigint;
24875 declare var5 bigint;
24876 declare var6 bigint;
24877 declare var7 bigint;
24878 declare var8 bigint;
24879 set var1 = -99999999;
24880 set var3 = -9.22e+18;
24881 set var5 = -9.22e+18;
24882 set var7 = -9.22e+18;
24883 CALL sp48(-99999999, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24884 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24888 CALL spexecute48();
24889 DROP PROCEDURE spexecute48;
24890 DROP PROCEDURE sp48;
24893 DROP PROCEDURE IF EXISTS sp49;
24895 CREATE PROCEDURE sp49( in f1 numeric unsigned, inout f2 numeric unsigned, out f3 numeric unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24897 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24898 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24899 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24900 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24901 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24905 DROP PROCEDURE IF EXISTS spexecute49;
24907 CREATE PROCEDURE spexecute49()
24909 declare var1 numeric unsigned;
24910 declare var2 numeric unsigned;
24911 declare var3 bigint;
24912 declare var4 bigint;
24913 declare var5 bigint;
24914 declare var6 bigint;
24915 declare var7 bigint;
24916 declare var8 bigint;
24917 set var1 = -999999999;
24918 set var3 = -9.22e+18;
24919 set var5 = -9.22e+18;
24920 set var7 = -9.22e+18;
24921 CALL sp49(-999999999, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24922 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24926 CALL spexecute49();
24927 DROP PROCEDURE spexecute49;
24928 DROP PROCEDURE sp49;
24931 DROP PROCEDURE IF EXISTS sp50;
24933 CREATE PROCEDURE sp50( in f1 numeric unsigned zerofill, inout f2 numeric unsigned zerofill, out f3 numeric unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24935 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24936 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24937 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24938 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24939 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24943 DROP PROCEDURE IF EXISTS spexecute50;
24945 CREATE PROCEDURE spexecute50()
24947 declare var1 numeric unsigned zerofill;
24948 declare var2 numeric unsigned zerofill;
24949 declare var3 bigint;
24950 declare var4 bigint;
24951 declare var5 bigint;
24952 declare var6 bigint;
24953 declare var7 bigint;
24954 declare var8 bigint;
24955 set var1 = 9999999999;
24956 set var3 = -9.22e+18;
24957 set var5 = -9.22e+18;
24958 set var7 = -9.22e+18;
24959 CALL sp50(9999999999, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24960 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
24964 CALL spexecute50();
24965 DROP PROCEDURE spexecute50;
24966 DROP PROCEDURE sp50;
24969 DROP PROCEDURE IF EXISTS sp51;
24971 CREATE PROCEDURE sp51( in f1 numeric zerofill, inout f2 numeric zerofill, out f3 numeric zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
24973 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
24974 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
24975 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
24976 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
24977 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
24981 DROP PROCEDURE IF EXISTS spexecute51;
24983 CREATE PROCEDURE spexecute51()
24985 declare var1 numeric zerofill;
24986 declare var2 numeric zerofill;
24987 declare var3 bigint;
24988 declare var4 bigint;
24989 declare var5 bigint;
24990 declare var6 bigint;
24991 declare var7 bigint;
24992 declare var8 bigint;
24993 set var1 = -99999999;
24994 set var3 = -9.22e+18;
24995 set var5 = -9.22e+18;
24996 set var7 = -9.22e+18;
24997 CALL sp51(-99999999, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
24998 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25002 CALL spexecute51();
25003 DROP PROCEDURE spexecute51;
25004 DROP PROCEDURE sp51;
25007 DROP PROCEDURE IF EXISTS sp52;
25009 CREATE PROCEDURE sp52( in f1 numeric (63, 30), inout f2 numeric (63, 30), out f3 numeric (63, 30), in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25011 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25012 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25013 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25014 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25015 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25019 DROP PROCEDURE IF EXISTS spexecute52;
25021 eval CREATE PROCEDURE spexecute52()
25023 declare var1 numeric (63, 30);
25024 declare var2 numeric (63, 30);
25025 declare var3 bigint;
25026 declare var4 bigint;
25027 declare var5 bigint;
25028 declare var6 bigint;
25029 declare var7 bigint;
25030 declare var8 bigint;
25031 set var1 = $procvar01_m36;
25032 set var3 = $procvar03;
25033 set var5 = $procvar05;
25034 set var7 = $procvar07;
25035 CALL sp52($callvar01m, var1, var2, $callvar02, var3, var4, $callvar03, var5, var6, -9.22e+18, var7, var8);
25036 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25040 CALL spexecute52();
25041 DROP PROCEDURE spexecute52;
25042 DROP PROCEDURE sp52;
25045 DROP PROCEDURE IF EXISTS sp53;
25047 CREATE PROCEDURE sp53( in f1 numeric (64), inout f2 numeric (64), out f3 numeric (64), in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25049 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25050 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25051 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25052 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25053 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25057 DROP PROCEDURE IF EXISTS spexecute53;
25059 eval CREATE PROCEDURE spexecute53()
25061 declare var1 numeric (64);
25062 declare var2 numeric (64);
25063 declare var3 bigint;
25064 declare var4 bigint;
25065 declare var5 bigint;
25066 declare var6 bigint;
25067 declare var7 bigint;
25068 declare var8 bigint;
25069 set var1 = $procvar01_m40;
25070 set var3 = $procvar03;
25071 set var5 = $procvar05;
25072 set var7 = $procvar07;
25073 CALL sp53($callvar01m, var1, var2, $callvar02, var3, var4, $callvar03, var5, var6, -9.22e+18, var7, var8);
25074 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25078 CALL spexecute53();
25079 DROP PROCEDURE spexecute53;
25080 DROP PROCEDURE sp53;
25083 DROP PROCEDURE IF EXISTS sp54;
25085 CREATE PROCEDURE sp54( in f1 numeric (64) unsigned, inout f2 numeric (64) unsigned, out f3 numeric (64) unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25087 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25088 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25089 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25090 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25091 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25095 DROP PROCEDURE IF EXISTS spexecute54;
25097 eval CREATE PROCEDURE spexecute54()
25099 declare var1 numeric (64) unsigned;
25100 declare var2 numeric (64) unsigned;
25101 declare var3 bigint;
25102 declare var4 bigint;
25103 declare var5 bigint;
25104 declare var6 bigint;
25105 declare var7 bigint;
25106 declare var8 bigint;
25107 set var1 = $procvar01_40;
25108 set var3 = $procvar03;
25109 set var5 = $procvar05;
25110 set var7 = $procvar07;
25111 CALL sp54($callvar01p, var1, var2, $callvar02, var3, var4, $callvar03, var5, var6, -9.22e+18, var7, var8);
25112 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25116 CALL spexecute54();
25117 DROP PROCEDURE spexecute54;
25118 DROP PROCEDURE sp54;
25121 DROP PROCEDURE IF EXISTS sp55;
25123 CREATE PROCEDURE sp55( in f1 numeric (64) zerofill, inout f2 numeric (64) zerofill, out f3 numeric (64) zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25125 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25126 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25127 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25128 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25129 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25133 DROP PROCEDURE IF EXISTS spexecute55;
25135 eval CREATE PROCEDURE spexecute55()
25137 declare var1 numeric (64) zerofill;
25138 declare var2 numeric (64) zerofill;
25139 declare var3 bigint;
25140 declare var4 bigint;
25141 declare var5 bigint;
25142 declare var6 bigint;
25143 declare var7 bigint;
25144 declare var8 bigint;
25145 set var1 = $procvar01_m40;
25146 set var3 = $procvar03;
25147 set var5 = $procvar05;
25148 set var7 = $procvar07;
25149 CALL sp55($callvar01m, var1, var2, $callvar02, var3, var4, $callvar03, var5, var6, -9.22e+18, var7, var8);
25150 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25154 CALL spexecute55();
25155 DROP PROCEDURE spexecute55;
25156 DROP PROCEDURE sp55;
25159 DROP PROCEDURE IF EXISTS sp56;
25161 CREATE PROCEDURE sp56( in f1 year, inout f2 year, out f3 year, in f4 year, inout f5 year, out f6 year, in f7 year, inout f8 year, out f9 year, in f10 year, inout f11 year, out f12 year)
25163 set f1 = f1 + 10; set f2 = f2 + 10; set f3 = f2 + 10;
25164 set f4 = f4 + 10; set f5 = f5 + 10; set f6 = f5 + 10;
25165 set f7 = f7 + 10; set f8 = f8 + 10; set f9 = f8 + 10;
25166 set f10= f10+ 10; set f11 = f11 + 10; set f12 = f11 + 10;
25167 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25171 DROP PROCEDURE IF EXISTS spexecute56;
25173 CREATE PROCEDURE spexecute56()
25187 CALL sp56(51, var1, var2, 51, var3, var4, 51, var5, var6, 51, var7, var8);
25188 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25192 CALL spexecute56();
25193 DROP PROCEDURE spexecute56;
25194 DROP PROCEDURE sp56;
25197 DROP PROCEDURE IF EXISTS sp57;
25199 CREATE PROCEDURE sp57( in f1 year(4), inout f2 year(4), out f3 year(4), in f4 year(4), inout f5 year(4), out f6 year(4), in f7 year(4), inout f8 year(4), out f9 year(4), in f10 year(4), inout f11 year(4), out f12 year(4))
25201 set f1 = f1 + 51; set f2 = f2 + 51; set f3 = f2 + 51;
25202 set f4 = f4 + 51; set f5 = f5 + 51; set f6 = f5 + 51;
25203 set f7 = f7 + 51; set f8 = f8 + 51; set f9 = f8 + 51;
25204 set f10 = f10 + 51; set f11 = f11 + 51; set f12 = f11 + 51;
25205 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25209 DROP PROCEDURE IF EXISTS spexecute57;
25211 CREATE PROCEDURE spexecute57()
25213 declare var1 year(4);
25214 declare var2 year(4);
25215 declare var3 year(4);
25216 declare var4 year(4);
25217 declare var5 year(4);
25218 declare var6 year(4);
25219 declare var7 year(4);
25220 declare var8 year(4);
25225 CALL sp57(1982, var1, var2, 1982, var3, var4, 1982, var5, var6, 1982, var7, var8);
25226 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25230 CALL spexecute57();
25231 DROP PROCEDURE spexecute57;
25232 DROP PROCEDURE sp57;
25235 DROP PROCEDURE IF EXISTS sp58;
25237 CREATE PROCEDURE sp58( in f1 text, inout f2 text, out f3 text, in f4 text, inout f5 text, out f6 text, in f7 text, inout f8 text, out f9 text, in f10 text, inout f11 text, out f12 text)
25239 set f1 = concat('hello', f1); set f2 = concat('hello', f2); set f3 = concat('hello', f2);
25240 set f4 = concat('hello', f4); set f5 = concat('hello', f5); set f6 = concat('hello', f5);
25241 set f7 = concat('hello', f7); set f8 = concat('hello', f8); set f9 = concat('hello', f8);
25242 set f10 = concat('hello', f10); set f11 = concat('hello', f11); set f12 = concat('hello', f11);
25243 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25247 DROP PROCEDURE IF EXISTS spexecute58;
25249 CREATE PROCEDURE spexecute58()
25259 set var1 = 'world';
25260 set var3 = 'world';
25261 set var5 = 'world';
25262 set var7 = 'world';
25263 CALL sp58( 'world', var1, var2, 'world', var3, var4, 'world', var5, var6, 'world', var7, var8);
25264 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25268 CALL spexecute58();
25269 DROP PROCEDURE spexecute58;
25270 DROP PROCEDURE sp58;
25273 DROP PROCEDURE IF EXISTS sp59;
25275 CREATE PROCEDURE sp59( in f1 tinytext, inout f2 tinytext, out f3 tinytext, in f4 tinytext, inout f5 tinytext, out f6 tinytext, in f7 tinytext, inout f8 tinytext, out f9 tinytext, in f10 tinytext, inout f11 tinytext, out f12 tinytext)
25277 set f1 = concat('hello', f1); set f2 = concat('hello', f2); set f3 = concat('hello', f2);
25278 set f4 = concat('hello', f4); set f5 = concat('hello', f5); set f6 = concat('hello', f5);
25279 set f7 = concat('hello', f7); set f8 = concat('hello', f8); set f9 = concat('hello', f8);
25280 set f10 = concat('hello', f10); set f11 = concat('hello', f11); set f12 = concat('hello', f11);
25281 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25285 DROP PROCEDURE IF EXISTS spexecute59;
25287 CREATE PROCEDURE spexecute59()
25289 declare var1 tinytext;
25290 declare var2 tinytext;
25291 declare var3 tinytext;
25292 declare var4 tinytext;
25293 declare var5 tinytext;
25294 declare var6 tinytext;
25295 declare var7 tinytext;
25296 declare var8 tinytext;
25297 set var1 = 'world';
25298 set var3 = 'world';
25299 set var5 = 'world';
25300 set var7 = 'world';
25301 CALL sp59( 'world', var1, var2, 'world', var3, var4, 'world', var5, var6, 'world', var7, var8);
25302 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25306 CALL spexecute59();
25307 DROP PROCEDURE spexecute59;
25308 DROP PROCEDURE sp59;
25311 DROP PROCEDURE IF EXISTS sp60;
25313 CREATE PROCEDURE sp60( in f1 char, inout f2 char, out f3 char, in f4 char, inout f5 char, out f6 char, in f7 char, inout f8 char, out f9 char, in f10 char, inout f11 char, out f12 char)
25315 set f1 = concat('a', f1); set f2 = concat('a', f2); set f3 = concat('a', f1);
25316 set f4 = concat('a', f4); set f5 = concat('a', f5); set f6 = concat('a', f5);
25317 set f7 = concat('a', f7); set f8 = concat('a', f8); set f9 = concat('a', f8);
25318 set f10 = concat('a', f10); set f11 = concat('a', f11); set f12 = concat('a', f11);
25319 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25323 DROP PROCEDURE IF EXISTS spexecute60;
25325 CREATE PROCEDURE spexecute60()
25339 CALL sp60( 'h', var1, var2, 'h', var3, var4, 'h', var5, var6, 'h', var7, var8);
25340 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25344 CALL spexecute60();
25345 DROP PROCEDURE spexecute60;
25346 DROP PROCEDURE sp60;
25349 DROP PROCEDURE IF EXISTS sp61;
25351 CREATE PROCEDURE sp61( in f1 char ascii, inout f2 char ascii, out f3 char ascii, in f4 char ascii, inout f5 char ascii, out f6 char ascii, in f7 char ascii, inout f8 char ascii, out f9 char ascii, in f10 char ascii, inout f11 char ascii, out f12 char ascii)
25353 set f1 = concat('a', f1); set f2 = concat('a', f2); set f3 = concat('a', f2);
25354 set f4 = concat('a', f4); set f5 = concat('a', f5); set f6 = concat('a', f4);
25355 set f7 = concat('a', f7); set f8 = concat('a', f8); set f9 = concat('a', f9);
25356 set f10 = concat('a', f10); set f11 = concat('a', f11); set f12 = concat('a', f11);
25357 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25361 DROP PROCEDURE IF EXISTS spexecute61;
25363 CREATE PROCEDURE spexecute61()
25365 declare var1 char ascii;
25366 declare var2 char ascii;
25367 declare var3 char ascii;
25368 declare var4 char ascii;
25369 declare var5 char ascii;
25370 declare var6 char ascii;
25371 declare var7 char ascii;
25372 declare var8 char ascii;
25377 CALL sp61( 'h', var1, var2, 'h', var3, var4, 'h', var5, var6, 'h', var7, var8);
25378 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25382 CALL spexecute61();
25384 DROP PROCEDURE spexecute61;
25385 DROP PROCEDURE sp61;
25388 DROP PROCEDURE IF EXISTS sp62;
25390 CREATE PROCEDURE sp62( in f1 longtext, inout f2 longtext, out f3 longtext, in f4 longtext, inout f5 longtext, out f6 longtext, in f7 longtext, inout f8 longtext, out f9 longtext, in f10 longtext, inout f11 longtext, out f12 longtext)
25392 set f1 = concat('hello', f1); set f2 = concat('hello', f2); set f3 = concat('hello', f2);
25393 set f4 = concat('hello', f4); set f5 = concat('hello', f5); set f6 = concat('hello', f5);
25394 set f7 = concat('hello', f7); set f8 = concat('hello', f8); set f9 = concat('hello', f8);
25395 set f10 = concat('hello', f10); set f11 = concat('hello', f11); set f12 = concat('hello', f11);
25396 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25400 DROP PROCEDURE IF EXISTS spexecute62;
25402 CREATE PROCEDURE spexecute62()
25404 declare var1 longtext;
25405 declare var2 longtext;
25406 declare var3 longtext;
25407 declare var4 longtext;
25408 declare var5 longtext;
25409 declare var6 longtext;
25410 declare var7 longtext;
25411 declare var8 longtext;
25412 set var1 = 'world';
25413 set var3 = 'world';
25414 set var5 = 'world';
25415 set var7 = 'world';
25416 CALL sp62( 'world', var1, var2, 'world', var3, var4, 'world', var5, var6, 'world', var7, var8);
25417 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25421 CALL spexecute62();
25422 DROP PROCEDURE spexecute62;
25423 DROP PROCEDURE sp62;
25426 DROP PROCEDURE IF EXISTS sp63;
25428 CREATE PROCEDURE sp63( in f1 mediumtext, inout f2 mediumtext, out f3 mediumtext, in f4 mediumtext, inout f5 mediumtext, out f6 mediumtext, in f7 mediumtext, inout f8 mediumtext, out f9 mediumtext, in f10 mediumtext, inout f11 mediumtext, out f12 mediumtext)
25430 set f1 = concat('hello', f1); set f2 = concat('hello', f2); set f3 = concat('hello', f3);
25431 set f4 = concat('hello', f4); set f5 = concat('hello', f5); set f6 = concat('hello', f5);
25432 set f7 = concat('hello', f7); set f8 = concat('hello', f8); set f9 = concat('hello', f8);
25433 set f10 = concat('hello', f10); set f11 = concat('hello', f11); set f12 = concat('hello', f11);
25434 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25438 DROP PROCEDURE IF EXISTS spexecute63;
25440 CREATE PROCEDURE spexecute63()
25442 declare var1 mediumtext;
25443 declare var2 mediumtext;
25444 declare var3 mediumtext;
25445 declare var4 mediumtext;
25446 declare var5 mediumtext;
25447 declare var6 mediumtext;
25448 declare var7 mediumtext;
25449 declare var8 mediumtext;
25450 set var1 = 'world';
25451 set var3 = 'world';
25452 set var5 = 'world';
25453 set var7 = 'world';
25454 CALL sp63( 'world', var1, var2, 'world', var3, var4, 'world', var5, var6, 'world', var7, var8);
25455 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25459 CALL spexecute63();
25461 DROP PROCEDURE spexecute63;
25462 DROP PROCEDURE sp63;
25465 DROP PROCEDURE IF EXISTS sp64;
25467 CREATE PROCEDURE sp64( in f1 decimal, inout f2 decimal, out f3 decimal, in f4 decimal, inout f5 decimal, out f6 decimal, in f7 decimal, inout f8 decimal, out f9 decimal, in f10 decimal, inout f11 decimal, out f12 decimal)
25469 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f2 / 2); set f3 = (f2 * 2); set f3 = (f2 - 10); set f3 = (f2 + 10);
25470 set f4 = (f4 / 2); set f4 = (f4 * 2); set f4 = (f4 - 10); set f4 = (f4 + 10); set f5 = (f5 / 2); set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f5 / 2); set f6 = (f5 * 2); set f6 = (f5 - 10); set f6 = (f5 + 10);
25471 set f7 = (f7 / 2); set f7 = (f7 * 2); set f7 = (f7 - 10); set f7 = (f7 + 10); set f8 = (f8 / 2); set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f8 / 2); set f9 = (f8 * 2); set f9 = (f8 - 10); set f9 = (f8 + 10);
25472 set f10 = (f10 / 2); set f10 = (f10 * 2); set f10 = (f10 - 10); set f10 = (f10 + 10); set f11 = (f11 / 2); set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f11 / 2); set f12 = (f11 * 2); set f12 = (f11 - 10); set f12 = (f11 + 10);
25473 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25477 DROP PROCEDURE IF EXISTS spexecute64;
25479 CREATE PROCEDURE spexecute64()
25481 declare var1 decimal;
25482 declare var2 decimal;
25483 declare var3 decimal;
25484 declare var4 decimal;
25485 declare var5 decimal;
25486 declare var6 decimal;
25487 declare var7 decimal;
25488 declare var8 decimal;
25489 set var1 = --1.00e+09;
25490 set var3 = --1.00e+09;
25491 set var5 = --1.00e+09;
25492 set var7 = --1.00e+09;
25493 CALL sp64(--1.00e+09, var1, var2, --1.00e+09, var3, var4, --1.00e+09, var5, var6, --1.00e+09, var7, var8);
25494 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25498 CALL spexecute64();
25499 DROP PROCEDURE spexecute64;
25500 DROP PROCEDURE sp64;
25503 DROP PROCEDURE IF EXISTS sp65;
25505 CREATE PROCEDURE sp65( in f1 decimal (0, 0) unsigned zerofill, inout f2 decimal (0, 0) unsigned zerofill, out f3 decimal (0, 0) unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25507 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25508 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25509 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25510 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25511 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25515 DROP PROCEDURE IF EXISTS spexecute65;
25517 CREATE PROCEDURE spexecute65()
25519 declare var1 decimal (0, 0) unsigned zerofill;
25520 declare var2 decimal (0, 0) unsigned zerofill;
25521 declare var3 bigint;
25522 declare var4 bigint;
25523 declare var5 bigint;
25524 declare var6 bigint;
25525 declare var7 bigint;
25526 declare var8 bigint;
25527 set var1 = 999999999;
25528 set var3 = -9.22e+18;
25529 set var5 = -9.22e+18;
25530 set var7 = -9.22e+18;
25531 CALL sp65(999999999, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
25532 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25536 CALL spexecute65();
25537 DROP PROCEDURE spexecute65;
25538 DROP PROCEDURE sp65;
25541 DROP PROCEDURE IF EXISTS sp66;
25543 CREATE PROCEDURE sp66( in f1 decimal (63, 30) unsigned, inout f2 decimal (63, 30) unsigned, out f3 decimal (63, 30) unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25545 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25546 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25547 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25548 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25549 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25553 DROP PROCEDURE IF EXISTS spexecute66;
25555 CREATE PROCEDURE spexecute66()
25557 declare var1 decimal (63, 30) unsigned;
25558 declare var2 decimal (63, 30) unsigned;
25559 declare var3 bigint;
25560 declare var4 bigint;
25561 declare var5 bigint;
25562 declare var6 bigint;
25563 declare var7 bigint;
25564 declare var8 bigint;
25565 set var1 = 1.00e+16;
25566 set var3 = -9.22e+18;
25567 set var5 = -9.22e+18;
25568 set var7 = -9.22e+18;
25569 CALL sp66(1.00e+16, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
25570 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25574 CALL spexecute66();
25575 DROP PROCEDURE spexecute66;
25576 DROP PROCEDURE sp66;
25579 DROP PROCEDURE IF EXISTS sp67;
25581 CREATE PROCEDURE sp67( in f1 decimal (63, 30) unsigned zerofill, inout f2 decimal (63, 30) unsigned zerofill, out f3 decimal (63, 30) unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25583 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25584 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25585 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25586 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25587 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25591 DROP PROCEDURE IF EXISTS spexecute67;
25593 CREATE PROCEDURE spexecute67()
25595 declare var1 decimal (63, 30) unsigned zerofill;
25596 declare var2 decimal (63, 30) unsigned zerofill;
25597 declare var3 bigint;
25598 declare var4 bigint;
25599 declare var5 bigint;
25600 declare var6 bigint;
25601 declare var7 bigint;
25602 declare var8 bigint;
25603 set var1 = 1.00e+16;
25604 set var3 = -9.22e+18;
25605 set var5 = -9.22e+18;
25606 set var7 = -9.22e+18;
25607 CALL sp67(1.00e+16, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
25608 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25612 CALL spexecute67();
25613 DROP PROCEDURE spexecute67;
25614 DROP PROCEDURE sp67;
25617 DROP PROCEDURE IF EXISTS sp68;
25619 CREATE PROCEDURE sp68( in f1 decimal (63, 30) zerofill, inout f2 decimal (63, 30) zerofill, out f3 decimal (63, 30) zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25621 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25622 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25623 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25624 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25625 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25629 DROP PROCEDURE IF EXISTS spexecute68;
25631 CREATE PROCEDURE spexecute68()
25633 declare var1 decimal (63, 30) zerofill;
25634 declare var2 decimal (63, 30) zerofill;
25635 declare var3 bigint;
25636 declare var4 bigint;
25637 declare var5 bigint;
25638 declare var6 bigint;
25639 declare var7 bigint;
25640 declare var8 bigint;
25641 set var1 = -1.00e+21;
25642 set var3 = -9.22e+18;
25643 set var5 = -9.22e+18;
25644 set var7 = -9.22e+18;
25645 CALL sp68(-1.00e+21, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
25646 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25650 CALL spexecute68();
25651 DROP PROCEDURE spexecute68;
25652 DROP PROCEDURE sp68;
25655 DROP PROCEDURE IF EXISTS sp69;
25657 CREATE PROCEDURE sp69( in f1 decimal (64), inout f2 decimal (64), out f3 decimal (64), in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25659 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25660 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25661 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25662 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25663 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25667 DROP PROCEDURE IF EXISTS spexecute69;
25669 eval CREATE PROCEDURE spexecute69()
25671 declare var1 decimal (64);
25672 declare var2 decimal (64);
25673 declare var3 bigint;
25674 declare var4 bigint;
25675 declare var5 bigint;
25676 declare var6 bigint;
25677 declare var7 bigint;
25678 declare var8 bigint;
25679 set var1 = $procvar01_m30;
25680 set var3 = $procvar03;
25681 set var5 = $procvar05;
25682 set var7 = $procvar07;
25683 CALL sp69($callvar01m, var1, var2, $callvar02, var3, var4, $callvar03, var5, var6, -9.22e+18, var7, var8);
25684 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25688 CALL spexecute69();
25689 DROP PROCEDURE spexecute69;
25690 DROP PROCEDURE sp69;
25693 DROP PROCEDURE IF EXISTS sp70;
25695 CREATE PROCEDURE sp70( in f1 decimal (64) unsigned, inout f2 decimal (64) unsigned, out f3 decimal (64) unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25697 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25698 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25699 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25700 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25701 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25705 DROP PROCEDURE IF EXISTS spexecute70;
25707 eval CREATE PROCEDURE spexecute70()
25709 declare var1 decimal (64) unsigned;
25710 declare var2 decimal (64) unsigned;
25711 declare var3 bigint;
25712 declare var4 bigint;
25713 declare var5 bigint;
25714 declare var6 bigint;
25715 declare var7 bigint;
25716 declare var8 bigint;
25717 set var1 = $procvar01_20;
25718 set var3 = $procvar03;
25719 set var5 = $procvar05;
25720 set var7 = $procvar07;
25721 CALL sp70($callvar01p, var1, var2, $callvar02, var3, var4, $callvar03, var5, var6, -9.22e+18, var7, var8);
25722 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25726 CALL spexecute70();
25727 DROP PROCEDURE spexecute70;
25728 DROP PROCEDURE sp70;
25731 DROP PROCEDURE IF EXISTS sp71;
25733 CREATE PROCEDURE sp71( in f1 decimal (64) unsigned zerofill, inout f2 decimal (64) unsigned zerofill, out f3 decimal (64) unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25735 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25736 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25737 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25738 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25739 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25743 DROP PROCEDURE IF EXISTS spexecute71;
25745 eval CREATE PROCEDURE spexecute71()
25747 declare var1 decimal (64) unsigned zerofill;
25748 declare var2 decimal (64) unsigned zerofill;
25749 declare var3 bigint;
25750 declare var4 bigint;
25751 declare var5 bigint;
25752 declare var6 bigint;
25753 declare var7 bigint;
25754 declare var8 bigint;
25755 set var1 = $procvar01_24;
25756 set var3 = $procvar03;
25757 set var5 = $procvar05;
25758 set var7 = $procvar07;
25759 CALL sp71($callvar01p, var1, var2, $callvar02, var3, var4, $callvar03, var5, var6, -9.22e+18, var7, var8);
25760 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25764 CALL spexecute71();
25765 DROP PROCEDURE spexecute71;
25766 DROP PROCEDURE sp71;
25769 DROP PROCEDURE IF EXISTS sp72;
25771 CREATE PROCEDURE sp72( in f1 decimal (64) zerofill, inout f2 decimal (64) zerofill, out f3 decimal (64) zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25773 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25774 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25775 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25776 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25777 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25781 DROP PROCEDURE IF EXISTS spexecute72;
25783 CREATE PROCEDURE spexecute72()
25785 declare var1 decimal (64) zerofill;
25786 declare var2 decimal (64) zerofill;
25787 declare var3 bigint;
25788 declare var4 bigint;
25789 declare var5 bigint;
25790 declare var6 bigint;
25791 declare var7 bigint;
25792 declare var8 bigint;
25793 set var1 = 1.00e+00;
25794 set var3 = -9.22e+18;
25795 set var5 = -9.22e+18;
25796 set var7 = -9.22e+18;
25797 CALL sp72(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
25798 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25802 CALL spexecute72();
25803 DROP PROCEDURE spexecute72;
25804 DROP PROCEDURE sp72;
25807 DROP PROCEDURE IF EXISTS sp73;
25809 CREATE PROCEDURE sp73( in f1 decimal unsigned, inout f2 decimal unsigned, out f3 decimal unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25811 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25812 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25813 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25814 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25815 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25819 DROP PROCEDURE IF EXISTS spexecute73;
25821 CREATE PROCEDURE spexecute73()
25823 declare var1 decimal unsigned;
25824 declare var2 decimal unsigned;
25825 declare var3 bigint;
25826 declare var4 bigint;
25827 declare var5 bigint;
25828 declare var6 bigint;
25829 declare var7 bigint;
25830 declare var8 bigint;
25831 set var1 = 1.00e+00;
25832 set var3 = -9.22e+18;
25833 set var5 = -9.22e+18;
25834 set var7 = -9.22e+18;
25835 CALL sp73(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
25836 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25840 CALL spexecute73();
25841 DROP PROCEDURE spexecute73;
25842 DROP PROCEDURE sp73;
25845 DROP PROCEDURE IF EXISTS sp74;
25847 CREATE PROCEDURE sp74( in f1 decimal unsigned zerofill, inout f2 decimal unsigned zerofill, out f3 decimal unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25849 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25850 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25851 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25852 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25853 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25857 DROP PROCEDURE IF EXISTS spexecute74;
25859 CREATE PROCEDURE spexecute74()
25861 declare var1 decimal unsigned zerofill;
25862 declare var2 decimal unsigned zerofill;
25863 declare var3 bigint;
25864 declare var4 bigint;
25865 declare var5 bigint;
25866 declare var6 bigint;
25867 declare var7 bigint;
25868 declare var8 bigint;
25869 set var1 = 1.00e+00;
25870 set var3 = -9.22e+18;
25871 set var5 = -9.22e+18;
25872 set var7 = -9.22e+18;
25873 CALL sp74(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
25874 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25878 CALL spexecute74();
25879 DROP PROCEDURE spexecute74;
25880 DROP PROCEDURE sp74;
25883 DROP PROCEDURE IF EXISTS sp75;
25885 CREATE PROCEDURE sp75( in f1 decimal zerofill, inout f2 decimal zerofill, out f3 decimal zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25887 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25888 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25889 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25890 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25891 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25895 DROP PROCEDURE IF EXISTS spexecute75;
25897 CREATE PROCEDURE spexecute75()
25899 declare var1 decimal zerofill;
25900 declare var2 decimal zerofill;
25901 declare var3 bigint;
25902 declare var4 bigint;
25903 declare var5 bigint;
25904 declare var6 bigint;
25905 declare var7 bigint;
25906 declare var8 bigint;
25907 set var1 = -1.00e+09;
25908 set var3 = -9.22e+18;
25909 set var5 = -9.22e+18;
25910 set var7 = -9.22e+18;
25911 CALL sp75(-1.00e+09, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
25912 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25916 CALL spexecute75();
25917 DROP PROCEDURE spexecute75;
25918 DROP PROCEDURE sp75;
25921 DROP PROCEDURE IF EXISTS sp76;
25923 CREATE PROCEDURE sp76( in f1 float(0) unsigned zerofill, inout f2 float(0) unsigned zerofill, out f3 float(0) unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25925 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25926 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25927 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25928 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25929 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25933 DROP PROCEDURE IF EXISTS spexecute76;
25935 CREATE PROCEDURE spexecute76()
25937 declare var1 float(0) unsigned zerofill;
25938 declare var2 float(0) unsigned zerofill;
25939 declare var3 bigint;
25940 declare var4 bigint;
25941 declare var5 bigint;
25942 declare var6 bigint;
25943 declare var7 bigint;
25944 declare var8 bigint;
25945 set var1 = 1.00e+00;
25946 set var3 = -9.22e+18;
25947 set var5 = -9.22e+18;
25948 set var7 = -9.22e+18;
25949 CALL sp76(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
25950 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25954 CALL spexecute76();
25955 DROP PROCEDURE spexecute76;
25956 DROP PROCEDURE sp76;
25959 DROP PROCEDURE IF EXISTS sp77;
25961 CREATE PROCEDURE sp77( in f1 float(23) unsigned zerofill, inout f2 float(23) unsigned zerofill, out f3 float(23) unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
25963 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
25964 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
25965 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
25966 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
25967 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
25971 DROP PROCEDURE IF EXISTS spexecute77;
25973 CREATE PROCEDURE spexecute77()
25975 declare var1 float(23) unsigned zerofill;
25976 declare var2 float(23) unsigned zerofill;
25977 declare var3 bigint;
25978 declare var4 bigint;
25979 declare var5 bigint;
25980 declare var6 bigint;
25981 declare var7 bigint;
25982 declare var8 bigint;
25983 set var1 = 1.00e+00;
25984 set var3 = -9.22e+18;
25985 set var5 = -9.22e+18;
25986 set var7 = -9.22e+18;
25987 CALL sp77(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
25988 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
25992 CALL spexecute77();
25993 DROP PROCEDURE spexecute77;
25994 DROP PROCEDURE sp77;
25997 DROP PROCEDURE IF EXISTS sp78;
25999 CREATE PROCEDURE sp78( in f1 float(24) unsigned zerofill, inout f2 float(24) unsigned zerofill, out f3 float(24) unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26001 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26002 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26003 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26004 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26005 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26009 DROP PROCEDURE IF EXISTS spexecute78;
26011 CREATE PROCEDURE spexecute78()
26013 declare var1 float(24) unsigned zerofill;
26014 declare var2 float(24) unsigned zerofill;
26015 declare var3 bigint;
26016 declare var4 bigint;
26017 declare var5 bigint;
26018 declare var6 bigint;
26019 declare var7 bigint;
26020 declare var8 bigint;
26021 set var1 = 1.00e+00;
26022 set var3 = -9.22e+18;
26023 set var5 = -9.22e+18;
26024 set var7 = -9.22e+18;
26025 CALL sp78(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26026 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26030 CALL spexecute78();
26031 DROP PROCEDURE spexecute78;
26032 DROP PROCEDURE sp78;
26035 DROP PROCEDURE IF EXISTS sp79;
26037 CREATE PROCEDURE sp79( in f1 float(53) unsigned zerofill, inout f2 float(53) unsigned zerofill, out f3 float(53) unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26039 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26040 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26041 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26042 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26043 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26047 DROP PROCEDURE IF EXISTS spexecute79;
26049 CREATE PROCEDURE spexecute79()
26051 declare var1 float(53) unsigned zerofill;
26052 declare var2 float(53) unsigned zerofill;
26053 declare var3 bigint;
26054 declare var4 bigint;
26055 declare var5 bigint;
26056 declare var6 bigint;
26057 declare var7 bigint;
26058 declare var8 bigint;
26059 set var1 = 1.00e+00;
26060 set var3 = -9.22e+18;
26061 set var5 = -9.22e+18;
26062 set var7 = -9.22e+18;
26063 CALL sp79(1.00e+00, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26064 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26068 CALL spexecute79();
26069 DROP PROCEDURE spexecute79;
26070 DROP PROCEDURE sp79;
26073 DROP PROCEDURE IF EXISTS sp80;
26075 CREATE PROCEDURE sp80( in f1 int, inout f2 int, out f3 int, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26077 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26078 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26079 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26080 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26081 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26085 DROP PROCEDURE IF EXISTS spexecute80;
26087 CREATE PROCEDURE spexecute80()
26091 declare var3 bigint;
26092 declare var4 bigint;
26093 declare var5 bigint;
26094 declare var6 bigint;
26095 declare var7 bigint;
26096 declare var8 bigint;
26097 set var1 = -2.15e+09;
26098 set var3 = -9.22e+18;
26099 set var5 = -9.22e+18;
26100 set var7 = -9.22e+18;
26101 CALL sp80(-2.15e+09, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26102 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26106 CALL spexecute80();
26107 DROP PROCEDURE spexecute80;
26108 DROP PROCEDURE sp80;
26111 DROP PROCEDURE IF EXISTS sp81;
26113 CREATE PROCEDURE sp81( in f1 int unsigned, inout f2 int unsigned, out f3 int unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26115 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26116 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26117 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26118 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26119 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26123 DROP PROCEDURE IF EXISTS spexecute81;
26125 CREATE PROCEDURE spexecute81()
26127 declare var1 int unsigned;
26128 declare var2 int unsigned;
26129 declare var3 bigint;
26130 declare var4 bigint;
26131 declare var5 bigint;
26132 declare var6 bigint;
26133 declare var7 bigint;
26134 declare var8 bigint;
26135 set var1 = 4.29e+09;
26136 set var3 = -9.22e+18;
26137 set var5 = -9.22e+18;
26138 set var7 = -9.22e+18;
26139 CALL sp81(4.29e+09, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26140 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26144 CALL spexecute81();
26145 DROP PROCEDURE spexecute81;
26146 DROP PROCEDURE sp81;
26149 DROP PROCEDURE IF EXISTS sp82;
26151 CREATE PROCEDURE sp82( in f1 int unsigned zerofill, inout f2 int unsigned zerofill, out f3 int unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26153 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26154 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26155 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26156 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26157 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26161 DROP PROCEDURE IF EXISTS spexecute82;
26163 CREATE PROCEDURE spexecute82()
26165 declare var1 int unsigned zerofill;
26166 declare var2 int unsigned zerofill;
26167 declare var3 bigint;
26168 declare var4 bigint;
26169 declare var5 bigint;
26170 declare var6 bigint;
26171 declare var7 bigint;
26172 declare var8 bigint;
26173 set var1 = 4.29e+09;
26174 set var3 = -9.22e+18;
26175 set var5 = -9.22e+18;
26176 set var7 = -9.22e+18;
26177 CALL sp82(4.29e+09, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26178 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26182 CALL spexecute82();
26183 DROP PROCEDURE spexecute82;
26184 DROP PROCEDURE sp82;
26187 DROP PROCEDURE IF EXISTS sp83;
26189 CREATE PROCEDURE sp83( in f1 int zerofill, inout f2 int zerofill, out f3 int zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26191 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26192 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26193 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26194 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26195 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26199 DROP PROCEDURE IF EXISTS spexecute83;
26201 CREATE PROCEDURE spexecute83()
26203 declare var1 int zerofill;
26204 declare var2 int zerofill;
26205 declare var3 bigint;
26206 declare var4 bigint;
26207 declare var5 bigint;
26208 declare var6 bigint;
26209 declare var7 bigint;
26210 declare var8 bigint;
26211 set var1 = 2.15e+08;
26212 set var3 = -9.22e+18;
26213 set var5 = -9.22e+18;
26214 set var7 = -9.22e+18;
26215 CALL sp83(2.15e+08, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26216 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26220 CALL spexecute83();
26221 DROP PROCEDURE spexecute83;
26222 DROP PROCEDURE sp83;
26225 DROP PROCEDURE IF EXISTS sp84;
26227 CREATE PROCEDURE sp84( in f1 mediumint, inout f2 mediumint, out f3 mediumint, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26229 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26230 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26231 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26232 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26233 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26237 DROP PROCEDURE IF EXISTS spexecute84;
26239 CREATE PROCEDURE spexecute84()
26241 declare var1 mediumint;
26242 declare var2 mediumint;
26243 declare var3 bigint;
26244 declare var4 bigint;
26245 declare var5 bigint;
26246 declare var6 bigint;
26247 declare var7 bigint;
26248 declare var8 bigint;
26249 set var1 = -8388600;
26250 set var3 = -9.22e+18;
26251 set var5 = -9.22e+18;
26252 set var7 = -9.22e+18;
26253 CALL sp84(-8388600, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26254 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26258 CALL spexecute84();
26259 DROP PROCEDURE spexecute84;
26260 DROP PROCEDURE sp84;
26263 DROP PROCEDURE IF EXISTS sp85;
26265 CREATE PROCEDURE sp85( in f1 mediumint unsigned, inout f2 mediumint unsigned, out f3 mediumint unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26267 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26268 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26269 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26270 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26271 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26275 DROP PROCEDURE IF EXISTS spexecute85;
26277 CREATE PROCEDURE spexecute85()
26279 declare var1 mediumint unsigned;
26280 declare var2 mediumint unsigned;
26281 declare var3 bigint;
26282 declare var4 bigint;
26283 declare var5 bigint;
26284 declare var6 bigint;
26285 declare var7 bigint;
26286 declare var8 bigint;
26287 set var1 = 16777201;
26288 set var3 = -9.22e+18;
26289 set var5 = -9.22e+18;
26290 set var7 = -9.22e+18;
26291 CALL sp85(16777201, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26292 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26296 CALL spexecute85();
26297 DROP PROCEDURE spexecute85;
26298 DROP PROCEDURE sp85;
26301 DROP PROCEDURE IF EXISTS sp86;
26303 CREATE PROCEDURE sp86( in f1 mediumint unsigned zerofill, inout f2 mediumint unsigned zerofill, out f3 mediumint unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26305 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26306 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26307 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26308 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26309 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26313 DROP PROCEDURE IF EXISTS spexecute86;
26315 CREATE PROCEDURE spexecute86()
26317 declare var1 mediumint unsigned zerofill;
26318 declare var2 mediumint unsigned zerofill;
26319 declare var3 bigint;
26320 declare var4 bigint;
26321 declare var5 bigint;
26322 declare var6 bigint;
26323 declare var7 bigint;
26324 declare var8 bigint;
26325 set var1 = 16777210;
26326 set var3 = -9.22e+18;
26327 set var5 = -9.22e+18;
26328 set var7 = -9.22e+18;
26329 CALL sp86(16777210, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26330 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26334 CALL spexecute86();
26335 DROP PROCEDURE spexecute86;
26336 DROP PROCEDURE sp86;
26339 DROP PROCEDURE IF EXISTS sp87;
26341 CREATE PROCEDURE sp87( in f1 mediumint zerofill, inout f2 mediumint zerofill, out f3 mediumint zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26343 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26344 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26345 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26346 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26347 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26351 DROP PROCEDURE IF EXISTS spexecute87;
26353 CREATE PROCEDURE spexecute87()
26355 declare var1 mediumint zerofill;
26356 declare var2 mediumint zerofill;
26357 declare var3 bigint;
26358 declare var4 bigint;
26359 declare var5 bigint;
26360 declare var6 bigint;
26361 declare var7 bigint;
26362 declare var8 bigint;
26363 set var1 = -8388601;
26364 set var3 = -9.22e+18;
26365 set var5 = -9.22e+18;
26366 set var7 = -9.22e+18;
26367 CALL sp87(-8388601, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26368 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26372 CALL spexecute87();
26373 DROP PROCEDURE spexecute87;
26374 DROP PROCEDURE sp87;
26377 DROP PROCEDURE IF EXISTS sp88;
26379 CREATE PROCEDURE sp88( in f1 numeric (0) unsigned zerofill, inout f2 numeric (0) unsigned zerofill, out f3 numeric (0) unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26381 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26382 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26383 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26384 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26385 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26389 DROP PROCEDURE IF EXISTS spexecute88;
26391 CREATE PROCEDURE spexecute88()
26393 declare var1 numeric (0) unsigned zerofill;
26394 declare var2 numeric (0) unsigned zerofill;
26395 declare var3 bigint;
26396 declare var4 bigint;
26397 declare var5 bigint;
26398 declare var6 bigint;
26399 declare var7 bigint;
26400 declare var8 bigint;
26401 set var1 = 99999999;
26402 set var3 = -9.22e+18;
26403 set var5 = -9.22e+18;
26404 set var7 = -9.22e+18;
26405 CALL sp88(99999999, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26406 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26410 CALL spexecute88();
26411 DROP PROCEDURE spexecute88;
26412 DROP PROCEDURE sp88;
26415 DROP PROCEDURE IF EXISTS sp89;
26417 CREATE PROCEDURE sp89( in f1 numeric (0, 0) unsigned zerofill, inout f2 numeric (0, 0) unsigned zerofill, out f3 numeric (0, 0) unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26419 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26420 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26421 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26422 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26423 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26427 DROP PROCEDURE IF EXISTS spexecute89;
26429 CREATE PROCEDURE spexecute89()
26431 declare var1 numeric (0, 0) unsigned zerofill;
26432 declare var2 numeric (0, 0) unsigned zerofill;
26433 declare var3 bigint;
26434 declare var4 bigint;
26435 declare var5 bigint;
26436 declare var6 bigint;
26437 declare var7 bigint;
26438 declare var8 bigint;
26439 set var1 = 99999999;
26440 set var3 = -9.22e+18;
26441 set var5 = -9.22e+18;
26442 set var7 = -9.22e+18;
26443 CALL sp89(99999999, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26444 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26448 CALL spexecute89();
26449 DROP PROCEDURE spexecute89;
26450 DROP PROCEDURE sp89;
26453 DROP PROCEDURE IF EXISTS sp90;
26455 CREATE PROCEDURE sp90( in f1 numeric (63, 30) unsigned, inout f2 numeric (63, 30) unsigned, out f3 numeric (63, 30) unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26457 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26458 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26459 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26460 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26461 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26465 DROP PROCEDURE IF EXISTS spexecute90;
26467 eval CREATE PROCEDURE spexecute90()
26469 declare var1 numeric (63, 30) unsigned;
26470 declare var2 numeric (63, 30) unsigned;
26471 declare var3 bigint;
26472 declare var4 bigint;
26473 declare var5 bigint;
26474 declare var6 bigint;
26475 declare var7 bigint;
26476 declare var8 bigint;
26477 set var1 = $procvar01_36;
26478 set var3 = $procvar03;
26479 set var5 = $procvar05;
26480 set var7 = $procvar07;
26481 CALL sp90($callvar01p, var1, var2, $callvar02, var3, var4, $callvar03, var5, var6, -9.22e+18, var7, var8);
26482 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26486 #FIXME: hpux11 - check later again with E+40
26487 CALL spexecute90();
26488 DROP PROCEDURE spexecute90;
26489 DROP PROCEDURE sp90;
26492 DROP PROCEDURE IF EXISTS sp91;
26494 CREATE PROCEDURE sp91( in f1 numeric (63, 30) unsigned zerofill, inout f2 numeric (63, 30) unsigned zerofill, out f3 numeric (63, 30) unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26496 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26497 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26498 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26499 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26500 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26504 DROP PROCEDURE IF EXISTS spexecute91;
26506 eval CREATE PROCEDURE spexecute91()
26508 declare var1 numeric (63, 30) unsigned zerofill;
26509 declare var2 numeric (63, 30) unsigned zerofill;
26510 declare var3 bigint;
26511 declare var4 bigint;
26512 declare var5 bigint;
26513 declare var6 bigint;
26514 declare var7 bigint;
26515 declare var8 bigint;
26516 set var1 = $procvar01_36;
26517 set var3 = $procvar03;
26518 set var5 = $procvar05;
26519 set var7 = $procvar07;
26520 CALL sp91($callvar01p, var1, var2, $callvar02, var3, var4, $callvar03, var5, var6, -9.22e+18, var7, var8);
26521 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26525 #FIXME: hpux11 - check later again with E+40
26526 CALL spexecute91();
26527 DROP PROCEDURE spexecute91;
26528 DROP PROCEDURE sp91;
26531 DROP PROCEDURE IF EXISTS sp92;
26533 CREATE PROCEDURE sp92( in f1 numeric (63, 30) zerofill, inout f2 numeric (63, 30) zerofill, out f3 numeric (63, 30) zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26535 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26536 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26537 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26538 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26539 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26543 DROP PROCEDURE IF EXISTS spexecute92;
26545 eval CREATE PROCEDURE spexecute92()
26547 declare var1 numeric (63, 30) zerofill;
26548 declare var2 numeric (63, 30) zerofill;
26549 declare var3 bigint;
26550 declare var4 bigint;
26551 declare var5 bigint;
26552 declare var6 bigint;
26553 declare var7 bigint;
26554 declare var8 bigint;
26555 set var1 = $procvar01_m36;
26556 set var3 = $procvar03;
26557 set var5 = $procvar05;
26558 set var7 = $procvar07;
26559 CALL sp92($callvar01m, var1, var2, $callvar02, var3, var4, $callvar03, var5, var6, -9.22e+18, var7, var8);
26560 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26564 CALL spexecute92();
26565 DROP PROCEDURE spexecute92;
26566 DROP PROCEDURE sp92;
26569 DROP PROCEDURE IF EXISTS sp93;
26571 CREATE PROCEDURE sp93( in f1 numeric (64) unsigned zerofill, inout f2 numeric (64) unsigned zerofill, out f3 numeric (64) unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26573 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26574 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26575 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26576 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26577 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26581 DROP PROCEDURE IF EXISTS spexecute93;
26583 eval CREATE PROCEDURE spexecute93()
26585 declare var1 numeric (64) unsigned zerofill;
26586 declare var2 numeric (64) unsigned zerofill;
26587 declare var3 bigint;
26588 declare var4 bigint;
26589 declare var5 bigint;
26590 declare var6 bigint;
26591 declare var7 bigint;
26592 declare var8 bigint;
26593 set var1 = $procvar01_40;
26594 set var3 = $procvar03;
26595 set var5 = $procvar05;
26596 set var7 = $procvar07;
26597 CALL sp93($callvar01p, var1, var2, $callvar02, var3, var4, $callvar03, var5, var6, -9.22e+18, var7, var8);
26598 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26602 CALL spexecute93();
26603 DROP PROCEDURE spexecute93;
26604 DROP PROCEDURE sp93;
26607 DROP PROCEDURE IF EXISTS sp94;
26609 CREATE PROCEDURE sp94( in f1 smallint, inout f2 smallint, out f3 smallint, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26611 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26612 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26613 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26614 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26615 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26619 DROP PROCEDURE IF EXISTS spexecute94;
26621 CREATE PROCEDURE spexecute94()
26623 declare var1 smallint;
26624 declare var2 smallint;
26625 declare var3 bigint;
26626 declare var4 bigint;
26627 declare var5 bigint;
26628 declare var6 bigint;
26629 declare var7 bigint;
26630 declare var8 bigint;
26632 set var3 = -9.22e+18;
26633 set var5 = -9.22e+18;
26634 set var7 = -9.22e+18;
26635 CALL sp94(-32701, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26636 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26640 CALL spexecute94();
26641 DROP PROCEDURE spexecute94;
26642 DROP PROCEDURE sp94;
26645 DROP PROCEDURE IF EXISTS sp95;
26647 CREATE PROCEDURE sp95( in f1 smallint unsigned, inout f2 smallint unsigned, out f3 smallint unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26649 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26650 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26651 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26652 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26653 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26657 DROP PROCEDURE IF EXISTS spexecute95;
26659 CREATE PROCEDURE spexecute95()
26661 declare var1 smallint unsigned;
26662 declare var2 smallint unsigned;
26663 declare var3 bigint;
26664 declare var4 bigint;
26665 declare var5 bigint;
26666 declare var6 bigint;
26667 declare var7 bigint;
26668 declare var8 bigint;
26670 set var3 = -9.22e+18;
26671 set var5 = -9.22e+18;
26672 set var7 = -9.22e+18;
26673 CALL sp95(65531, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26674 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26678 CALL spexecute95();
26679 DROP PROCEDURE spexecute95;
26680 DROP PROCEDURE sp95;
26683 DROP PROCEDURE IF EXISTS sp96;
26685 CREATE PROCEDURE sp96( in f1 smallint unsigned zerofill, inout f2 smallint unsigned zerofill, out f3 smallint unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26687 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26688 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26689 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26690 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26691 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26695 DROP PROCEDURE IF EXISTS spexecute96;
26697 CREATE PROCEDURE spexecute96()
26699 declare var1 smallint unsigned zerofill;
26700 declare var2 smallint unsigned zerofill;
26701 declare var3 bigint;
26702 declare var4 bigint;
26703 declare var5 bigint;
26704 declare var6 bigint;
26705 declare var7 bigint;
26706 declare var8 bigint;
26708 set var3 = -9.22e+18;
26709 set var5 = -9.22e+18;
26710 set var7 = -9.22e+18;
26711 CALL sp96(65531, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26712 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26716 CALL spexecute96();
26717 DROP PROCEDURE spexecute96;
26718 DROP PROCEDURE sp96;
26721 DROP PROCEDURE IF EXISTS sp97;
26723 CREATE PROCEDURE sp97( in f1 smallint zerofill, inout f2 smallint zerofill, out f3 smallint zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26725 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26726 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26727 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26728 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26729 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26733 DROP PROCEDURE IF EXISTS spexecute97;
26735 CREATE PROCEDURE spexecute97()
26737 declare var1 smallint zerofill;
26738 declare var2 smallint zerofill;
26739 declare var3 bigint;
26740 declare var4 bigint;
26741 declare var5 bigint;
26742 declare var6 bigint;
26743 declare var7 bigint;
26744 declare var8 bigint;
26746 set var3 = -9.22e+18;
26747 set var5 = -9.22e+18;
26748 set var7 = -9.22e+18;
26749 CALL sp97(-32601, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26750 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26754 CALL spexecute97();
26755 DROP PROCEDURE spexecute97;
26756 DROP PROCEDURE sp97;
26759 DROP PROCEDURE IF EXISTS sp98;
26761 CREATE PROCEDURE sp98( in f1 tinyint, inout f2 tinyint, out f3 tinyint, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26763 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26764 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26765 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26766 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26767 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26771 DROP PROCEDURE IF EXISTS spexecute98;
26773 CREATE PROCEDURE spexecute98()
26775 declare var1 tinyint;
26776 declare var2 tinyint;
26777 declare var3 bigint;
26778 declare var4 bigint;
26779 declare var5 bigint;
26780 declare var6 bigint;
26781 declare var7 bigint;
26782 declare var8 bigint;
26784 set var3 = -9.22e+18;
26785 set var5 = -9.22e+18;
26786 set var7 = -9.22e+18;
26787 CALL sp98(-115, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26788 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26792 CALL spexecute98();
26793 DROP PROCEDURE spexecute98;
26794 DROP PROCEDURE sp98;
26797 DROP PROCEDURE IF EXISTS sp99;
26799 CREATE PROCEDURE sp99( in f1 tinyint unsigned, inout f2 tinyint unsigned, out f3 tinyint unsigned, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26801 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26802 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26803 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26804 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26805 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26809 DROP PROCEDURE IF EXISTS spexecute99;
26811 CREATE PROCEDURE spexecute99()
26813 declare var1 tinyint unsigned;
26814 declare var2 tinyint unsigned;
26815 declare var3 bigint;
26816 declare var4 bigint;
26817 declare var5 bigint;
26818 declare var6 bigint;
26819 declare var7 bigint;
26820 declare var8 bigint;
26822 set var3 = -9.22e+18;
26823 set var5 = -9.22e+18;
26824 set var7 = -9.22e+18;
26825 CALL sp99(251, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26826 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26830 CALL spexecute99();
26831 DROP PROCEDURE spexecute99;
26832 DROP PROCEDURE sp99;
26835 DROP PROCEDURE IF EXISTS sp100;
26837 CREATE PROCEDURE sp100( in f1 tinyint unsigned zerofill, inout f2 tinyint unsigned zerofill, out f3 tinyint unsigned zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26839 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26840 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26841 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26842 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26843 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26847 DROP PROCEDURE IF EXISTS spexecute100;
26849 CREATE PROCEDURE spexecute100()
26851 declare var1 tinyint unsigned zerofill;
26852 declare var2 tinyint unsigned zerofill;
26853 declare var3 bigint;
26854 declare var4 bigint;
26855 declare var5 bigint;
26856 declare var6 bigint;
26857 declare var7 bigint;
26858 declare var8 bigint;
26860 set var3 = -9.22e+18;
26861 set var5 = -9.22e+18;
26862 set var7 = -9.22e+18;
26863 CALL sp100(201, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26864 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26868 CALL spexecute100();
26869 DROP PROCEDURE spexecute100;
26870 DROP PROCEDURE sp100;
26873 DROP PROCEDURE IF EXISTS sp101;
26875 CREATE PROCEDURE sp101( in f1 tinyint zerofill, inout f2 tinyint zerofill, out f3 tinyint zerofill, in f4 bigint, inout f5 bigint, out f6 bigint, in f7 bigint, inout f8 bigint, out f9 bigint, in f10 bigint, inout f11 bigint, out f12 bigint)
26877 set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10); set f2 = (f2 / 2); set f2 = (f2 * 2); set f2 = (f2 - 10); set f2 = (f2 + 10); set f3 = (f1 / 2); set f3 = (f1 * 2); set f3 = (f1 - 10); set f3 = (f1 + 10);
26878 set f6 = f5; set f5 = (f5 * 2); set f5 = (f5 - 10); set f5 = (f5 + 10); set f6 = (f6 * 2); set f6 = (f6 - 10); set f6 = (f6 + 10);
26879 set f9 = f8; set f8 = (f8 * 2); set f8 = (f8 - 10); set f8 = (f8 + 10); set f9 = (f9 * 2); set f9 = (f9 - 10); set f9 = (f9 + 10);
26880 set f12 = f11; set f11 = (f11 * 2); set f11 = (f11 - 10); set f11 = (f11 + 10); set f12 = (f12 * 2); set f12 = (f12 - 10); set f12 = (f12 + 10);
26881 SELECT f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;
26885 DROP PROCEDURE IF EXISTS spexecute101;
26887 CREATE PROCEDURE spexecute101()
26889 declare var1 tinyint zerofill;
26890 declare var2 tinyint zerofill;
26891 declare var3 bigint;
26892 declare var4 bigint;
26893 declare var5 bigint;
26894 declare var6 bigint;
26895 declare var7 bigint;
26896 declare var8 bigint;
26898 set var3 = -9.22e+18;
26899 set var5 = -9.22e+18;
26900 set var7 = -9.22e+18;
26901 CALL sp101(-101, var1, var2, -9.22e+18, var3, var4, -9.22e+18, var5, var6, -9.22e+18, var7, var8);
26902 SELECT var1, var2, var3, var4, var5, var6, var7, var8;
26906 CALL spexecute101();
26907 DROP PROCEDURE spexecute101;
26908 DROP PROCEDURE sp101;
26916 # ------------------------------------------------------------------------------
26917 let $message= Testcase 4.7.2:
26918 FIXME: a wrong testcase number and/or description has been detected here. This
26919 FIXME: needs to be checked to be sure where the missing testcase is located.
26921 check for "allow_invalid_dates" server sql mode
26923 --source include/show_msg80.inc
26926 DROP PROCEDURE IF EXISTS sp2;
26927 drop table IF EXISTS temp_table;
26930 create table temp_table (f1 datetime);
26932 set @@sql_mode = 'allow_invalid_dates';
26935 CREATE PROCEDURE sp2 ()
26937 declare a datetime;
26938 set a = '2005-03-14 01:01:02';
26939 insert into temp_table values(a);
26943 show CREATE PROCEDURE sp2;
26945 set @@sql_mode = 'traditional';
26948 SELECT * from temp_table;
26953 DROP PROCEDURE sp2;
26954 drop table temp_table;
26957 # ------------------------------------------------------------------------------
26958 let $message= Testcase 4.7.3:
26959 FIXME: a wrong testcase number and/or description has been detected here. This
26960 FIXME: needs to be checked to be sure where the missing testcase is located.
26962 check for *high_not_precedence* server sql mode
26964 --source include/show_msg80.inc
26967 DROP PROCEDURE IF EXISTS sp3;
26970 set @@sql_mode = 'high_not_precedence';
26973 CREATE PROCEDURE sp3()
26975 declare a int signed;
26976 declare b int unsigned;
26979 SELECT not 1 between a and b;
26983 show CREATE PROCEDURE sp3;
26991 DROP PROCEDURE sp3;
26994 # ------------------------------------------------------------------------------
26995 let $message= Testcase 4.7.4:
26996 FIXME: a wrong testcase number and/or description has been detected here. This
26997 FIXME: needs to be checked to be sure where the missing testcase is located.
26999 check for combination of server sql modes
27001 --source include/show_msg80.inc
27004 DROP PROCEDURE IF EXISTS sp4;
27007 set @@sql_mode = 'ansi, error_for_division_by_zero';
27009 # now set the corrent value:
27010 set @@sql_mode = 'ansi,error_for_division_by_zero';
27012 SHOW VARIABLES LIKE 'sql_mode';
27015 CREATE PROCEDURE sp4()
27027 show CREATE PROCEDURE sp4;
27034 DROP PROCEDURE sp4;
27038 # ==============================================================================
27039 let $message= Section 3.1.8 - SHOW statement checks:;
27040 --source include/show_msg80.inc
27046 # ------------------------------------------------------------------------------
27047 let $message= Testcase 4.8.1:;
27048 --source include/show_msg80.inc
27050 # testcase: ensure that the definition of a procedure is properly recorded and displayed when a show create
27051 # procedure statement is executed.
27054 DROP PROCEDURE IF EXISTS sp6;
27055 DROP PROCEDURE IF EXISTS sp6a;
27056 DROP PROCEDURE IF EXISTS sp6b;
27057 DROP PROCEDURE IF EXISTS sp6c;
27061 CREATE PROCEDURE sp6a (i1 longtext, out i2 mediumint , inout i3 longblob, in i4 year, out i5 real)
27070 CREATE PROCEDURE sp6b (out i1 longtext, out i2 mediumint , out i3 longblob, out i4 year, out i5 real)
27079 CREATE PROCEDURE sp6c (inout i1 longtext, inout i2 mediumint , inout i3 longblob, inout i4 year, inout i5 real) comment 'this is a comment'
27086 show CREATE PROCEDURE sp6a;
27088 show CREATE PROCEDURE sp6b;
27090 show CREATE PROCEDURE sp6c;
27092 --replace_column 5 <modified> 6 <created>
27093 SHOW PROCEDURE status like 'sp6a';
27095 --replace_column 5 <modified> 6 <created>
27096 SHOW PROCEDURE status like 'sp6b';
27098 --replace_column 5 <modified> 6 <created>
27099 SHOW PROCEDURE status like 'sp6c';
27102 DROP PROCEDURE sp6a;
27103 DROP PROCEDURE sp6b;
27104 DROP PROCEDURE sp6c;
27107 # ------------------------------------------------------------------------------
27108 let $message= Testcase 4.8.2:;
27109 --source include/show_msg80.inc
27111 # testcase: ensure that the definition of a procedure is properly recorded and displayed when a show procedure
27112 # status statement is executed.
27115 DROP PROCEDURE IF EXISTS sp6;
27119 CREATE PROCEDURE sp6 (i1 longtext, i2 mediumint , i3 longblob, i4 year, i5 real)
27126 --replace_column 5 <modified> 6 <created>
27127 SHOW PROCEDURE status like 'sp6';
27130 DROP PROCEDURE sp6;
27133 # ------------------------------------------------------------------------------
27134 let $message= Testcase 4.8.3:;
27135 --source include/show_msg80.inc
27137 # testcase: ensure that the definition of a procedure is not displayed when a show create function
27138 # statement is executed.
27141 DROP PROCEDURE IF EXISTS sp6;
27145 CREATE PROCEDURE sp6 (i1 longtext, i2 mediumint , i3 longblob, i4 year, i5 real)
27152 --error ER_SP_DOES_NOT_EXIST
27153 SHOW CREATE FUNCTION sp6;
27156 DROP PROCEDURE sp6;
27159 # ------------------------------------------------------------------------------
27160 let $message= Testcase 4.8.4:;
27161 --source include/show_msg80.inc
27163 # testcase: ensure that the definition of a procedure is properly recorded and displayed when a show function
27164 # status statement is executed.
27167 DROP PROCEDURE IF EXISTS sp6;
27171 CREATE FUNCTION sp6 (i1 longtext, i2 mediumint , i3 longblob, i4 year, i5 real) returns longtext
27179 --replace_column 5 <modified> 6 <created>
27180 show function status like 'sp6';
27186 # ------------------------------------------------------------------------------
27187 let $message= Testcase 4.8.5:;
27188 --source include/show_msg80.inc
27190 # testcase: ensure that the attempt to execute show CREATE PROCEDURE with the name of a non-existing
27191 # procedure fails with an appropriate error message.
27194 DROP PROCEDURE IF EXISTS sp7;
27197 --error ER_SP_DOES_NOT_EXIST
27198 show CREATE PROCEDURE sp7;
27201 # ------------------------------------------------------------------------------
27202 let $message= Testcase 4.8.6:;
27203 --source include/show_msg80.inc
27205 # testcase: ensure that the attempt to execute SHOW PROCEDURE status with the name of a non-existing
27206 # procedure returns an empty set.
27209 DROP PROCEDURE IF EXISTS sp6;
27212 show procedure status like 'sp6';
27216 # ------------------------------------------------------------------------------
27217 let $message= Testcase 4.8.7:;
27218 --source include/show_msg80.inc
27220 # testcase: ensure that an attempt to execute show CREATE PROCEDURE with the name of a function fails
27221 # with an appropriate error message.
27224 DROP FUNCTION IF EXISTS fn1;
27228 CREATE FUNCTION fn1 (i1 real) returns real
27234 --error ER_SP_DOES_NOT_EXIST
27235 show CREATE PROCEDURE fn1;
27241 # ------------------------------------------------------------------------------
27242 let $message= Testcase 4.8.8:;
27243 --source include/show_msg80.inc
27245 # testcase: ensure that an attempt to execute SHOW PROCEDURE status with the name of a
27246 # function returns an empty set.
27250 DROP FUNCTION IF EXISTS fn1;
27254 CREATE FUNCTION fn1 (i1 real) returns real
27260 --replace_column 5 <modified> 6 <created>
27261 show procedure status like 'fn1';
27267 # ------------------------------------------------------------------------------
27268 let $message= Testcase 4.8.9:;
27269 --source include/show_msg80.inc
27271 # testcase: ensure that the definition of a function is properly recorded and displayed when a
27272 # show CREATE FUNCTION statement is executed.
27276 # ------------------------------------------------------------------------------
27277 let $message= Testcase 4.8.10:;
27278 --source include/show_msg80.inc
27280 # testcase: ensure that the definition of a function is properly recorded and displayed when a
27281 # SHOW FUNCTION status.
27284 DROP FUNCTION IF EXISTS fn1;
27288 CREATE FUNCTION fn1 (i1 real) returns real
27294 --replace_column 5 <modified> 6 <created>
27295 SHOW FUNCTION STATUS LIKE 'fn1';
27301 # ------------------------------------------------------------------------------
27302 let $message= Testcase 4.8.11:;
27303 --source include/show_msg80.inc
27305 # testcase: ensure that the definition of a function is not displayed when a
27306 # show CREATE PROCEDURE statement is executed.
27309 DROP FUNCTION IF EXISTS fn1;
27313 CREATE FUNCTION fn1 (x int) returns int
27319 --error ER_SP_DOES_NOT_EXIST
27320 show CREATE PROCEDURE fn1;
27327 # ------------------------------------------------------------------------------
27328 let $message= Testcase 4.8.12:;
27329 --source include/show_msg80.inc
27331 # testcase: ensure that the attempt to execute show CREATE FUNCTION with the name of a
27332 # non-existing function fails with an appropriate error message.
27335 DROP FUNCTION IF EXISTS fn1;
27339 CREATE FUNCTION fn1(x int) returns int
27347 --error ER_SP_DOES_NOT_EXIST
27348 show CREATE FUNCTION fn1;
27352 # ------------------------------------------------------------------------------
27353 let $message= Testcase 4.8.13:;
27354 --source include/show_msg80.inc
27356 # testcase: ensure that the attempt to execute show function status with the name of a
27357 # non-existing function returns an empty set.
27361 DROP FUNCTION IF EXISTS f1000;
27364 SHOW FUNCTION STATUS LIKE 'f1000';
27367 # ------------------------------------------------------------------------------
27368 let $message= Testcase 4.8.14:;
27369 --source include/show_msg80.inc
27371 # testcase: ensure that an attempt to execute show CREATE FUNCTION with the name of a procedure
27372 # fails with an appropriate error message.
27375 DROP PROCEDURE IF EXISTS sp1;
27379 CREATE PROCEDURE sp1()
27385 --error ER_SP_DOES_NOT_EXIST
27386 show CREATE FUNCTION sp1;
27389 DROP PROCEDURE sp1;
27392 # ------------------------------------------------------------------------------
27393 let $message= Testcase 4.8.15:;
27394 --source include/show_msg80.inc
27396 # testcase: ensure that an attempt to execute show function status with the name of a procedure fails with an
27397 # appropriate error message.
27401 DROP PROCEDURE IF EXISTS sp6;
27405 CREATE PROCEDURE sp6 (i1 longtext, i2 mediumint , i3 longblob, i4 year, i5 real)
27412 --replace_column 5 <modified> 6 <created>
27413 show function status like 'sp6';
27416 DROP PROCEDURE sp6;
27420 # ------------------------------------------------------------------------------
27421 let $message= Testcase 4.8.16:;
27422 --source include/show_msg80.inc
27424 # testcase: ensure that all stored procedure changes made with alter procedure are properly recorded
27425 # and displayed when a show CREATE PROCEDURE statement is executed.
27430 # ------------------------------------------------------------------------------
27431 let $message= Testcase 4.8.17:;
27432 --source include/show_msg80.inc
27434 # testcase: ensure that all stored procedure changes made with alter procedure are properly recorded
27435 # and displayed when a SHOW PROCEDURE status statement is executed.
27438 DROP PROCEDURE IF EXISTS sp6;
27442 CREATE PROCEDURE sp6 (i1 longtext, i2 mediumint , i3 longblob, i4 year, i5 real)
27449 alter procedure sp6 sql security invoker;
27451 alter procedure sp6 comment 'this is a new comment';
27453 --replace_column 5 <modified> 6 <created>
27454 SHOW PROCEDURE status like 'sp6';
27457 DROP PROCEDURE sp6;
27460 # ------------------------------------------------------------------------------
27461 let $message= Testcase 4.8.18:;
27462 --source include/show_msg80.inc
27464 # testcase: ensure that all stored procedure changes made with alter function are properly recorded
27465 # and displayed when a show CREATE FUNCTION statement is executed.
27468 DROP FUNCTION IF EXISTS fn1;
27472 CREATE FUNCTION fn1 (x int) returns int
27478 alter function fn1 sql security invoker;
27480 show create function fn1;
27486 # ------------------------------------------------------------------------------
27487 let $message= Testcase 4.8.19:;
27488 --source include/show_msg80.inc
27490 # testcase: ensure that all function changes made with alter function are properly recorded and
27491 # displayed when a show function status statement is executed.
27494 DROP FUNCTION IF EXISTS fn1;
27498 CREATE FUNCTION fn1 (i1 longtext) returns longtext
27504 alter function fn1 sql security invoker;
27505 alter function fn1 comment 'this is a function 3242#@%$#@';
27507 --replace_column 5 <modified> 6 <created>
27508 show function status like 'fn1';
27515 # ------------------------------------------------------------------------------
27516 let $message= Testcase 4.8.20:;
27517 --source include/show_msg80.inc
27519 # testcase: ensure that all stored procedure changes made with alter procedure are properly
27520 # recorded and displayed when a show CREATE PROCEDURE statement is executed.
27523 DROP PROCEDURE IF EXISTS sp6;
27527 CREATE PROCEDURE sp6 (i1 int , i2 int)
27534 alter procedure sp6 comment 'this is simple';
27536 show CREATE PROCEDURE sp6;
27539 DROP PROCEDURE sp6;
27541 # ------------------------------------------------------------------------------
27542 let $message= Testcase 4.8.21:;
27543 --source include/show_msg80.inc
27545 # testcase: ensure that when a stored procedure is dropped, its definition no longer appears when
27546 # a show CREATE PROCEDURE is executed.
27549 DROP PROCEDURE IF EXISTS sp6;
27553 CREATE PROCEDURE sp6 (i1 int, i2 int)
27560 DROP PROCEDURE sp6;
27562 --error ER_SP_DOES_NOT_EXIST
27563 show CREATE PROCEDURE sp6;
27565 # ------------------------------------------------------------------------------
27566 let $message= Testcase 4.8.22:;
27567 --source include/show_msg80.inc
27569 # testcase: ensure that when a stored procedure is dropped, its definition no longer appears when
27570 # SHOW PROCEDURE status.
27574 DROP PROCEDURE IF EXISTS sp6;
27578 CREATE PROCEDURE sp6 (i1 longtext, i2 mediumint , i3 longblob, i4 year, i5 real)
27585 DROP PROCEDURE sp6;
27587 --replace_column 5 <modified> 6 <created>
27588 SHOW PROCEDURE status like 'sp6';
27591 # ------------------------------------------------------------------------------
27592 let $message= Testcase 4.8.23:;
27593 --source include/show_msg80.inc
27595 # testcase: ensure that when a stored procedure is dropped, its definition no longer appears
27596 # when a statement or a show CREATE FUNCTION statement is executed.
27599 DROP FUNCTION IF EXISTS fn1;
27603 CREATE FUNCTION fn1 (x int) returns int
27611 --error ER_SP_DOES_NOT_EXIST
27612 show CREATE FUNCTION fn1;
27615 # ------------------------------------------------------------------------------
27616 let $message= Testcase 4.8.24:;
27617 --source include/show_msg80.inc
27619 # testcase: ensure that when a function is dropped, its definition no longer appears when a
27620 # SHOW FUNCTION status statement is executed.
27621 # suppressed: the test does not display an error message. it just returns an empty set
27624 DROP FUNCTION IF EXISTS fn1;
27628 CREATE FUNCTION fn1 (i1 longtext) returns longtext
27636 --replace_column 5 <modified> 6 <created>
27637 SHOW FUNCTION STATUS LIKE 'fn1';
27640 # ==============================================================================
27641 let $message= Section 3.1.9 - Routine body checks:;
27642 --source include/show_msg80.inc
27646 # ------------------------------------------------------------------------------
27647 let $message= Testcase 4.9.1:;
27648 --source include/show_msg80.inc
27650 # testcase: verify SELECT sql statements that may be executed by a stored procedure.
27654 DROP PROCEDURE IF EXISTS sp6;
27658 CREATE PROCEDURE sp6 (i1 longtext, i2 mediumint , i3 longblob, i4 year, i5 real)
27664 SELECT * from t9 limit 0, 100;
27669 CALL sp6 (10, 20, 30, 40, 50);
27672 DROP PROCEDURE sp6;
27675 # ------------------------------------------------------------------------------
27676 let $message= Testcase 4.9.2:;
27677 --source include/show_msg80.inc
27679 # testcase: verify insert sql statements that can be executed by a stored procedure.
27683 DROP PROCEDURE IF EXISTS sp6;
27684 drop table IF EXISTS res_t9;
27687 create table res_t9 (f1 int, f2 char(25), f3 int);
27690 CREATE PROCEDURE sp6 (i1 longtext, i2 mediumint , i3 longblob, i4 year, i5 real)
27696 insert into res_t9 values (@y, @a, 111);
27697 SELECT * from res_t9;
27701 CALL sp6 (10, 20, 30, 40, 50);
27704 DROP PROCEDURE sp6;
27708 # ------------------------------------------------------------------------------
27709 let $message= Testcase 4.9.3:;
27710 --source include/show_msg80.inc
27712 # testcase: verify delete sql statements that may be executed by a stored procedure.
27716 DROP PROCEDURE IF EXISTS sp6;
27717 drop table IF EXISTS res_t9;
27720 create table res_t9 (f1 int, f2 char(25), f3 int);
27723 CREATE PROCEDURE sp6 (i1 longtext, i2 mediumint , i3 longblob, i4 year, i5 real)
27729 insert into res_t9 values (@y, @a, 111);
27730 SELECT * from res_t9;
27731 delete from res_t9;
27732 SELECT * from res_t9;
27737 CALL sp6 (10, 20, 30, 40, 50);
27740 DROP PROCEDURE sp6;
27744 # ------------------------------------------------------------------------------
27745 let $message= Testcase 4.9.4:;
27746 --source include/show_msg80.inc
27748 # testcase: verify update sql statements that may be executed by a stored procedure.
27752 DROP PROCEDURE IF EXISTS sp6;
27753 drop table IF EXISTS res_t9;
27756 create table res_t9 (f1 int, f2 char(25), f3 int);
27759 CREATE PROCEDURE sp6 (i1 longtext, i2 mediumint , i3 longblob, i4 year, i5 real)
27765 insert into res_t9 values (@y, @a, 111);
27766 SELECT * from res_t9;
27767 update res_t9 set f2 = 1000 where f2 = 50;
27768 SELECT * from res_t9;
27772 CALL sp6 (10, 20, 30, 40, 50);
27775 DROP PROCEDURE sp6;
27779 # ------------------------------------------------------------------------------
27780 let $message= Testcase 4.9.5:;
27781 --source include/show_msg80.inc
27783 # testcase: verify create sql statements that may be executed by a stored procedure
27786 DROP PROCEDURE IF EXISTS sp6;
27787 drop table IF EXISTS res_t9;
27791 CREATE PROCEDURE sp6 (i1 longtext, i2 mediumint , i3 longblob, i4 year, i5 real)
27799 create table res_t9(f1 longtext, f2 longblob, f3 real);
27800 insert into res_t9 values (@a, @b, @c);
27801 SELECT * from res_t9;
27805 CALL sp6 (10, 20, 30, 40, 50);
27808 DROP PROCEDURE sp6;
27810 drop table IF EXISTS res_t9;
27813 # ------------------------------------------------------------------------------
27814 let $message= Testcase 4.9.6:;
27815 --source include/show_msg80.inc
27817 # testcase: verify select/insert/update/create statements are disallowed in a function.
27818 # updated testcase: verify select/insert/update/create statements are ALLOWED in a function.
27820 DROP FUNCTION IF EXISTS fn1;
27823 --error ER_SP_NO_RETSET
27824 CREATE FUNCTION fn1(i1 longtext) returns longtext
27826 SELECT * from t9 limit 0, 100;
27831 DROP FUNCTION IF EXISTS fn1;
27832 drop table IF EXISTS res_t9;
27834 create table res_t9 (f1 int, f2 char(25), f3 int);
27835 insert into res_t9 values (10, 'abc', 20);
27838 --error ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG
27839 CREATE FUNCTION fn1(i1 longtext) returns longtext
27841 delete from res_t9;
27847 DROP FUNCTION IF EXISTS fn1;
27848 drop table IF EXISTS res_t9;
27851 --error ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG
27852 CREATE FUNCTION fn1(i1 longtext) returns longtext
27854 create table res_t9 (f1 longtext, f2 longblob, f3 real);
27860 DROP FUNCTION IF EXISTS fn1;
27861 drop table IF EXISTS res_t9;
27863 create table res_t9 (f1 int, f2 char(25), f3 int);
27866 --error ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG
27867 CREATE FUNCTION fn1(i1 longtext) returns longtext
27869 insert into res_t9 values (100, 'abc', 300);
27875 DROP FUNCTION IF EXISTS fn1;
27876 drop table IF EXISTS res_t9;
27878 create table res_t9 (f1 int, f2 char(25), f3 int);
27879 insert into res_t9 values (10, 'abc', 20);
27882 --error ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG
27883 CREATE FUNCTION fn1(i1 longtext) returns longtext
27885 update res_t9 set f1 = 20;
27893 DROP FUNCTION IF EXISTS fn1;
27896 # ------------------------------------------------------------------------------
27897 let $message= Testcase 4.9.7:;
27898 --source include/show_msg80.inc
27900 # testcase: verify create index sql statement that may be executed by a stored procedure
27903 DROP PROCEDURE IF EXISTS sp6;
27904 drop table IF EXISTS res_t9;
27907 create table res_t9 (f1 longtext, f2 longblob, f3 real);
27910 CREATE PROCEDURE sp6 (i1 longtext, i2 mediumint , i3 longblob, i4 year, i5 real)
27918 insert into res_t9 values (@a, @b, @c);
27919 SELECT * from res_t9;
27920 create index index_1 on res_t9 (f1 (5));
27921 show index from res_t9;
27925 CALL sp6 (10, 20, 30, 40, 50);
27928 DROP PROCEDURE sp6;
27932 # ==============================================================================
27934 # test plan section: 4.11 - verify handlers with continue and exit conditions
27936 # ==============================================================================
27937 let $message= Section 3.1._ - :;
27938 --source include/show_msg80.inc
27942 # ------------------------------------------------------------------------------
27943 let $message= Testcase 4.11.1:;
27944 --source include/show_msg80.inc
27946 # testcase: verify continue handler for error code 1318 (er_sp_wrong_no_of_args)
27948 DROP PROCEDURE IF EXISTS h1;
27949 DROP PROCEDURE IF EXISTS sp1;
27953 CREATE PROCEDURE sp1 (x int, y int)
27960 CREATE PROCEDURE h1 ()
27962 declare continue handler for 1318 set @x2 = 1;
27974 DROP PROCEDURE sp1;
27978 # ------------------------------------------------------------------------------
27979 let $message= Testcase 4.11.2:;
27980 --source include/show_msg80.inc
27982 # testcase: verify continue handler for error code 1305 (er_sp_does_not_exist)
27985 DROP PROCEDURE IF EXISTS h1;
27989 CREATE PROCEDURE h1 ()
27991 declare continue handler for 1305 set @x2 = 1;
28005 # ------------------------------------------------------------------------------
28006 let $message= Testcase 4.11.3:;
28007 --source include/show_msg80.inc
28009 # testcase: verify exit handler for error code 1318 (er_sp_wrong_no_of_args)
28012 DROP PROCEDURE IF EXISTS h1;
28013 DROP PROCEDURE IF EXISTS sp1;
28017 CREATE PROCEDURE sp1 (x int, y int)
28024 CREATE PROCEDURE h1 ()
28026 declare exit handler for 1318 set @x2 = 1;
28040 DROP PROCEDURE sp1;
28044 # ------------------------------------------------------------------------------
28045 let $message= Testcase 4.11.4:;
28046 --source include/show_msg80.inc
28048 # testcase: verify exit handler for error code 1305 (er_sp_does_not_exist)
28051 DROP PROCEDURE IF EXISTS h1;
28055 CREATE PROCEDURE h1 ()
28057 declare exit handler for 1305 set @x2 = 1;
28074 # ------------------------------------------------------------------------------
28075 let $message= Testcase 4.11.5:;
28076 --source include/show_msg80.inc
28078 # testcase: verify undo handler for error code 1318 (er_sp_wrong_no_of_args)
28082 DROP PROCEDURE IF EXISTS h1;
28083 DROP PROCEDURE IF EXISTS sp1;
28087 CREATE PROCEDURE sp1 (x int, y int)
28094 CREATE PROCEDURE h1 ()
28096 declare continue handler for 1318 set @x2 = 1;
28108 DROP PROCEDURE sp1;
28112 # ------------------------------------------------------------------------------
28113 let $message= Testcase 4.11.6:;
28114 --source include/show_msg80.inc
28116 # testcase: verify undo handler for error code 1305 (er_sp_does_not_exist)
28120 DROP PROCEDURE IF EXISTS h1;
28121 DROP PROCEDURE IF EXISTS sp1;
28125 CREATE PROCEDURE sp1 (x int, y int)
28132 CREATE PROCEDURE h1 ()
28134 declare continue handler for 1318 set @x2 = 1;
28146 DROP PROCEDURE sp1;
28150 # ------------------------------------------------------------------------------
28151 let $message= Testcase 4.11.7:;
28152 --source include/show_msg80.inc
28154 # testcase: verify continue handler for sql state 42000 (er_sp_wrong_no_of_args)
28157 DROP PROCEDURE IF EXISTS h1;
28158 DROP PROCEDURE IF EXISTS sp1;
28162 CREATE PROCEDURE sp1 (x int, y int)
28169 CREATE PROCEDURE h1 ()
28171 declare continue handler for sqlstate '42000' set @x2 = 1;
28183 DROP PROCEDURE sp1;
28186 # ------------------------------------------------------------------------------
28187 let $message= Testcase 4.11.8:;
28188 --source include/show_msg80.inc
28190 # testcase: verify continue handler for sql state 42000 (er_sp_does_not_exist)
28193 DROP PROCEDURE IF EXISTS h1;
28198 CREATE PROCEDURE h1 ()
28200 declare continue handler for sqlstate '42000' set @x2 = 1;
28214 # ------------------------------------------------------------------------------
28215 let $message= Testcase 4.11.9:;
28216 --source include/show_msg80.inc
28218 # testcase: verify exit handler for sql state 42000 (er_sp_wrong_no_of_args)
28221 DROP PROCEDURE IF EXISTS h1;
28222 DROP PROCEDURE IF EXISTS sp1;
28226 CREATE PROCEDURE sp1 (x int, y int)
28233 CREATE PROCEDURE h1 ()
28235 declare exit handler for sqlstate '42000' set @x2 = 1;
28249 DROP PROCEDURE sp1;
28253 # ------------------------------------------------------------------------------
28254 let $message= Testcase 4.11.10:;
28255 --source include/show_msg80.inc
28257 # testcase: verify exit handler for sql state 42000 (er_sp_does_not_exist)
28260 DROP PROCEDURE IF EXISTS h1;
28264 CREATE PROCEDURE h1 ()
28266 declare exit handler for sqlstate '42000' set @x2 = 1;
28282 # ------------------------------------------------------------------------------
28283 let $message= Testcase 4.11.11:;
28284 --source include/show_msg80.inc
28286 # testcase: verify undo handler for sql state 42000 (er_sp_wrong_no_of_args)
28289 DROP PROCEDURE IF EXISTS h1;
28290 DROP PROCEDURE IF EXISTS sp1;
28294 CREATE PROCEDURE sp1 (x int, y int)
28301 CREATE PROCEDURE h1 ()
28303 declare continue handler for sqlstate '42000' set @x2 = 1;
28315 DROP PROCEDURE sp1;
28319 # ------------------------------------------------------------------------------
28320 let $message= Testcase 4.11.12:;
28321 --source include/show_msg80.inc
28323 # testcase: verify undo handler for sql state 42000 (er_sp_does_not_exist)
28327 DROP PROCEDURE IF EXISTS h1;
28328 DROP PROCEDURE IF EXISTS sp1;
28332 CREATE PROCEDURE sp1 (x int, y int)
28339 CREATE PROCEDURE h1 ()
28341 declare continue handler for sqlstate '42000' set @x2 = 1;
28353 DROP PROCEDURE sp1;
28355 # ------------------------------------------------------------------------------
28356 let $message= Testcase 4.11.13:;
28357 --source include/show_msg80.inc
28359 # testcase: verify continue handler for sql state 02000 (er_sp_fetch_no_data)
28362 DROP PROCEDURE IF EXISTS h1;
28363 drop table IF EXISTS res_t1;
28364 drop table IF EXISTS res_t2;
28367 create table res_t1(w char, x char);
28369 create table res_t2(y char, z char);
28372 CREATE PROCEDURE h1()
28374 declare done int default 0;
28376 declare cur1 cursor for SELECT w, x from res_t1;
28377 declare continue handler for sqlstate '02000' set done = 1;
28381 fetch cur1 into a, b;
28384 insert into res_t2 values (a, b);
28386 until done END repeat;
28396 DROP PROCEDURE IF EXISTS h1;
28397 DROP TABLE IF EXISTS res_t1;
28398 DROP TABLE IF EXISTS res_t2;
28403 # ------------------------------------------------------------------------------
28404 let $message= Testcase 4.11.14:;
28405 --source include/show_msg80.inc
28407 # testcase: verify continue handler for error code 1329 (er_sp_fetch_no_data)
28410 DROP PROCEDURE IF EXISTS h1;
28411 drop table IF EXISTS res_t1;
28412 drop table IF EXISTS res_t2;
28414 create table res_t1(w char, x char);
28416 create table res_t2(y char, z char);
28419 CREATE PROCEDURE h1()
28421 declare done int default 0;
28423 declare cur1 cursor for SELECT w, x from res_t1;
28424 declare continue handler for sqlstate '02000' set done = 1;
28428 fetch cur1 into a, b;
28431 insert into res_t2 values (a, b);
28433 until done END repeat;
28443 DROP PROCEDURE IF EXISTS h1;
28444 DROP TABLE IF EXISTS res_t1;
28445 DROP TABLE IF EXISTS res_t2;
28450 # ------------------------------------------------------------------------------
28451 let $message= Testcase 4.11.15:;
28452 --source include/show_msg80.inc
28454 # testcase: verify exit handler for error code 1329 (er_sp_fetch_no_data)
28457 DROP PROCEDURE IF EXISTS h1;
28458 drop table IF EXISTS res_t1;
28459 drop table IF EXISTS res_t2;
28462 create table res_t1(w char, x char);
28464 create table res_t2(y char, z char);
28467 CREATE PROCEDURE h1()
28469 declare done int default 0;
28471 declare cur1 cursor for SELECT w, x from res_t1;
28472 declare continue handler for sqlstate '02000' set done = 1;
28477 fetch cur1 into a, b;
28480 insert into res_t2 values (a, b);
28482 until done END repeat;
28492 DROP PROCEDURE IF EXISTS h1;
28493 DROP TABLE IF EXISTS res_t1;
28494 DROP TABLE IF EXISTS res_t2;
28498 # ------------------------------------------------------------------------------
28499 let $message= Testcase 4.11.16:;
28500 --source include/show_msg80.inc
28502 # testcase: verify exit handler for sql state '02000' (er_sp_fetch_no_data)
28505 DROP PROCEDURE IF EXISTS h1;
28506 drop table IF EXISTS res_t1;
28507 drop table IF EXISTS res_t2;
28510 create table res_t1(w char, x char);
28512 create table res_t2(y char, z char);
28515 CREATE PROCEDURE h1()
28517 declare done int default 0;
28519 declare cur1 cursor for SELECT w, x from res_t1;
28520 declare continue handler for sqlstate '02000' set done = 1;
28525 fetch cur1 into a, b;
28528 insert into res_t2 values (a, b);
28530 until done END repeat;
28540 DROP PROCEDURE IF EXISTS h1;
28541 DROP TABLE IF EXISTS res_t1;
28542 DROP TABLE IF EXISTS res_t2;
28546 # ------------------------------------------------------------------------------
28547 let $message= Testcase 4.11.17:;
28548 --source include/show_msg80.inc
28550 # testcase: verify continue handler for sql state HY000 (er_sp_wrong_no_of_fetch_args)
28553 DROP PROCEDURE IF EXISTS h1;
28554 drop table IF EXISTS res_t1;
28555 drop table IF EXISTS res_t2;
28558 create table res_t1(w char, x char);
28560 insert into res_t1 values('a', 'b');
28561 insert into res_t1 values('c', 'd');
28563 create table res_t2(y char, z char);
28566 CREATE PROCEDURE h1()
28568 declare done int default 0;
28570 declare cur1 cursor for SELECT w, x from res_t1;
28571 declare continue handler for sqlstate 'HY000' set done = 1;
28584 DROP PROCEDURE IF EXISTS h1;
28585 DROP TABLE IF EXISTS res_t1;
28586 DROP TABLE IF EXISTS res_t2;
28590 # ------------------------------------------------------------------------------
28591 let $message= Testcase 4.11.18:;
28592 --source include/show_msg80.inc
28594 # testcase: verify continue handler for error code 1328 (er_sp_wrong_no_of_fetch_args)
28597 DROP PROCEDURE IF EXISTS h1;
28598 drop table IF EXISTS res_t1;
28599 drop table IF EXISTS res_t2;
28602 create table res_t1(w char, x char);
28604 insert into res_t1 values('a', 'b');
28605 insert into res_t1 values('c', 'd');
28607 create table res_t2(y char, z char);
28610 CREATE PROCEDURE h1()
28612 declare done int default 0;
28614 declare cur1 cursor for SELECT w, x from res_t1;
28615 declare continue handler for 1328 set done = 1;
28628 DROP PROCEDURE IF EXISTS h1;
28629 DROP TABLE IF EXISTS res_t1;
28630 DROP TABLE IF EXISTS res_t2;
28633 # ------------------------------------------------------------------------------
28634 let $message= Testcase 4.11.19:;
28635 --source include/show_msg80.inc
28637 # testcase: verify exit handler for sql state HY000 (er_sp_wrong_no_of_fetch_args)
28640 DROP PROCEDURE IF EXISTS h1;
28641 drop table IF EXISTS res_t1;
28642 drop table IF EXISTS res_t2;
28645 create table res_t1(w char, x char);
28647 insert into res_t1 values('a', 'b');
28648 insert into res_t1 values('c', 'd');
28650 create table res_t2(y char, z char);
28653 CREATE PROCEDURE h1()
28655 declare done int default 0;
28657 declare cur1 cursor for SELECT w, x from res_t1;
28658 declare exit handler for sqlstate 'HY000' set done = 1;
28673 DROP PROCEDURE IF EXISTS h1;
28674 DROP TABLE IF EXISTS res_t1;
28675 DROP TABLE IF EXISTS res_t2;
28678 # ------------------------------------------------------------------------------
28679 let $message= Testcase 4.11.20:;
28680 --source include/show_msg80.inc
28682 # testcase: verify exit handler for error code 1328 (er_sp_wrong_no_of_fetch_args)
28685 DROP PROCEDURE IF EXISTS h1;
28686 drop table IF EXISTS res_t1;
28687 drop table IF EXISTS res_t2;
28690 create table res_t1(w char, x char);
28692 insert into res_t1 values('a', 'b');
28693 insert into res_t1 values('c', 'd');
28695 create table res_t2(y char, z char);
28698 CREATE PROCEDURE h1()
28700 declare done int default 0;
28702 declare cur1 cursor for SELECT w, x from res_t1;
28703 declare exit handler for 1328 set done = 1;
28718 DROP PROCEDURE IF EXISTS h1;
28719 DROP TABLE IF EXISTS res_t1;
28720 DROP TABLE IF EXISTS res_t2;
28724 # ------------------------------------------------------------------------------
28725 let $message= Testcase 4.11.21:;
28726 --source include/show_msg80.inc
28728 # testcase: verify continue handler for error code 1325 (er_sp_cursor_already_open)
28731 DROP PROCEDURE IF EXISTS h1;
28732 drop table IF EXISTS res_t1;
28733 drop table IF EXISTS res_t2;
28736 create table res_t1(w char, x char);
28738 insert into res_t1 values('a', 'b');
28739 insert into res_t1 values('c', 'd');
28741 create table res_t2(y char, z char);
28744 CREATE PROCEDURE h1()
28746 declare done int default 0;
28748 declare cur1 cursor for SELECT w, x from res_t1;
28749 declare continue handler for 1325 set done = 1;
28762 DROP PROCEDURE IF EXISTS h1;
28763 DROP TABLE IF EXISTS res_t1;
28764 DROP TABLE IF EXISTS res_t2;
28767 # ------------------------------------------------------------------------------
28768 let $message= Testcase 4.11.22:;
28769 --source include/show_msg80.inc
28771 # testcase: verify continue handler for sqlstate 24000 (er_sp_cursor_already_open)
28774 DROP PROCEDURE IF EXISTS h1;
28775 drop table IF EXISTS res_t1;
28776 drop table IF EXISTS res_t2;
28779 create table res_t1(w char, x char);
28781 insert into res_t1 values('a', 'b');
28782 insert into res_t1 values('c', 'd');
28784 create table res_t2(y char, z char);
28787 CREATE PROCEDURE h1()
28789 declare done int default 0;
28791 declare cur1 cursor for SELECT w, x from res_t1;
28792 declare continue handler for 1325 set done = 1;
28806 DROP PROCEDURE IF EXISTS h1;
28807 DROP TABLE IF EXISTS res_t1;
28808 DROP TABLE IF EXISTS res_t2;
28811 # ------------------------------------------------------------------------------
28812 let $message= Testcase 4.11.23:;
28813 --source include/show_msg80.inc
28815 # testcase: verify exit handler for error code 1325 (er_sp_cursor_already_open)
28818 DROP PROCEDURE IF EXISTS h1;
28819 drop table IF EXISTS res_t1;
28820 drop table IF EXISTS res_t2;
28823 create table res_t1(w char, x char);
28825 insert into res_t1 values('a', 'b');
28826 insert into res_t1 values('c', 'd');
28828 create table res_t2(y char, z char);
28831 CREATE PROCEDURE h1()
28833 declare done int default 0;
28835 declare cur1 cursor for SELECT w, x from res_t1;
28836 declare exit handler for 1325 set done = 1;
28851 DROP PROCEDURE IF EXISTS h1;
28852 DROP TABLE IF EXISTS res_t1;
28853 DROP TABLE IF EXISTS res_t2;
28856 # ------------------------------------------------------------------------------
28857 let $message= Testcase 4.11.24:;
28858 --source include/show_msg80.inc
28860 # testcase: verify exit handler for sqlstate 24000 (er_sp_cursor_already_open)
28863 DROP PROCEDURE IF EXISTS h1;
28864 drop table IF EXISTS res_t1;
28865 drop table IF EXISTS res_t2;
28868 create table res_t1(w char, x char);
28870 insert into res_t1 values('a', 'b');
28871 insert into res_t1 values('c', 'd');
28873 create table res_t2(y char, z char);
28876 CREATE PROCEDURE h1()
28878 declare done int default 0;
28880 declare cur1 cursor for SELECT w, x from res_t1;
28881 declare exit handler for sqlstate '24000' set done = 1;
28896 DROP PROCEDURE IF EXISTS h1;
28897 DROP TABLE IF EXISTS res_t1;
28898 DROP TABLE IF EXISTS res_t2;
28901 # ------------------------------------------------------------------------------
28902 let $message= Testcase 4.11.25:;
28903 --source include/show_msg80.inc
28905 # testcase: verify continue handler for error code 1326 (er_sp_cursor_not_open)
28908 DROP PROCEDURE IF EXISTS h1;
28909 drop table IF EXISTS res_t1;
28910 drop table IF EXISTS res_t2;
28913 create table res_t1(w char, x char);
28915 insert into res_t1 values('a', 'b');
28916 insert into res_t1 values('c', 'd');
28918 create table res_t2(y char, z char);
28921 CREATE PROCEDURE h1()
28923 declare done int default 0;
28925 declare cur1 cursor for SELECT w, x from res_t1;
28926 declare continue handler for 1326 set done = 1;
28928 fetch cur1 into a, b;
28938 DROP PROCEDURE IF EXISTS h1;
28939 DROP TABLE IF EXISTS res_t1;
28940 DROP TABLE IF EXISTS res_t2;
28945 # ------------------------------------------------------------------------------
28946 let $message= Testcase 4.11.26:;
28947 --source include/show_msg80.inc
28949 # testcase: verify continue handler for sqlstate 24000 (er_sp_cursor_not_open)
28952 DROP PROCEDURE IF EXISTS h1;
28953 drop table IF EXISTS res_t1;
28954 drop table IF EXISTS res_t2;
28957 create table res_t1(w char, x char);
28959 insert into res_t1 values('a', 'b');
28960 insert into res_t1 values('c', 'd');
28962 create table res_t2(y char, z char);
28965 CREATE PROCEDURE h1()
28967 declare done int default 0;
28969 declare cur1 cursor for SELECT w, x from res_t1;
28970 declare continue handler for sqlstate '24000' set done = 1;
28972 fetch cur1 into a, b;
28982 DROP PROCEDURE IF EXISTS h1;
28983 DROP TABLE IF EXISTS res_t1;
28984 DROP TABLE IF EXISTS res_t2;
28988 # ------------------------------------------------------------------------------
28989 let $message= Testcase 4.11.27:;
28990 --source include/show_msg80.inc
28992 # testcase: verify exit handler for error code 1326 (er_sp_cursor_not_open)
28995 DROP PROCEDURE IF EXISTS h1;
28996 drop table IF EXISTS res_t1;
28997 drop table IF EXISTS res_t2;
29000 create table res_t1(w char, x char);
29002 insert into res_t1 values('a', 'b');
29003 insert into res_t1 values('c', 'd');
29005 create table res_t2(y char, z char);
29008 CREATE PROCEDURE h1()
29010 declare done int default 0;
29012 declare cur1 cursor for SELECT w, x from res_t1;
29013 declare exit handler for 1326 set done = 1;
29015 fetch cur1 into a, b;
29025 DROP PROCEDURE IF EXISTS h1;
29026 DROP TABLE IF EXISTS res_t1;
29027 DROP TABLE IF EXISTS res_t2;
29031 # ------------------------------------------------------------------------------
29032 let $message= Testcase 4.11.28:;
29033 --source include/show_msg80.inc
29035 # testcase: verify exit handler for sqlstate 24000 (er_sp_cursor_not_open)
29038 DROP PROCEDURE IF EXISTS h1;
29039 drop table IF EXISTS res_t1;
29040 drop table IF EXISTS res_t2;
29043 create table res_t1(w char, x char);
29045 insert into res_t1 values('a', 'b');
29046 insert into res_t1 values('c', 'd');
29048 create table res_t2(y char, z char);
29051 CREATE PROCEDURE h1()
29053 declare done int default 0;
29055 declare cur1 cursor for SELECT w, x from res_t1;
29056 declare exit handler for sqlstate '24000' set done = 1;
29058 fetch cur1 into a, b;
29068 DROP PROCEDURE IF EXISTS h1;
29069 drop table IF EXISTS res_t1;
29070 drop table IF EXISTS res_t2;
29074 # ------------------------------------------------------------------------------
29075 let $message= Testcase 4.11.29:;
29076 --source include/show_msg80.inc
29078 # testcase: verify continue handler for error code 1339 (er_sp_case_not_found)
29081 DROP PROCEDURE IF EXISTS h1;
29082 drop table IF EXISTS res_t1;
29083 drop table IF EXISTS res_t2;
29086 create table res_t1(w char, x char);
29088 insert into res_t1 values('a', 'b');
29089 insert into res_t1 values('c', 'd');
29091 create table res_t2(y char, z char);
29094 CREATE PROCEDURE h1()
29096 declare done int default 0;
29098 declare cur1 cursor for SELECT w, x from res_t1;
29099 declare continue handler for 1339 set done = 1;
29102 when 1 then set @x=10;
29103 when 2 then set @x=11;
29114 DROP PROCEDURE IF EXISTS h1;
29115 drop table IF EXISTS res_t1;
29116 drop table IF EXISTS res_t2;
29120 # ------------------------------------------------------------------------------
29121 let $message= Testcase 4.11.30:;
29122 --source include/show_msg80.inc
29124 # testcase: verify continue handler for sqlstate 20000 (er_sp_case_not_found)
29127 DROP PROCEDURE IF EXISTS h1;
29128 drop table IF EXISTS res_t1;
29129 drop table IF EXISTS res_t2;
29132 create table res_t1(w char, x char);
29134 insert into res_t1 values('a', 'b');
29135 insert into res_t1 values('c', 'd');
29137 create table res_t2(y char, z char);
29140 CREATE PROCEDURE h1()
29142 declare done int default 0;
29144 declare cur1 cursor for SELECT w, x from res_t1;
29145 declare continue handler for sqlstate '20000' set done = 1;
29148 when 1 then set @x=10;
29149 when 2 then set @x=11;
29160 DROP PROCEDURE IF EXISTS h1;
29161 drop table IF EXISTS res_t1;
29162 drop table IF EXISTS res_t2;
29166 # ------------------------------------------------------------------------------
29167 let $message= Testcase 4.11.31:;
29168 --source include/show_msg80.inc
29170 # testcase: verify exit handler for error code 1339 (er_sp_case_not_found)
29173 DROP PROCEDURE IF EXISTS h1;
29174 drop table IF EXISTS res_t1;
29175 drop table IF EXISTS res_t2;
29178 create table res_t1(w char, x char);
29180 insert into res_t1 values('a', 'b');
29181 insert into res_t1 values('c', 'd');
29183 create table res_t2(y char, z char);
29186 CREATE PROCEDURE h1()
29188 declare done int default 0;
29190 declare cur1 cursor for SELECT w, x from res_t1;
29191 declare exit handler for 1339 set done = 1;
29194 when 1 then set @x=10;
29195 when 2 then set @x=11;
29206 DROP PROCEDURE IF EXISTS h1;
29207 drop table IF EXISTS res_t1;
29208 drop table IF EXISTS res_t2;
29212 # ------------------------------------------------------------------------------
29213 let $message= Testcase 4.11.32:;
29214 --source include/show_msg80.inc
29216 # testcase: verify exit handler for sqlstate 20000 (er_sp_case_not_found)
29219 DROP PROCEDURE IF EXISTS h1;
29220 drop table IF EXISTS res_t1;
29221 drop table IF EXISTS res_t2;
29224 create table res_t1(w char, x char);
29226 insert into res_t1 values('a', 'b');
29227 insert into res_t1 values('c', 'd');
29229 create table res_t2(y char, z char);
29232 CREATE PROCEDURE h1()
29234 declare done int default 0;
29236 declare cur1 cursor for SELECT w, x from res_t1;
29237 declare exit handler for sqlstate '20000' set done = 1;
29240 when 1 then set @x=10;
29241 when 2 then set @x=11;
29252 DROP PROCEDURE IF EXISTS h1;
29253 DROP TABLE IF EXISTS res_t1;
29254 DROP TABLE IF EXISTS res_t2;
29257 # ------------------------------------------------------------------------------
29258 let $message= Testcase 4.11.33:;
29259 --source include/show_msg80.inc
29261 # testcase: ensure that no two conditions declared with the same scope may have the same condition name.
29262 # (same condition name in same scope)
29265 DROP PROCEDURE IF EXISTS h1;
29266 drop table IF EXISTS res_t1;
29269 create table res_t1(w char, x char);
29271 insert into res_t1 values('a', 'b');
29272 insert into res_t1 values('c', 'd');
29275 --error ER_SP_DUP_COND
29276 CREATE PROCEDURE h1()
29278 declare condname condition for sqlstate '20000';
29279 declare done int default 0;
29281 declare condname condition for sqlstate '20000';
29282 declare cur1 cursor for SELECT w, x from t1;
29285 when 1 then set @x=10;
29286 when 2 then set @x=11;
29295 DROP TABLE IF EXISTS res_t1;
29299 # ------------------------------------------------------------------------------
29300 let $message= Testcase 4.11.35:;
29302 # Ensure that every sqlstate value declared with a declare condition for
29303 # statement and declare handler is a character string that is 5 character and
29304 # cannot be an invalid state.;
29306 --source include/show_msg80.inc
29309 DROP PROCEDURE IF EXISTS h1;
29310 drop table IF EXISTS res_t1;
29313 CREATE TABLE res_t1(w INT UNIQUE, x CHAR);
29315 insert into res_t1 values (1, 'a');
29319 --error ER_SP_BAD_SQLSTATE
29320 CREATE PROCEDURE h1 ()
29322 declare condname1 condition for sqlstate '020';
29323 declare condname2 condition for sqlstate 'wewe';
29324 declare condname3 condition for 9999;
29325 declare exit handler for sqlstate '020' set @var1 = 1;
29326 declare exit handler for sqlstate 'wewe'set @var1 = 1;
29327 declare exit handler for 9999 set @var1 = 1;
29329 insert into res_t1 values (2, 'b');
29330 begin2_label: BEGIN
29331 declare continue handler for sqlstate '90000023' set @var3= 1;
29333 insert into res_t1 values (3, 'c');
29337 --error ER_SP_BAD_SQLSTATE
29338 CREATE PROCEDURE h1 ()
29340 declare condname1 condition for sqlstate '020';
29341 declare condname2 condition for sqlstate 'wewe';
29342 declare condname3 condition for 9999;
29344 insert into res_t1 values (2, 'b');
29345 begin2_label: BEGIN
29346 declare continue handler for sqlstate '90000023' set @var3= 1;
29348 insert into res_t1 values (3, 'c');
29355 DROP TABLE IF EXISTS res_t1;
29359 # ------------------------------------------------------------------------------
29360 let $message= Testcase 4.11.36:;
29361 --source include/show_msg80.inc
29363 # testcase: ensure that the declare condition for statement cannot declare a condition for the successful
29364 # completion sqlstate: 00000.
29368 DROP PROCEDURE IF EXISTS h1;
29372 CREATE PROCEDURE h1 ()
29374 declare x1 int default 0;
29376 declare condname1 condition for sqlstate '00000';
29377 declare exit handler for condname1 set @x = 1;
29387 DROP PROCEDURE IF EXISTS h1;
29395 # ------------------------------------------------------------------------------
29396 let $message= Testcase 4.11.40:;
29397 --source include/show_msg80.inc
29399 # testcase: ensure that within the same scope, no two handlers may be declared for the same condition
29402 DROP PROCEDURE IF EXISTS h1;
29403 DROP TABLE IF EXISTS res_t1;
29406 CREATE TABLE res_t1(w CHAR UNIQUE, x CHAR);
29407 INSERT INTO res_t1 VALUES ('a', 'b');
29409 # suppressed--error for having two similar handlers in the same scope
29412 --error ER_SP_DUP_HANDLER
29413 CREATE PROCEDURE h1 ()
29415 DECLARE x1, x2, x3, x4, x5 int default 0;
29416 DECLARE condname1 CONDITION FOR SQLSTATE '42000';
29417 DECLARE condname2 CONDITION FOR SQLSTATE '42000';
29418 DECLARE CONTINUE HANDLER FOR condname1 set x1 = 1;
29419 DECLARE CONTINUE HANDLER FOR condname1 set x2 = 1;
29420 DECLARE EXIT HANDLER FOR condname1 SET x3 = 1;
29421 DECLARE CONTINUE HANDLER FOR condname2 SET x4 = 1;
29422 DECLARE EXIT HANDLER FOR condname2 SET x5 = 1;
29430 DROP PROCEDURE IF EXISTS h1;
29431 DROP TABLE IF EXISTS res_t1;
29435 # ------------------------------------------------------------------------------
29436 let $message= Testcase 4.11.41:;
29437 --source include/show_msg80.inc
29439 # testcase: ensure that the declare handler for statement cannot declare a condition for the successful
29440 # completion sqlstate: 00000.
29443 DROP PROCEDURE IF EXISTS h1;
29447 CREATE PROCEDURE h1 ()
29449 DECLARE x1 INT DEFAULT 0;
29451 DECLARE condname1 CONDITION FOR SQLSTATE '00000';
29452 DECLARE EXIT HANDLER FOR SQLSTATE '00000' SET @x = 1;
29464 DROP PROCEDURE IF EXISTS h1;
29468 # ------------------------------------------------------------------------------
29469 # FIXME 3.1.2.53: check numbering difference
29470 let $message= * Testcase 3.1.2.53 (4.11.42):
29471 * Ensure that a handler condition of sqlwarning takes the same action as a
29472 * handler condition defined with an sqlstate that begins with 01.;
29473 --source include/show_msg80.inc
29477 DROP PROCEDURE IF EXISTS h1;
29478 DROP TABLE IF EXISTS res_t1;
29482 CREATE PROCEDURE h1()
29484 DECLARE EXIT HANDLER FOR SQLWARNING SET @done = 1;
29487 INSERT INTO res_t1 VALUES('xxx', 'yy');
29492 # table doesn't exist
29493 --error ER_NO_SUCH_TABLE
29497 CREATE TABLE res_t1(w CHAR, x CHAR);
29498 INSERT INTO res_t1 VALUES('a', 'b');
29499 INSERT INTO res_t1 VALUES('c', 'd');
29506 DROP PROCEDURE IF EXISTS h1;
29507 DROP TABLE IF EXISTS res_t1;
29511 CREATE PROCEDURE h1()
29513 DECLARE CONTINUE HANDLER FOR SQLWARNING SET @done = 1;
29516 INSERT INTO res_t1 VALUES('xxx', 'yy');
29521 # table doesn't exist
29522 --error ER_NO_SUCH_TABLE
29526 CREATE TABLE res_t1(w CHAR, x CHAR);
29527 INSERT INTO res_t1 VALUES('a', 'b');
29528 INSERT INTO res_t1 VALUES('c', 'd');
29536 DROP PROCEDURE IF EXISTS h1;
29537 DROP TABLE IF EXISTS res_t1;
29541 # ==============================================================================
29542 # USE the same .inc to cleanup before and after the test
29543 --source suite/funcs_1/storedproc/cleanup_sp_tb.inc
29545 # ==============================================================================
29546 let $message= . +++ END OF SCRIPT +++;
29547 --source include/show_msg80.inc
29548 # ==============================================================================