mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
ee5eb8bbe1
BitKeeper/etc/ignore: Added mysql-test/suite/funcs_1/r/innodb_views.warnings mysql-test/suite/funcs_1/r/memory_trig_03e.warnings mysql-test/suite/funcs_1/r/memory_views.warnings mysql-test/suite/funcs_1/r/myisam_trig_03e.warnings mysql-test/suite/funcs_1/r/myisam_views.warnings mysql-test/suite/funcs_1/r/ndb_trig_03e.warnings mysql-test/suite/funcs_1/r/ndb_views.warnings mysql-test/suite/partitions/r/diff mysql-test/suite/partitions/r/partition_bit_ndb.warnings mysql-test/suite/partitions/r/partition_special_innodb.warnings mysql-test/suite/partitions/r/partition_special_myisam.warnings storage/archive/archive_reader mysql-test/suite/funcs_1/r/innodb_trig_03e.warnings to the ignore list mysql-test/suite/funcs_2/include/check_charset.inc: inserted newline at the end of file. mysql-test/suite/objects/include/drop_all.inc: inserted newline at the end of file. mysql-test/suite/partitions/include/partition_key_32col.inc: inserted newline at the end of file. mysql-test/suite/rpl/data/rpl_mixed.dat: inserted newline at the end of file. mysql-test/suite/rpl/include/rpl_mixed_check_event.inc: inserted newline at the end of file. mysql-test/suite/rpl/include/rpl_mixed_check_select.inc: inserted newline at the end of file. mysql-test/suite/rpl/include/rpl_mixed_check_user.inc: inserted newline at the end of file. mysql-test/suite/rpl/include/rpl_mixed_check_view.inc: inserted newline at the end of file.
22088 lines
848 KiB
Text
22088 lines
848 KiB
Text
|
||
.
|
||
. IMPORTANT NOTICE:
|
||
. -----------------
|
||
.
|
||
. FIXME: The .result files are still NOT CHECKED for correctness!
|
||
.
|
||
. FIXME: Several tests are affected by known problems around DECIMAL
|
||
. FIXME: and NUMERIC that will be checked again after WL#2984 once
|
||
. FIXME: has been completed. Some of them are marked in the result.
|
||
.
|
||
. Currently (Dec 06, 2005) this .result file is checked OK for Linux
|
||
. with 5.0.17-bk (ChangeSet@1.1975.1.2, 2005-12-05 18:33:48+01:00).
|
||
. Using the available Windows version 5.0.16 there are differences
|
||
. that can be ignored (e.g. WL#2984).
|
||
.
|
||
--------------------------------------------------------------------------------
|
||
FIXME: There are subtests that are switched off due to known bugs:
|
||
------------------------------------------------------------------
|
||
WL#2984: DECIMAL and NUMERIC problems with differences on some machines
|
||
0
|
||
|
||
There are some statements where the ps-protocol is switched off.
|
||
Bug#11589: mysqltest, --ps-protocol, strange output, float/double/real with zerofill
|
||
--------------------------------------------------------------------------------
|
||
|
||
--source suite/funcs_1/storedproc/load_sp_tb.inc
|
||
--------------------------------------------------------------------------------
|
||
SET @@global.max_heap_table_size=4294967295;
|
||
SET @@session.max_heap_table_size=4294967295;
|
||
|
||
--source suite/funcs_1/storedproc/cleanup_sp_tb.inc
|
||
--------------------------------------------------------------------------------
|
||
DROP DATABASE IF EXISTS db_storedproc;
|
||
DROP DATABASE IF EXISTS db_storedproc_1;
|
||
CREATE DATABASE db_storedproc;
|
||
CREATE DATABASE db_storedproc_1;
|
||
USE db_storedproc;
|
||
create table t1(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = ndb;
|
||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t1;
|
||
create table t2(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = ndb;
|
||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t2;
|
||
create table t3(f1 char(20),f2 char(20),f3 integer) engine = ndb;
|
||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/t3.txt' into table t3;
|
||
create table t4(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = ndb;
|
||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t4;
|
||
USE db_storedproc_1;
|
||
create table t6(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = ndb;
|
||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t6;
|
||
USE db_storedproc;
|
||
create table t7 (f1 char(20), f2 char(25), f3 date, f4 int) engine = ndb;
|
||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/t7.txt' into table t7;
|
||
Warnings:
|
||
Warning 1265 Data truncated for column 'f3' at row 1
|
||
Warning 1265 Data truncated for column 'f3' at row 2
|
||
Warning 1265 Data truncated for column 'f3' at row 3
|
||
Warning 1265 Data truncated for column 'f3' at row 4
|
||
Warning 1265 Data truncated for column 'f3' at row 5
|
||
Warning 1265 Data truncated for column 'f3' at row 6
|
||
Warning 1265 Data truncated for column 'f3' at row 7
|
||
Warning 1265 Data truncated for column 'f3' at row 8
|
||
Warning 1265 Data truncated for column 'f3' at row 9
|
||
Warning 1265 Data truncated for column 'f3' at row 10
|
||
create table t8 (f1 char(20), f2 char(25), f3 date, f4 int) engine = ndb;
|
||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/t7.txt' into table t8;
|
||
Warnings:
|
||
Warning 1265 Data truncated for column 'f3' at row 1
|
||
Warning 1265 Data truncated for column 'f3' at row 2
|
||
Warning 1265 Data truncated for column 'f3' at row 3
|
||
Warning 1265 Data truncated for column 'f3' at row 4
|
||
Warning 1265 Data truncated for column 'f3' at row 5
|
||
Warning 1265 Data truncated for column 'f3' at row 6
|
||
Warning 1265 Data truncated for column 'f3' at row 7
|
||
Warning 1265 Data truncated for column 'f3' at row 8
|
||
Warning 1265 Data truncated for column 'f3' at row 9
|
||
Warning 1265 Data truncated for column 'f3' at row 10
|
||
create table t9(f1 int, f2 char(25), f3 int) engine = ndb;
|
||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/t9.txt' into table t9;
|
||
create table t10(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = ndb;
|
||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t10;
|
||
create table t11(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = ndb;
|
||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t11;
|
||
|
||
Section 3.1.1 - Syntax checks for the CREATE PROCEDURE, CREATE
|
||
FUNCTION, ALTER PROCEDURE, ALTER FUNCTION, DROP PROCEDURE, DROP FUNCTION, SHOW
|
||
CREATE PROCEDURE, SHOW CREATE FUNCTION, SHOW CREATE PROCEDURE STATUS, SHOW
|
||
CREATE FUNCTION STATUS, and CALL statements:
|
||
--------------------------------------------------------------------------------
|
||
|
||
Testcase 4.1.1:
|
||
---------------
|
||
Ensure that all clauses that should be supported are supported
|
||
CREATE PROCEDURE
|
||
--------------------------------------------------------------------------------
|
||
USE db_storedproc;
|
||
DROP PROCEDURE IF EXISTS sp1_thisisaveryverylongname234872934_thisisaveryverylongname234872934;
|
||
CREATE PROCEDURE sp1_thisisaveryverylongname234872934_thisisaveryverylongname234872934 (f1 char(20) )
|
||
SELECT * from t1 where f2 = f1;
|
||
CALL sp1_thisisaveryverylongname234872934_thisisaveryverylongname234872934('aaaa');
|
||
f1 f2 f3 f4 f5 f6
|
||
DROP PROCEDURE IF EXISTS sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcde;
|
||
CREATE PROCEDURE sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcde( f1 tinytext ) language sql deterministic sql security definer comment 'this is simple'
|
||
BEGIN
|
||
set @v1 = f1;
|
||
SELECT @v1, @v1;
|
||
END//
|
||
CALL sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcde( 'abc' );
|
||
@v1 @v1
|
||
abc abc
|
||
SHOW PROCEDURE status;
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongname2348 PROCEDURE root@localhost modified created DEFINER
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcd PROCEDURE root@localhost modified created DEFINER this is simple
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( f1 binary ) language sql not deterministic sql security invoker comment 'this is simple'
|
||
BEGIN
|
||
set @v1 = f1;
|
||
SELECT @v1;
|
||
END//
|
||
CALL sp1( 34 );
|
||
@v1
|
||
34
|
||
SHOW PROCEDURE status;
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc sp1 PROCEDURE root@localhost modified created INVOKER this is simple
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongname2348 PROCEDURE root@localhost modified created DEFINER
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcd PROCEDURE root@localhost modified created DEFINER this is simple
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( f1 blob ) language sql not deterministic sql security invoker comment 'this is simple'
|
||
BEGIN
|
||
set @v1 = f1;
|
||
SELECT @v1;
|
||
END//
|
||
CALL sp1( 34 );
|
||
@v1
|
||
34
|
||
SHOW PROCEDURE status;
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc sp1 PROCEDURE root@localhost modified created INVOKER this is simple
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongname2348 PROCEDURE root@localhost modified created DEFINER
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcd PROCEDURE root@localhost modified created DEFINER this is simple
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( f1 int ) language sql not deterministic sql security invoker comment 'this is simple'
|
||
BEGIN
|
||
set @v1 = f1;
|
||
SELECT @v1;
|
||
END//
|
||
CALL sp1( 34 );
|
||
@v1
|
||
34
|
||
SHOW PROCEDURE status;
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc sp1 PROCEDURE root@localhost modified created INVOKER this is simple
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongname2348 PROCEDURE root@localhost modified created DEFINER
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcd PROCEDURE root@localhost modified created DEFINER this is simple
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
FIXME: Following test contains a known problem that will be checked again
|
||
FIXME: after WL#2984 has been completed: SP definition accepted with m>60 in DECIMAL(m,n)
|
||
CREATE PROCEDURE sp1( f1 decimal(256, 30) ) language sql not deterministic sql security invoker comment 'this is simple'
|
||
BEGIN
|
||
set @v1 = f1;
|
||
SELECT @v1;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1//
|
||
CREATE PROCEDURE sp1( f1 decimal(66, 30) ) language sql not deterministic sql security invoker comment 'this is simple'
|
||
BEGIN
|
||
set @v1 = f1;
|
||
SELECT @v1;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1//
|
||
CREATE PROCEDURE sp1( f1 decimal(60, 30) ) language sql not deterministic sql security invoker comment 'this is simple'
|
||
BEGIN
|
||
set @v1 = f1;
|
||
SELECT @v1;
|
||
END//
|
||
CALL sp1( 17976931340000 );
|
||
@v1
|
||
17976931340000
|
||
SHOW PROCEDURE status;
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc sp1 PROCEDURE root@localhost modified created INVOKER this is simple
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongname2348 PROCEDURE root@localhost modified created DEFINER
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcd PROCEDURE root@localhost modified created DEFINER this is simple
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( f1 enum("value1", "value1") ) language sql not deterministic sql security invoker comment 'this is simple'
|
||
BEGIN
|
||
SELECT f1;
|
||
END//
|
||
CALL sp1( "value1" );
|
||
f1
|
||
value1
|
||
SHOW PROCEDURE status;
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc sp1 PROCEDURE root@localhost modified created INVOKER this is simple
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongname2348 PROCEDURE root@localhost modified created DEFINER
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcd PROCEDURE root@localhost modified created DEFINER this is simple
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( f1 set("value1", "value1") ) language sql not deterministic sql security invoker comment 'this is simple'
|
||
BEGIN
|
||
SELECT f1;
|
||
END//
|
||
CALL sp1( "value1, value1" );
|
||
f1
|
||
value1, value1
|
||
SHOW PROCEDURE status;
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc sp1 PROCEDURE root@localhost modified created INVOKER this is simple
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongname2348 PROCEDURE root@localhost modified created DEFINER
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcd PROCEDURE root@localhost modified created DEFINER this is simple
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( f1 enum("value1", "value1") ) language sql not deterministic sql security invoker comment 'this is simple'
|
||
BEGIN
|
||
SELECT f1;
|
||
END//
|
||
CALL sp1( "value1" );
|
||
f1
|
||
value1
|
||
SHOW PROCEDURE status;
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc sp1 PROCEDURE root@localhost modified created INVOKER this is simple
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongname2348 PROCEDURE root@localhost modified created DEFINER
|
||
db_storedproc sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcd PROCEDURE root@localhost modified created DEFINER this is simple
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( f1 text ) language sql SELECT f1;
|
||
CALL sp1( 'abc' );
|
||
f1
|
||
abc
|
||
SHOW PROCEDURE status like 'sp1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc sp1 PROCEDURE root@localhost modified created DEFINER
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( f1 text ) deterministic SELECT f1;
|
||
CALL sp1( 'abc' );
|
||
f1
|
||
abc
|
||
SHOW PROCEDURE status like 'sp1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc sp1 PROCEDURE root@localhost modified created DEFINER
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( f1 text ) not deterministic SELECT f1;
|
||
CALL sp1( 'abc' );
|
||
f1
|
||
abc
|
||
SHOW PROCEDURE status like 'sp1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc sp1 PROCEDURE root@localhost modified created DEFINER
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( f1 text ) sql security definer SELECT f1;
|
||
CALL sp1( 'abc' );
|
||
f1
|
||
abc
|
||
SHOW PROCEDURE status like 'sp1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc sp1 PROCEDURE root@localhost modified created DEFINER
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( f1 text ) sql security invoker SELECT f1;
|
||
CALL sp1( 'abc' );
|
||
f1
|
||
abc
|
||
SHOW PROCEDURE status like 'sp1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc sp1 PROCEDURE root@localhost modified created INVOKER
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( f1 text ) comment 'this is simple' SELECT f1;
|
||
CALL sp1( 'abc' );
|
||
f1
|
||
abc
|
||
SHOW PROCEDURE status like 'sp1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc sp1 PROCEDURE root@localhost modified created DEFINER this is simple
|
||
DROP PROCEDURE sp1_thisisaveryverylongname234872934_thisisaveryverylongname234872934;
|
||
DROP PROCEDURE sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcde;
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.1.2:
|
||
---------------
|
||
Ensure that all clauses that should be supported are supported
|
||
CREATE FUNCTION
|
||
--------------------------------------------------------------------------------
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
CREATE FUNCTION fn1 (s char(20)) returns char(50)
|
||
return concat('hello, ', s, '!');
|
||
SELECT fn1('world');
|
||
fn1('world')
|
||
hello, world!
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
CREATE FUNCTION fn1( f1 mediumtext ) returns mediumtext language sql deterministic sql security definer comment 'this is simple'
|
||
BEGIN
|
||
set @v1 = 'hello';
|
||
set f1 = concat( @v1, f1 );
|
||
return f1;
|
||
END//
|
||
SELECT fn1( ' world');
|
||
fn1( ' world')
|
||
hello world
|
||
SHOW FUNCTION STATUS LIKE 'fn1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc fn1 FUNCTION root@localhost modified created DEFINER this is simple
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
CREATE FUNCTION fn1( f1 smallint ) returns smallint language sql not deterministic sql security invoker comment 'this is simple'
|
||
BEGIN
|
||
set f1 = 1 + f1;
|
||
return f1;
|
||
END//
|
||
SELECT fn1( 126 );
|
||
fn1( 126 )
|
||
127
|
||
SHOW FUNCTION STATUS LIKE 'fn1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc fn1 FUNCTION root@localhost modified created INVOKER this is simple
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
CREATE FUNCTION fn1( f1 decimal(63, 31) ) returns decimal(63, 31) language sql not deterministic sql security invoker comment 'this is simple'
|
||
BEGIN
|
||
set f1 = 1000000 + f1;
|
||
return f1;
|
||
END//
|
||
ERROR 42000: Too big scale 31 specified for column ''. Maximum is 30.
|
||
SELECT fn1( 1.3326e+8 );
|
||
ERROR 42000: FUNCTION db_storedproc.fn1 does not exist
|
||
CREATE FUNCTION fn1( f1 decimal(63, 30) ) returns decimal(63, 30) language sql not deterministic sql security invoker comment 'this is simple'
|
||
BEGIN
|
||
set f1 = 1000000 + f1;
|
||
return f1;
|
||
END//
|
||
SELECT fn1( 1.3326e+8 );
|
||
fn1( 1.3326e+8 )
|
||
134260000.000000000000000000000000000000
|
||
SHOW FUNCTION STATUS LIKE 'fn1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc fn1 FUNCTION root@localhost modified created INVOKER this is simple
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
CREATE FUNCTION fn1( f1 enum("value1", "value1") ) returns decimal(63, 30) language sql not deterministic sql security invoker comment 'this is simple'
|
||
BEGIN
|
||
return f1;
|
||
END//
|
||
SELECT fn1( "value1" );
|
||
fn1( "value1" )
|
||
0.000000000000000000000000000000
|
||
Warnings:
|
||
Warning 1292 Truncated incorrect DECIMAL value: 'value1'
|
||
SHOW FUNCTION STATUS LIKE 'fn1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc fn1 FUNCTION root@localhost modified created INVOKER this is simple
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
CREATE FUNCTION fn1( f1 set("value1", "value1") ) returns decimal(63, 30) language sql not deterministic sql security invoker comment 'this is simple'
|
||
BEGIN
|
||
return f1;
|
||
END//
|
||
SELECT fn1( "value1, value1" );
|
||
fn1( "value1, value1" )
|
||
0.000000000000000000000000000000
|
||
Warnings:
|
||
Warning 1292 Truncated incorrect DECIMAL value: 'value1, value1'
|
||
SHOW FUNCTION STATUS LIKE 'fn1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc fn1 FUNCTION root@localhost modified created INVOKER this is simple
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
CREATE FUNCTION fn1( f1 smallint ) returns smallint language sql
|
||
BEGIN
|
||
set f1 = 1 + f1;
|
||
return f1;
|
||
END//
|
||
SELECT fn1( 126 );
|
||
fn1( 126 )
|
||
127
|
||
SHOW FUNCTION STATUS LIKE 'fn1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc fn1 FUNCTION root@localhost modified created DEFINER
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
CREATE FUNCTION fn1( f1 smallint ) returns smallint deterministic
|
||
BEGIN
|
||
set f1 = 1 + f1;
|
||
return f1;
|
||
END//
|
||
SELECT fn1( 126 );
|
||
fn1( 126 )
|
||
127
|
||
SHOW FUNCTION STATUS LIKE 'fn1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc fn1 FUNCTION root@localhost modified created DEFINER
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
CREATE FUNCTION fn1( f1 smallint ) returns smallint not deterministic
|
||
BEGIN
|
||
set f1 = 1 + f1;
|
||
return f1;
|
||
END//
|
||
SELECT fn1( 126 );
|
||
fn1( 126 )
|
||
127
|
||
SHOW FUNCTION STATUS LIKE 'fn1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc fn1 FUNCTION root@localhost modified created DEFINER
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
CREATE FUNCTION fn1( f1 smallint ) returns smallint
|
||
sql security definer
|
||
BEGIN
|
||
set f1 = 1 + f1;
|
||
return f1;
|
||
END//
|
||
SELECT fn1( 126 );
|
||
fn1( 126 )
|
||
127
|
||
SHOW FUNCTION STATUS LIKE 'fn1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc fn1 FUNCTION root@localhost modified created DEFINER
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
CREATE FUNCTION fn1( f1 smallint ) returns smallint
|
||
sql security invoker
|
||
BEGIN
|
||
set f1 = 1 + f1;
|
||
return f1;
|
||
END//
|
||
SELECT fn1( 126 );
|
||
fn1( 126 )
|
||
127
|
||
SHOW FUNCTION STATUS LIKE 'fn1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc fn1 FUNCTION root@localhost modified created INVOKER
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
CREATE FUNCTION fn1( f1 smallint ) returns smallint
|
||
comment 'this is simple'
|
||
BEGIN
|
||
set f1 = 1 + f1;
|
||
return f1;
|
||
END//
|
||
SELECT fn1( 126 );
|
||
fn1( 126 )
|
||
127
|
||
SHOW FUNCTION STATUS LIKE 'fn1';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc fn1 FUNCTION root@localhost modified created DEFINER this is simple
|
||
DROP FUNCTION fn1;
|
||
|
||
Testcase 4.1.3:
|
||
---------------
|
||
Ensure that all clauses that should be supported are supported
|
||
SHOW CREATE PROC
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1 (f1 char(20) )
|
||
SELECT * from t1 where f2 = f1;
|
||
show CREATE PROCEDURE sp1;
|
||
Procedure sql_mode Create Procedure
|
||
sp1 CREATE PROCEDURE `sp1`(f1 char(20) )
|
||
SELECT * from t1 where f2 = f1
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.1.4:
|
||
---------------
|
||
show create function
|
||
--------------------------------------------------------------------------------
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
CREATE FUNCTION fn1 (s char(20)) returns char(50)
|
||
return concat('hello, ', s, '!');
|
||
show CREATE FUNCTION fn1;
|
||
Function sql_mode Create Function
|
||
fn1 CREATE FUNCTION `fn1`(s char(20)) RETURNS char(50)
|
||
return concat('hello, ', s, '!')
|
||
DROP FUNCTION fn1;
|
||
|
||
Testcase 4.1.5:
|
||
---------------
|
||
SHOW PROCEDURE status
|
||
--------------------------------------------------------------------------------
|
||
CREATE PROCEDURE sp5()
|
||
SELECT * from t1;
|
||
SHOW PROCEDURE status like 'sp5';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc sp5 PROCEDURE root@localhost modified created DEFINER
|
||
DROP PROCEDURE sp5;
|
||
|
||
Testcase 4.1.6:
|
||
---------------
|
||
show function status
|
||
--------------------------------------------------------------------------------
|
||
CREATE FUNCTION fn5(a int) returns int
|
||
BEGIN
|
||
set @b = 0.9 * a;
|
||
return @b;
|
||
END//
|
||
SHOW FUNCTION STATUS LIKE 'fn5';
|
||
Db Name Type Definer Modified Created Security_type Comment
|
||
db_storedproc fn5 FUNCTION root@localhost modified created DEFINER
|
||
DROP FUNCTION fn5;
|
||
|
||
Testcase 4.1.7:
|
||
---------------
|
||
CALL procedure
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp7a;
|
||
DROP PROCEDURE IF EXISTS sp7b;
|
||
DROP PROCEDURE IF EXISTS sp7c;
|
||
CREATE PROCEDURE sp7a(a char(20))
|
||
SELECT * from t1 where t1.f2 = a;
|
||
CALL sp7a( 'xyz' );
|
||
f1 f2 f3 f4 f5 f6
|
||
CREATE PROCEDURE sp7b (a char (20), out b char(20))
|
||
SELECT f1 into b from t1 where t1.f2= a;
|
||
CALL sp7b('xyz', @out_param);
|
||
Warnings:
|
||
Warning 1329 No data to FETCH
|
||
SELECT @out_param;
|
||
@out_param
|
||
NULL
|
||
CREATE PROCEDURE sp7c (a char (20), out b char(20), inout c int)
|
||
BEGIN
|
||
SELECT f1 into b from t1 where t1.f2=a;
|
||
update t1 set t1.f2=999 where t1.f4=c;
|
||
SELECT f2 into c from t1 where t1.f2=999;
|
||
END//
|
||
set @c=1;
|
||
CALL sp7c('xyz', @out_param, @c);
|
||
Warnings:
|
||
Warning 1329 No data to FETCH
|
||
Warning 1329 No data to FETCH
|
||
SELECT @out_param;
|
||
@out_param
|
||
NULL
|
||
SELECT @c;
|
||
@c
|
||
1
|
||
DROP PROCEDURE sp7a;
|
||
DROP PROCEDURE sp7b;
|
||
DROP PROCEDURE sp7c;
|
||
|
||
Testcase 4.1.8:
|
||
---------------
|
||
calling function
|
||
--------------------------------------------------------------------------------
|
||
CREATE FUNCTION fn8(a char(20)) returns char(50)
|
||
return concat('hello, ', a, '!');
|
||
SELECT fn8('world');
|
||
fn8('world')
|
||
hello, world!
|
||
DROP FUNCTION fn8;
|
||
|
||
Testcase 4.1.9:
|
||
---------------
|
||
drop procedure
|
||
--------------------------------------------------------------------------------
|
||
SELECT * from mysql.proc where specific_name='sp9';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
DROP PROCEDURE IF EXISTS sp9;
|
||
SELECT * from mysql.proc where specific_name='sp9';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
CREATE PROCEDURE sp9()SELECT * from t1;
|
||
SELECT * from mysql.proc where specific_name='sp9';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
db_storedproc sp9 PROCEDURE sp9 SQL CONTAINS_SQL NO DEFINER SELECT * from t1 root@localhost created modified
|
||
DROP PROCEDURE sp9;
|
||
SELECT * from mysql.proc where specific_name='sp9';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
CREATE PROCEDURE sp9()SELECT * from t1;
|
||
SELECT * from mysql.proc where specific_name='sp9';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
db_storedproc sp9 PROCEDURE sp9 SQL CONTAINS_SQL NO DEFINER SELECT * from t1 root@localhost created modified
|
||
DROP PROCEDURE IF EXISTS sp9;
|
||
SELECT * from mysql.proc where specific_name='sp9';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
|
||
Testcase 4.1.10:
|
||
----------------
|
||
DROP FUNCTION
|
||
--------------------------------------------------------------------------------
|
||
SELECT * from mysql.proc where specific_name='fn10' and type='function';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
DROP FUNCTION IF EXISTS fn10;
|
||
SELECT * from mysql.proc where specific_name='fn10' and type='function';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
CREATE FUNCTION fn10() returns int return 100;
|
||
SELECT * from mysql.proc where specific_name='fn10' and type='function';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
db_storedproc fn10 FUNCTION fn10 SQL CONTAINS_SQL NO DEFINER int(11) return 100 root@localhost created modified
|
||
DROP FUNCTION fn10;
|
||
SELECT * from mysql.proc where specific_name='fn10' and type='function';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
CREATE FUNCTION fn10() returns int return 100;
|
||
SELECT * from mysql.proc where specific_name='fn10' and type='function';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
db_storedproc fn10 FUNCTION fn10 SQL CONTAINS_SQL NO DEFINER int(11) return 100 root@localhost created modified
|
||
DROP FUNCTION IF EXISTS fn10;
|
||
SELECT * from mysql.proc where specific_name='fn10' and type='function';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
|
||
Testcase 4.1.11:
|
||
----------------
|
||
alter proc
|
||
--------------------------------------------------------------------------------
|
||
create user 'user_1'@'localhost';
|
||
grant execute on db_storedproc.* to 'user_1'@'localhost';
|
||
flush privileges;
|
||
drop table IF EXISTS mysql.t1;
|
||
Warnings:
|
||
Note 1051 Unknown table 't1'
|
||
create table mysql.t1( f1 char );
|
||
DROP PROCEDURE IF EXISTS sp11;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp11 does not exist
|
||
CREATE PROCEDURE sp11() insert into mysql.t1 values('a');
|
||
SELECT security_type from mysql.proc where specific_name='sp11';
|
||
security_type
|
||
DEFINER
|
||
connect(localhost,user_1,,db_storedproc,MYSQL_PORT,MYSQL_SOCK);
|
||
|
||
user_1@localhost db_storedproc
|
||
CALL sp11();
|
||
|
||
root@localhost db_storedproc
|
||
alter procedure sp11 sql security invoker;
|
||
SELECT security_type from mysql.proc where specific_name='sp11';
|
||
security_type
|
||
INVOKER
|
||
|
||
user_1@localhost db_storedproc
|
||
CALL sp11();
|
||
ERROR 42000: INSERT command denied to user 'user_1'@'localhost' for table 't1'
|
||
commit work;
|
||
|
||
root@localhost db_storedproc
|
||
alter procedure sp11 sql security definer;
|
||
SELECT security_type from mysql.proc where specific_name='sp11';
|
||
security_type
|
||
DEFINER
|
||
CALL sp11();
|
||
DROP USER 'user_1'@'localhost';
|
||
DROP PROCEDURE sp11;
|
||
drop table mysql.t1;
|
||
|
||
Testcase 4.1.12:
|
||
----------------
|
||
alter function
|
||
--------------------------------------------------------------------------------
|
||
CREATE FUNCTION fn12() returns int
|
||
return 100;
|
||
SELECT security_type from mysql.proc where specific_name='fn12';
|
||
security_type
|
||
DEFINER
|
||
SELECT fn12();
|
||
fn12()
|
||
100
|
||
alter function fn12 sql security invoker;
|
||
SELECT security_type from mysql.proc where specific_name='fn12';
|
||
security_type
|
||
INVOKER
|
||
SELECT fn12();
|
||
fn12()
|
||
100
|
||
alter function fn12 sql security definer;
|
||
SELECT security_type from mysql.proc where specific_name='fn12';
|
||
security_type
|
||
DEFINER
|
||
SELECT fn12();
|
||
fn12()
|
||
100
|
||
DROP FUNCTION fn12;
|
||
|
||
Testcase 4.1.13:
|
||
----------------
|
||
alter proc
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp11;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp11 does not exist
|
||
CREATE PROCEDURE sp11()
|
||
SELECT * from t1;
|
||
SELECT comment from mysql.proc where specific_name='sp11';
|
||
comment
|
||
|
||
alter procedure sp11 comment 'this is simple';
|
||
SELECT comment from mysql.proc where specific_name='sp11';
|
||
comment
|
||
this is simple
|
||
DROP PROCEDURE sp11;
|
||
|
||
Testcase 4.1.14:
|
||
----------------
|
||
alter function
|
||
--------------------------------------------------------------------------------
|
||
DROP FUNCTION IF EXISTS fn12;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn12 does not exist
|
||
CREATE FUNCTION fn12() returns int
|
||
return 100;
|
||
SELECT comment from mysql.proc where specific_name='fn12';
|
||
comment
|
||
|
||
alter function fn12 comment 'this is simple';
|
||
SELECT comment from mysql.proc where specific_name='fn12';
|
||
comment
|
||
this is simple
|
||
DROP FUNCTION fn12;
|
||
|
||
Testcase 4.1.15:
|
||
----------------
|
||
Ensure that any invalid stored procedure name is never accepted, and that an
|
||
appropriate error message is returned when the name is rejected
|
||
--------------------------------------------------------------------------------
|
||
CREATE PROCEDURE sp1()
|
||
DROP PROCEDURE sp1;
|
||
ERROR HY000: Can't drop or alter a PROCEDURE from within another stored routine
|
||
CREATE PROCEDURE !_sp1( f1 char(20) )
|
||
SELECT * from t1 where f2 = f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!_sp1( f1 char(20) )
|
||
SELECT * from t1 where f2 = f1' at line 1
|
||
CREATE PROCEDURE function()
|
||
SELECT * from t1 where f2=f1;
|
||
DROP PROCEDURE function;
|
||
CREATE PROCEDURE add()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'add()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE all()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'all()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE alter()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'alter()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE analyze()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'analyze()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE and()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE as()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE asc()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'asc()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE asensitive()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'asensitive()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE before()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'before()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE between()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'between()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE bigint()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE binary()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'binary()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE blob()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blob()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE both()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'both()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE by()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'by()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE CALL()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CALL()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE cascade()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cascade()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE case()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'case()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE change()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'change()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE char()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE character()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'character()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE check()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'check()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE collate()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'collate()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE column()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'column()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE columns()
|
||
SELECT * from t1 where f2=f1;
|
||
DROP PROCEDURE columns;
|
||
CREATE PROCEDURE condition()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE connection()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'connection()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE constraint()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'constraint()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE continue()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'continue()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE convert()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'convert()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE create()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'create()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE cross()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cross()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE current_date()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_date()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE current_time()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_time()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE current_timestamp()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_timestamp()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE current_user()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_user()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE cursor()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cursor()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE database()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'database()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE databases()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'databases()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE day_hour()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_hour()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE day_microsecond()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_microsecond()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE day_minute()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_minute()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE day_second()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_second()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE dec()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dec()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE decimal()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE declare()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'declare()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE default()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'default()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE delayed()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delayed()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE delete()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delete()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE desc()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE describe()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'describe()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE deterministic()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'deterministic()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE distinct()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'distinct()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE distinctrow()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'distinctrow()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE div()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'div()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE double()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'double()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE drop()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'drop()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE dual()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dual()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE each()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'each()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE else()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'else()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE elseif()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'elseif()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE enclosed()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'enclosed()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE escaped()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'escaped()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE exists()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'exists()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE exit()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'exit()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE explain()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'explain()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE false()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'false()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE fetch()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'fetch()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE fields()
|
||
SELECT * from t1 where f2=f1;
|
||
DROP PROCEDURE fields;
|
||
CREATE PROCEDURE float()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE for()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'for()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE force()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'force()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE foreign()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'foreign()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE found()
|
||
SELECT * from t1 where f2=f1;
|
||
DROP PROCEDURE found;
|
||
CREATE PROCEDURE from()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE fulltext()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'fulltext()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE goto()
|
||
SELECT * from t1 where f2=f1;
|
||
DROP PROCEDURE goto;
|
||
CREATE PROCEDURE grant()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'grant()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE group()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE having()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'having()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE high_priority()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'high_priority()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE hour_microsecond()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hour_microsecond()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE hour_minute()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hour_minute()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE hour_second()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hour_second()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE if()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'if()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE ignore()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ignore()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE in()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'in()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE index()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE infile()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'infile()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE inner()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'inner()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE inout()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'inout()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE insensitive()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insensitive()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE insert()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insert()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE int()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE integer()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'integer()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE interval()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'interval()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE into()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'into()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE is()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'is()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE iterate()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'iterate()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE join()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'join()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE key()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE keys()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'keys()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE kill()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'kill()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE leading()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'leading()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE leave()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'leave()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE left()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'left()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE like()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'like()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE limit()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE lines()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lines()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE load()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'load()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE localtime()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'localtime()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE localtimestamp()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'localtimestamp()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE lock()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lock()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE long()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'long()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE longblob()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longblob()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE longtext()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longtext()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE loop()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'loop()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE low_priority()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'low_priority()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE match()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'match()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE mediumblob()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumblob()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE mediumint()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE mediumtext()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumtext()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE middleint()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'middleint()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE minute_microsecond()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'minute_microsecond()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE minute_second()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'minute_second()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE mod()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mod()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE modifies()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'modifies()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE natural()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'natural()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE not()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'not()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE no_write_to_binlog()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'no_write_to_binlog()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE null()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'null()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE numeric()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE on()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'on()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE optimize()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'optimize()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE option()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE optionally()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'optionally()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE or()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'or()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE order()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE out()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'out()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE outer()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'outer()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE outfile()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'outfile()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE precision()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'precision()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE primary()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'primary()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE privileges()
|
||
SELECT * from t1 where f2=f1;
|
||
DROP PROCEDURE privileges;
|
||
CREATE PROCEDURE procedure()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'procedure()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE purge()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'purge()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE read()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'read()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE reads()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'reads()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE real()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE references()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'references()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE regexp()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'regexp()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE rename()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rename()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE repeat()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'repeat()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE replace()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'replace()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE require()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'require()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE restrict()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'restrict()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE return()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'return()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE revoke()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'revoke()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE right()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'right()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE rlike()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rlike()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE schema()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'schema()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE schemas()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'schemas()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE second_microsecond()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'second_microsecond()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE select()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'select()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE sensitive()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sensitive()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE separator()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'separator()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE set()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'set()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE show()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE smallint()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE soname()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'soname()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE spatial()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'spatial()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE specific()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'specific()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE sql()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE sqlexception()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sqlexception()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE sqlstate()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sqlstate()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE sqlwarning()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sqlwarning()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE sql_big_result()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql_big_result()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE sql_calc_found_rows()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql_calc_found_rows()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE sql_small_result()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql_small_result()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE ssl()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ssl()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE starting()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'starting()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE straight_join()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'straight_join()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE table()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE tables()
|
||
SELECT * from t1 where f2=f1;
|
||
DROP PROCEDURE tables;
|
||
CREATE PROCEDURE terminated()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'terminated()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE then()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'then()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE tinyblob()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyblob()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE tinyint()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE tinytext()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinytext()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE to()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'to()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE trailing()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'trailing()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE trigger()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'trigger()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE true()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'true()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE undo()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'undo()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE union()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'union()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE unique()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unique()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE unlock()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unlock()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE unsigned()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unsigned()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE update()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'update()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE usage()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'usage()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE use()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'use()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE using()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'using()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE utc_date()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'utc_date()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE utc_time()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'utc_time()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE utc_timestamp()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'utc_timestamp()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE values()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'values()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE varbinary()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varbinary()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE varchar()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varchar()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE varcharacter()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varcharacter()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE varying()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varying()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE when()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'when()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE where()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE while()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'while()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE with()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'with()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE write()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'write()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE xor()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'xor()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE year_month()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'year_month()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
CREATE PROCEDURE zerofill()
|
||
SELECT * from t1 where f2=f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'zerofill()
|
||
SELECT * from t1 where f2=f1' at line 1
|
||
|
||
Testcase 4.1.15:
|
||
----------------
|
||
Ensure that any invalid function name is never accepted, and that an appropriate
|
||
error message is returned when the name is rejected
|
||
--------------------------------------------------------------------------------
|
||
CREATE FUNCTION !_fn1(f1 char) returns char
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!_fn1(f1 char) returns char
|
||
return f1' at line 1
|
||
CREATE FUNCTION char(f1 char) returns char
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char(f1 char) returns char
|
||
return f1' at line 1
|
||
CREATE FUNCTION char binary(f1 char binary) returns char binary
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char binary(f1 char binary) returns char binary
|
||
return f1' at line 1
|
||
CREATE FUNCTION char ascii(f1 char ascii) returns char ascii
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char ascii(f1 char ascii) returns char ascii
|
||
return f1' at line 1
|
||
CREATE FUNCTION char not null(f1 char not null) returns char not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char not null(f1 char not null) returns char not null
|
||
return f1' at line 1
|
||
CREATE FUNCTION char binary not null(f1 char binary not null) returns char binary not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char binary not null(f1 char binary not null) returns char binary not null
|
||
retur' at line 1
|
||
CREATE FUNCTION char ascii not null(f1 char ascii not null) returns char ascii not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char ascii not null(f1 char ascii not null) returns char ascii not null
|
||
return f' at line 1
|
||
CREATE FUNCTION tinytext(f1 tinytext) returns tinytext
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinytext(f1 tinytext) returns tinytext
|
||
return f1' at line 1
|
||
CREATE FUNCTION text(f1 text) returns text
|
||
return f1;
|
||
DROP FUNCTION text;
|
||
CREATE FUNCTION mediumtext(f1 mediumtext) returns mediumtext
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumtext(f1 mediumtext) returns mediumtext
|
||
return f1' at line 1
|
||
CREATE FUNCTION longtext(f1 longtext) returns longtext
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longtext(f1 longtext) returns longtext
|
||
return f1' at line 1
|
||
CREATE FUNCTION tinytext not null(f1 tinytext not null) returns tinytext not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinytext not null(f1 tinytext not null) returns tinytext not null
|
||
return f1' at line 1
|
||
CREATE FUNCTION text not null(f1 text not null) returns text not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'not null(f1 text not null) returns text not null
|
||
return f1' at line 1
|
||
CREATE FUNCTION mediumtext not null(f1 mediumtext not null) returns mediumtext not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumtext not null(f1 mediumtext not null) returns mediumtext not null
|
||
return f' at line 1
|
||
CREATE FUNCTION longtext not null(f1 longtext not null) returns longtext not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longtext not null(f1 longtext not null) returns longtext not null
|
||
return f1' at line 1
|
||
CREATE FUNCTION tinyblob(f1 tinyblob) returns tinyblob
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyblob(f1 tinyblob) returns tinyblob
|
||
return f1' at line 1
|
||
CREATE FUNCTION blob(f1 blob) returns blob
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blob(f1 blob) returns blob
|
||
return f1' at line 1
|
||
CREATE FUNCTION mediumblob(f1 mediumblob) returns mediumblob
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumblob(f1 mediumblob) returns mediumblob
|
||
return f1' at line 1
|
||
CREATE FUNCTION longblob(f1 longblob) returns longblob
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longblob(f1 longblob) returns longblob
|
||
return f1' at line 1
|
||
CREATE FUNCTION tinyblob not null(f1 tinyblob not null) returns tinyblob not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyblob not null(f1 tinyblob not null) returns tinyblob not null
|
||
return f1' at line 1
|
||
CREATE FUNCTION blob not null(f1 blob not null) returns blob not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blob not null(f1 blob not null) returns blob not null
|
||
return f1' at line 1
|
||
CREATE FUNCTION mediumblob not null(f1 mediumblob not null) returns mediumblob not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumblob not null(f1 mediumblob not null) returns mediumblob not null
|
||
return f' at line 1
|
||
CREATE FUNCTION longblob not null(f1 longblob not null) returns longblob not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longblob not null(f1 longblob not null) returns longblob not null
|
||
return f1' at line 1
|
||
CREATE FUNCTION binary(f1 binary) returns binary
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'binary(f1 binary) returns binary
|
||
return f1' at line 1
|
||
CREATE FUNCTION binary not null(f1 binary not null) returns binary not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'binary not null(f1 binary not null) returns binary not null
|
||
return f1' at line 1
|
||
CREATE FUNCTION tinyint(f1 tinyint) returns tinyint
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint(f1 tinyint) returns tinyint
|
||
return f1' at line 1
|
||
CREATE FUNCTION tinyint unsigned(f1 tinyint unsigned) returns tinyint unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint unsigned(f1 tinyint unsigned) returns tinyint unsigned
|
||
return f1' at line 1
|
||
CREATE FUNCTION tinyint zerofill(f1 tinyint zerofill) returns tinyint zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint zerofill(f1 tinyint zerofill) returns tinyint zerofill
|
||
return f1' at line 1
|
||
CREATE FUNCTION tinyint unsigned zerofill(f1 tinyint unsigned zerofill) returns tinyint unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint unsigned zerofill(f1 tinyint unsigned zerofill) returns tinyint unsigned' at line 1
|
||
CREATE FUNCTION smallint(f1 smallint) returns smallint
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint(f1 smallint) returns smallint
|
||
return f1' at line 1
|
||
CREATE FUNCTION smallint unsigned(f1 smallint unsigned) returns smallint unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint unsigned(f1 smallint unsigned) returns smallint unsigned
|
||
return f1' at line 1
|
||
CREATE FUNCTION smallint zerofill(f1 smallint zerofill) returns smallint zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint zerofill(f1 smallint zerofill) returns smallint zerofill
|
||
return f1' at line 1
|
||
CREATE FUNCTION smallint unsigned zerofill(f1 smallint unsigned zerofill) returns smallint unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint unsigned zerofill(f1 smallint unsigned zerofill) returns smallint unsig' at line 1
|
||
CREATE FUNCTION mediumint(f1 mediumint) returns mediumint
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint(f1 mediumint) returns mediumint
|
||
return f1' at line 1
|
||
CREATE FUNCTION mediumint unsigned(f1 mediumint unsigned) returns mediumint unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint unsigned(f1 mediumint unsigned) returns mediumint unsigned
|
||
return f1' at line 1
|
||
CREATE FUNCTION mediumint zerofill(f1 mediumint zerofill) returns mediumint zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint zerofill(f1 mediumint zerofill) returns mediumint zerofill
|
||
return f1' at line 1
|
||
CREATE FUNCTION mediumint unsigned zerofill(f1 mediumint unsigned zerofill) returns mediumint unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint unsigned zerofill(f1 mediumint unsigned zerofill) returns mediumint un' at line 1
|
||
CREATE FUNCTION int(f1 int) returns int
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int(f1 int) returns int
|
||
return f1' at line 1
|
||
CREATE FUNCTION int unsigned(f1 int unsigned) returns int unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int unsigned(f1 int unsigned) returns int unsigned
|
||
return f1' at line 1
|
||
CREATE FUNCTION int zerofill(f1 int zerofill) returns int zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int zerofill(f1 int zerofill) returns int zerofill
|
||
return f1' at line 1
|
||
CREATE FUNCTION int unsigned zerofill(f1 int unsigned zerofill) returns int unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int unsigned zerofill(f1 int unsigned zerofill) returns int unsigned zerofill
|
||
re' at line 1
|
||
CREATE FUNCTION bigint(f1 bigint) returns bigint
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint(f1 bigint) returns bigint
|
||
return f1' at line 1
|
||
CREATE FUNCTION bigint unsigned(f1 bigint unsigned) returns bigint unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint unsigned(f1 bigint unsigned) returns bigint unsigned
|
||
return f1' at line 1
|
||
CREATE FUNCTION bigint zerofill(f1 bigint zerofill) returns bigint zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint zerofill(f1 bigint zerofill) returns bigint zerofill
|
||
return f1' at line 1
|
||
CREATE FUNCTION bigint unsigned zerofill(f1 bigint unsigned zerofill) returns bigint unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint unsigned zerofill(f1 bigint unsigned zerofill) returns bigint unsigned ze' at line 1
|
||
CREATE FUNCTION decimal(f1 decimal) returns decimal
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal(f1 decimal) returns decimal
|
||
return f1' at line 1
|
||
CREATE FUNCTION decimal unsigned(f1 decimal unsigned) returns decimal unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal unsigned(f1 decimal unsigned) returns decimal unsigned
|
||
return f1' at line 1
|
||
CREATE FUNCTION decimal zerofill(f1 decimal zerofill) returns decimal zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal zerofill(f1 decimal zerofill) returns decimal zerofill
|
||
return f1' at line 1
|
||
CREATE FUNCTION decimal unsigned zerofill(f1 decimal unsigned zerofill) returns decimal unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal unsigned zerofill(f1 decimal unsigned zerofill) returns decimal unsigned' at line 1
|
||
CREATE FUNCTION numeric(f1 numeric) returns numeric
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric(f1 numeric) returns numeric
|
||
return f1' at line 1
|
||
CREATE FUNCTION numeric unsigned(f1 numeric unsigned) returns numeric unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric unsigned(f1 numeric unsigned) returns numeric unsigned
|
||
return f1' at line 1
|
||
CREATE FUNCTION numeric zerofill(f1 numeric zerofill) returns numeric zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric zerofill(f1 numeric zerofill) returns numeric zerofill
|
||
return f1' at line 1
|
||
CREATE FUNCTION numeric unsigned zerofill(f1 numeric unsigned zerofill) returns numeric unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric unsigned zerofill(f1 numeric unsigned zerofill) returns numeric unsigned' at line 1
|
||
CREATE FUNCTION real(f1 real) returns real
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real(f1 real) returns real
|
||
return f1' at line 1
|
||
CREATE FUNCTION real unsigned(f1 real unsigned) returns real unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real unsigned(f1 real unsigned) returns real unsigned
|
||
return f1' at line 1
|
||
CREATE FUNCTION real zerofill(f1 real zerofill) returns real zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real zerofill(f1 real zerofill) returns real zerofill
|
||
return f1' at line 1
|
||
CREATE FUNCTION real unsigned zerofill(f1 real unsigned zerofill) returns real unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real unsigned zerofill(f1 real unsigned zerofill) returns real unsigned zerofill' at line 1
|
||
CREATE FUNCTION float(f1 float) returns float
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(f1 float) returns float
|
||
return f1' at line 1
|
||
CREATE FUNCTION float unsigned(f1 float unsigned) returns float unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float unsigned(f1 float unsigned) returns float unsigned
|
||
return f1' at line 1
|
||
CREATE FUNCTION float zerofill(f1 float zerofill) returns float zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float zerofill(f1 float zerofill) returns float zerofill
|
||
return f1' at line 1
|
||
CREATE FUNCTION float unsigned zerofill(f1 float unsigned zerofill) returns float unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float unsigned zerofill(f1 float unsigned zerofill) returns float unsigned zerof' at line 1
|
||
CREATE FUNCTION date(f1 date) returns date
|
||
return f1;
|
||
DROP FUNCTION date;
|
||
CREATE FUNCTION time(f1 time) returns time
|
||
return f1;
|
||
DROP FUNCTION time;
|
||
CREATE FUNCTION datetime(f1 datetime) returns datetime
|
||
return f1;
|
||
DROP FUNCTION datetime;
|
||
CREATE FUNCTION timestamp(f1 timestamp) returns timestamp
|
||
return f1;
|
||
DROP FUNCTION timestamp;
|
||
CREATE FUNCTION year(f1 year) returns year
|
||
return f1;
|
||
DROP FUNCTION year;
|
||
CREATE FUNCTION year(3)(f1 year(3)) returns year(3)
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '3)(f1 year(3)) returns year(3)
|
||
return f1' at line 1
|
||
CREATE FUNCTION year(4)(f1 year(4)) returns year(4)
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '4)(f1 year(4)) returns year(4)
|
||
return f1' at line 1
|
||
CREATE FUNCTION enum("1enum", "2enum")(f1 enum("1enum", "2enum")) returns enum("1enum", "2enum")
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"1enum", "2enum")(f1 enum("1enum", "2enum")) returns enum("1enum", "2enum")
|
||
retu' at line 1
|
||
CREATE FUNCTION set("1set", "2set")(f1 set("1set", "2set")) returns set("1set", "2set")
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'set("1set", "2set")(f1 set("1set", "2set")) returns set("1set", "2set")
|
||
return f' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(char f1 ) returns char
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char f1 ) returns char
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(char binary f1 ) returns char binary
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char binary f1 ) returns char binary
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(char ascii f1 ) returns char ascii
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char ascii f1 ) returns char ascii
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(char not null f1 ) returns char not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char not null f1 ) returns char not null
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(char binary not null f1 ) returns char binary not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char binary not null f1 ) returns char binary not null
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(char ascii not null f1 ) returns char ascii not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char ascii not null f1 ) returns char ascii not null
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(tinytext f1 ) returns tinytext
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinytext f1 ) returns tinytext
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(text f1 ) returns text
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'f1 ) returns text
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(mediumtext f1 ) returns mediumtext
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumtext f1 ) returns mediumtext
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(longtext f1 ) returns longtext
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longtext f1 ) returns longtext
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(tinytext not null f1 ) returns tinytext not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinytext not null f1 ) returns tinytext not null
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(text not null f1 ) returns text not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'not null f1 ) returns text not null
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(mediumtext not null f1 ) returns mediumtext not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumtext not null f1 ) returns mediumtext not null
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(longtext not null f1 ) returns longtext not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longtext not null f1 ) returns longtext not null
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(tinyblob f1 ) returns tinyblob
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyblob f1 ) returns tinyblob
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(blob f1 ) returns blob
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blob f1 ) returns blob
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(mediumblob f1 ) returns mediumblob
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumblob f1 ) returns mediumblob
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(longblob f1 ) returns longblob
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longblob f1 ) returns longblob
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(tinyblob not null f1 ) returns tinyblob not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyblob not null f1 ) returns tinyblob not null
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(blob not null f1 ) returns blob not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blob not null f1 ) returns blob not null
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(mediumblob not null f1 ) returns mediumblob not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumblob not null f1 ) returns mediumblob not null
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(longblob not null f1 ) returns longblob not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longblob not null f1 ) returns longblob not null
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(binary f1 ) returns binary
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'binary f1 ) returns binary
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(binary not null f1 ) returns binary not null
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'binary not null f1 ) returns binary not null
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(tinyint f1 ) returns tinyint
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint f1 ) returns tinyint
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(tinyint unsigned f1 ) returns tinyint unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint unsigned f1 ) returns tinyint unsigned
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(tinyint zerofill f1 ) returns tinyint zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint zerofill f1 ) returns tinyint zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(tinyint unsigned zerofill f1 ) returns tinyint unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint unsigned zerofill f1 ) returns tinyint unsigned zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(smallint f1 ) returns smallint
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint f1 ) returns smallint
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(smallint unsigned f1 ) returns smallint unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint unsigned f1 ) returns smallint unsigned
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(smallint zerofill f1 ) returns smallint zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint zerofill f1 ) returns smallint zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(smallint unsigned zerofill f1 ) returns smallint unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint unsigned zerofill f1 ) returns smallint unsigned zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(mediumint f1 ) returns mediumint
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint f1 ) returns mediumint
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(mediumint unsigned f1 ) returns mediumint unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint unsigned f1 ) returns mediumint unsigned
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(mediumint zerofill f1 ) returns mediumint zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint zerofill f1 ) returns mediumint zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(mediumint unsigned zerofill f1 ) returns mediumint unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint unsigned zerofill f1 ) returns mediumint unsigned zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(int f1 ) returns int
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int f1 ) returns int
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(int unsigned f1 ) returns int unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int unsigned f1 ) returns int unsigned
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(int zerofill f1 ) returns int zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int zerofill f1 ) returns int zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(int unsigned zerofill f1 ) returns int unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int unsigned zerofill f1 ) returns int unsigned zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(bigint f1 ) returns bigint
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint f1 ) returns bigint
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(bigint unsigned f1 ) returns bigint unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint unsigned f1 ) returns bigint unsigned
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(bigint zerofill f1 ) returns bigint zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint zerofill f1 ) returns bigint zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(bigint unsigned zerofill f1 ) returns bigint unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint unsigned zerofill f1 ) returns bigint unsigned zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(decimal f1 ) returns decimal
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal f1 ) returns decimal
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(decimal unsigned f1 ) returns decimal unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal unsigned f1 ) returns decimal unsigned
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(decimal zerofill f1 ) returns decimal zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal zerofill f1 ) returns decimal zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(decimal unsigned zerofill f1 ) returns decimal unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal unsigned zerofill f1 ) returns decimal unsigned zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(numeric f1 ) returns numeric
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric f1 ) returns numeric
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(numeric unsigned f1 ) returns numeric unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric unsigned f1 ) returns numeric unsigned
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(numeric zerofill f1 ) returns numeric zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric zerofill f1 ) returns numeric zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(numeric unsigned zerofill f1 ) returns numeric unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric unsigned zerofill f1 ) returns numeric unsigned zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(real f1 ) returns real
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real f1 ) returns real
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(real unsigned f1 ) returns real unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real unsigned f1 ) returns real unsigned
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(real zerofill f1 ) returns real zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real zerofill f1 ) returns real zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(real unsigned zerofill f1 ) returns real unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real unsigned zerofill f1 ) returns real unsigned zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(float f1 ) returns float
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float f1 ) returns float
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(float unsigned f1 ) returns float unsigned
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float unsigned f1 ) returns float unsigned
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(float zerofill f1 ) returns float zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float zerofill f1 ) returns float zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(float unsigned zerofill f1 ) returns float unsigned zerofill
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float unsigned zerofill f1 ) returns float unsigned zerofill
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(date f1 ) returns date
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'f1 ) returns date
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(time f1 ) returns time
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'f1 ) returns time
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(datetime f1 ) returns datetime
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'f1 ) returns datetime
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(timestamp f1 ) returns timestamp
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'f1 ) returns timestamp
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(year f1 ) returns year
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'f1 ) returns year
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(year(3) f1 ) returns year(3)
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(3) f1 ) returns year(3)
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(year(4) f1 ) returns year(4)
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(4) f1 ) returns year(4)
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(enum("1enum", "2enum") f1 ) returns enum("1enum", "2enum")
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '("1enum", "2enum") f1 ) returns enum("1enum", "2enum")
|
||
return f1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1(set("1set", "2set") f1 ) returns set("1set", "2set")
|
||
return f1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'set("1set", "2set") f1 ) returns set("1set", "2set")
|
||
return f1' at line 1
|
||
|
||
Testcase 4.1.16:
|
||
----------------
|
||
Ensure that a reference to a non-existent stored procedure is rejected with an
|
||
appropriate error message
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp16;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp16 does not exist
|
||
CALL sp16( 'xyz' );
|
||
ERROR 42000: PROCEDURE db_storedproc.sp16 does not exist
|
||
CREATE DATABASE db1;
|
||
USE db1;
|
||
CREATE PROCEDURE sp16()
|
||
BEGIN
|
||
set @var1 = 1;
|
||
SELECT @var1;
|
||
END//
|
||
CALL db_storedproc.sp16();
|
||
ERROR 42000: PROCEDURE db_storedproc.sp16 does not exist
|
||
USE db_storedproc;
|
||
DROP PROCEDURE db1.sp16;
|
||
DROP DATABASE db1;
|
||
|
||
Testcase 4.1.17:
|
||
----------------
|
||
Ensure that it is possible to drop, create and CALL/execute a procedure and a
|
||
function with the same name, even in the same database
|
||
--------------------------------------------------------------------------------
|
||
USE db_storedproc;
|
||
DROP FUNCTION IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 FUNCTION sp1 does not exist
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1 ()
|
||
BEGIN
|
||
declare x enum( 'db1', 'test' ) default 'test';
|
||
SELECT x;
|
||
END//
|
||
CALL sp1();
|
||
x
|
||
test
|
||
CREATE FUNCTION sp1 (y char) returns char return y;
|
||
SELECT sp1( 'a' );
|
||
sp1( 'a' )
|
||
a
|
||
DROP DATABASE IF EXISTS db1;
|
||
Warnings:
|
||
Note 1008 Can't drop database 'db1'; database doesn't exist
|
||
CREATE DATABASE db1;
|
||
USE db1;
|
||
CALL db_storedproc.sp1( );
|
||
x
|
||
test
|
||
SELECT db_storedproc.sp1( 'a' );
|
||
db_storedproc.sp1( 'a' )
|
||
a
|
||
DROP FUNCTION db_storedproc.sp1;
|
||
USE db_storedproc;
|
||
SELECT sp1('a');
|
||
ERROR 42000: FUNCTION db_storedproc.sp1 does not exist
|
||
DROP PROCEDURE sp1;
|
||
CALL sp1();
|
||
ERROR 42000: PROCEDURE db_storedproc.sp1 does not exist
|
||
SELECT sp1('a');
|
||
ERROR 42000: FUNCTION db_storedproc.sp1 does not exist
|
||
USE db_storedproc;
|
||
DROP DATABASE db1;
|
||
|
||
Testcase 4.1.18:
|
||
----------------
|
||
Ensure that it is possible to alter a procedure and
|
||
a function with the same name, in the same database
|
||
--------------------------------------------------------------------------------
|
||
USE db_storedproc;
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
DROP FUNCTION IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 FUNCTION sp1 does not exist
|
||
set @x=null;
|
||
set @y=null;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
set @x= 1;
|
||
SELECT @x;
|
||
END//
|
||
CREATE FUNCTION sp1 () returns int return 2.2;
|
||
CALL db_storedproc.sp1();
|
||
@x
|
||
1
|
||
SELECT db_storedproc.sp1();
|
||
db_storedproc.sp1()
|
||
2
|
||
DROP DATABASE IF EXISTS db1;
|
||
Warnings:
|
||
Note 1008 Can't drop database 'db1'; database doesn't exist
|
||
CREATE DATABASE db1;
|
||
USE db1;
|
||
alter procedure db_storedproc.sp1 sql security invoker;
|
||
SELECT name, type, security_type from mysql.proc where db LIKE 'db_storedproc%' and specific_name='sp1';
|
||
name type security_type
|
||
sp1 FUNCTION DEFINER
|
||
sp1 PROCEDURE INVOKER
|
||
alter function db_storedproc.sp1 sql security invoker;
|
||
SELECT name, type, security_type from mysql.proc where db LIKE 'db_storedproc%' and specific_name='sp1';
|
||
name type security_type
|
||
sp1 FUNCTION INVOKER
|
||
sp1 PROCEDURE INVOKER
|
||
CALL db_storedproc.sp1();
|
||
@x
|
||
1
|
||
SELECT db_storedproc.sp1();
|
||
db_storedproc.sp1()
|
||
2
|
||
USE db_storedproc;
|
||
alter procedure sp1 sql security definer;
|
||
CALL db_storedproc.sp1();
|
||
@x
|
||
1
|
||
SELECT db_storedproc.sp1();
|
||
db_storedproc.sp1()
|
||
2
|
||
alter function sp1 sql security definer;
|
||
SELECT name, type, security_type from mysql.proc where db LIKE 'db_storedproc%' and specific_name='sp1';
|
||
name type security_type
|
||
sp1 FUNCTION DEFINER
|
||
sp1 PROCEDURE DEFINER
|
||
CALL db_storedproc.sp1();
|
||
@x
|
||
1
|
||
SELECT db_storedproc.sp1();
|
||
db_storedproc.sp1()
|
||
2
|
||
USE db_storedproc;
|
||
DROP DATABASE db1;
|
||
DROP PROCEDURE db_storedproc.sp1;
|
||
DROP FUNCTION db_storedproc.sp1;
|
||
|
||
Testcase 4.1.19:
|
||
----------------
|
||
verify altering procedure and function with the same name, does not affect
|
||
properties of a procedure and a function with the same name in the different
|
||
database.
|
||
--------------------------------------------------------------------------------
|
||
DROP DATABASE IF EXISTS db_storedproc_3122;
|
||
CREATE DATABASE db_storedproc_3122;
|
||
USE db_storedproc;
|
||
set @x=null;
|
||
set @y=null;
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
DROP FUNCTION IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 FUNCTION sp1 does not exist
|
||
DROP PROCEDURE IF EXISTS db_storedproc_3122.sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
DROP FUNCTION IF EXISTS db_storedproc_3122.sp1;
|
||
Warnings:
|
||
Note 1305 FUNCTION sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
set @x= 1;
|
||
SELECT @x;
|
||
END//
|
||
CREATE FUNCTION db_storedproc_3122.sp1() returns double return 2.2;
|
||
CALL sp1();
|
||
@x
|
||
1
|
||
SELECT db_storedproc_3122.sp1();
|
||
db_storedproc_3122.sp1()
|
||
2.2
|
||
USE db_storedproc_3122;
|
||
CREATE PROCEDURE sp1 ()
|
||
BEGIN
|
||
set @x= 3;
|
||
SELECT @x;
|
||
END//
|
||
CREATE FUNCTION db_storedproc.sp1() returns double return 4.4;
|
||
CALL sp1();
|
||
@x
|
||
3
|
||
SELECT db_storedproc.sp1();
|
||
db_storedproc.sp1()
|
||
4.4
|
||
alter procedure db_storedproc_3122.sp1 sql security invoker;
|
||
alter function sp1 sql security invoker;
|
||
SELECT db, name, type, security_type from mysql.proc where db LIKE 'db_storedproc%' and specific_name='sp1';
|
||
db name type security_type
|
||
db_storedproc sp1 FUNCTION DEFINER
|
||
db_storedproc sp1 PROCEDURE DEFINER
|
||
db_storedproc_3122 sp1 FUNCTION INVOKER
|
||
db_storedproc_3122 sp1 PROCEDURE INVOKER
|
||
CALL db_storedproc.sp1();
|
||
@x
|
||
1
|
||
SELECT db_storedproc.sp1();
|
||
db_storedproc.sp1()
|
||
4.4
|
||
CALL db_storedproc_3122.sp1();
|
||
@x
|
||
3
|
||
SELECT db_storedproc_3122.sp1();
|
||
db_storedproc_3122.sp1()
|
||
2.2
|
||
USE db_storedproc;
|
||
DROP DATABASE db_storedproc_3122;
|
||
DROP FUNCTION db_storedproc.sp1;
|
||
DROP PROCEDURE db_storedproc.sp1;
|
||
|
||
Testcase 4.1.20:
|
||
----------------
|
||
Ensure that it is possible to alter the comment of a procedure
|
||
and a function with the same name, even in the same database
|
||
--------------------------------------------------------------------------------
|
||
USE db_storedproc;
|
||
set @x=null;
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
DROP FUNCTION IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1 () set @x= 1;
|
||
CREATE FUNCTION sp1 () returns int return 2;
|
||
DROP DATABASE IF EXISTS db_storedproc_3122;
|
||
Warnings:
|
||
Note 1008 Can't drop database 'db_storedproc_3122'; database doesn't exist
|
||
CREATE DATABASE db_storedproc_3122;
|
||
USE db_storedproc_3122;
|
||
CREATE PROCEDURE sp1 () set @x= 3;
|
||
CREATE FUNCTION sp1 () returns int return 4;
|
||
alter procedure sp1 sql security invoker comment 'this is a procedure';
|
||
alter function sp1 sql security invoker comment 'this is a function';
|
||
alter procedure sp1 sql security definer;
|
||
alter function sp1 sql security definer;
|
||
show CREATE PROCEDURE sp1;
|
||
Procedure sql_mode Create Procedure
|
||
sp1 CREATE PROCEDURE `sp1`()
|
||
COMMENT 'this is a procedure'
|
||
set @x= 3
|
||
show CREATE FUNCTION sp1;
|
||
Function sql_mode Create Function
|
||
sp1 CREATE FUNCTION `sp1`() RETURNS int(11)
|
||
COMMENT 'this is a function'
|
||
return 4
|
||
USE db_storedproc;
|
||
DROP DATABASE db_storedproc_3122;
|
||
DROP FUNCTION db_storedproc.sp1;
|
||
DROP PROCEDURE db_storedproc.sp1;
|
||
|
||
Testcase 4.1.21:
|
||
----------------
|
||
Ensure that it is not possible to create two procedures with same name
|
||
in same database
|
||
--------------------------------------------------------------------------------
|
||
USE db_storedproc;
|
||
set @x=null;
|
||
set @y=null;
|
||
DROP DATABASE IF EXISTS db1;
|
||
CREATE DATABASE db1;
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1 () set @x=1;
|
||
CREATE PROCEDURE sp1 () set @x=2;
|
||
ERROR 42000: PROCEDURE sp1 already exists
|
||
CALL sp1();
|
||
SELECT @x;
|
||
@x
|
||
1
|
||
USE db1;
|
||
CREATE PROCEDURE db_storedproc.sp1 () set @x=3;
|
||
ERROR 42000: PROCEDURE sp1 already exists
|
||
CALL db_storedproc.sp1();
|
||
SELECT @x;
|
||
@x
|
||
1
|
||
DROP PROCEDURE IF EXISTS db_storedproc.sp1;
|
||
CREATE PROCEDURE db_storedproc.sp1 () set @x=1;
|
||
CREATE PROCEDURE db_storedproc.sp1 () set @x=2;
|
||
ERROR 42000: PROCEDURE sp1 already exists
|
||
CALL db_storedproc.sp1();
|
||
SELECT @x;
|
||
@x
|
||
1
|
||
USE db_storedproc;
|
||
DROP DATABASE db1;
|
||
DROP PROCEDURE db_storedproc.sp1;
|
||
|
||
Testcase 4.1.22:
|
||
----------------
|
||
Ensure that it is not possible to create two functions with same name in the
|
||
same database
|
||
--------------------------------------------------------------------------------
|
||
USE db_storedproc;
|
||
DROP DATABASE IF EXISTS db1;
|
||
Warnings:
|
||
Note 1008 Can't drop database 'db1'; database doesn't exist
|
||
CREATE DATABASE db1;
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
Warnings:
|
||
Note 1305 FUNCTION fn1 does not exist
|
||
CREATE FUNCTION fn1 () returns int return 1;
|
||
CREATE FUNCTION fn1 () returns int return 2;
|
||
ERROR 42000: FUNCTION fn1 already exists
|
||
SELECT fn1();
|
||
fn1()
|
||
1
|
||
USE db1;
|
||
CREATE FUNCTION db_storedproc.fn1 () returns int return 3;
|
||
ERROR 42000: FUNCTION fn1 already exists
|
||
SELECT db_storedproc.fn1();
|
||
db_storedproc.fn1()
|
||
1
|
||
DROP FUNCTION IF EXISTS db_storedproc.fn1;
|
||
CREATE FUNCTION db_storedproc.fn1 () returns int return 1;
|
||
CREATE FUNCTION db_storedproc.fn1 () returns int return 2;
|
||
ERROR 42000: FUNCTION fn1 already exists
|
||
SELECT db_storedproc.fn1();
|
||
db_storedproc.fn1()
|
||
1
|
||
USE db_storedproc;
|
||
DROP DATABASE db1;
|
||
DROP FUNCTION db_storedproc.fn1;
|
||
|
||
Testcase 4.1.23:
|
||
----------------
|
||
Ensure that it is possible to create two or more procedures with the same name,
|
||
providing each resides in different databases
|
||
--------------------------------------------------------------------------------
|
||
USE db_storedproc;
|
||
set @x=null;
|
||
set @y=null;
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1 () set @x= 1;
|
||
DROP DATABASE IF EXISTS test3124;
|
||
Warnings:
|
||
Note 1008 Can't drop database 'test3124'; database doesn't exist
|
||
CREATE DATABASE test3124;
|
||
USE test3124;
|
||
CREATE PROCEDURE sp1 () set @y= 2;
|
||
CALL sp1();
|
||
SELECT @x, @y;
|
||
@x @y
|
||
NULL 2
|
||
USE db_storedproc;
|
||
CALL sp1();
|
||
SELECT @x, @y;
|
||
@x @y
|
||
1 2
|
||
USE db_storedproc;
|
||
DROP DATABASE test3124;
|
||
DROP PROCEDURE db_storedproc.sp1;
|
||
|
||
Testcase 4.1.24:
|
||
----------------
|
||
Ensure that it is possible to create two or more functions with the same name,
|
||
providing each resides in different databases.
|
||
--------------------------------------------------------------------------------
|
||
USE db_storedproc;
|
||
DROP FUNCTION IF EXISTS f1;
|
||
Warnings:
|
||
Note 1305 FUNCTION f1 does not exist
|
||
CREATE FUNCTION f1 () returns int return 1;
|
||
DROP DATABASE IF EXISTS test3125;
|
||
Warnings:
|
||
Note 1008 Can't drop database 'test3125'; database doesn't exist
|
||
CREATE DATABASE test3125;
|
||
USE test3125;
|
||
CREATE FUNCTION f1 () returns int return 2;
|
||
SELECT f1();
|
||
f1()
|
||
2
|
||
USE db_storedproc;
|
||
SELECT f1();
|
||
f1()
|
||
1
|
||
USE db_storedproc;
|
||
DROP DATABASE test3125;
|
||
DROP FUNCTION db_storedproc.f1;
|
||
|
||
Testcase 4.1.25:
|
||
----------------
|
||
Ensure that any invalid function name is never accepted, and that an appropriate
|
||
error message is returned when the name is rejected. (invalid func name)
|
||
--------------------------------------------------------------------------------
|
||
CREATE FUNCTION !_fn1( f1 char(20) ) returns int
|
||
BEGIN
|
||
SELECT * from t1 where f2 = f1;
|
||
return 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!_fn1( f1 char(20) ) returns int
|
||
BEGIN
|
||
SELECT * from t1 where f2 = f1;
|
||
return 1;' at line 1
|
||
CREATE FUNCTION fn1( f1 char(20) ) return int
|
||
BEGIN
|
||
SELECT * from t1 where f2 = f1;
|
||
return 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'return int
|
||
BEGIN
|
||
SELECT * from t1 where f2 = f1;
|
||
return 1;
|
||
END' at line 1
|
||
CREATE FUNCTION fn1() returns int
|
||
return 'a';
|
||
CREATE FUNCTION procedure() returns int
|
||
return 1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'procedure() returns int
|
||
return 1' at line 1
|
||
CREATE FUNCTION fn1(a char) returns int lang sql return 1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql return 1' at line 1
|
||
CREATE FUNCTION fn1(a char) returns int deterministic( return 1);
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'return 1)' at line 1
|
||
CREATE FUNCTION fn1(a char) returns int non deterministic return 1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'deterministic return 1' at line 1
|
||
CREATE FUNCTION fn1(a char) returns int not deterministic comment 'abc' language sql sql security refiner return 1;
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'refiner return 1' at line 1
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
|
||
Testcase 4.1.1:
|
||
---------------
|
||
Ensure that all clauses that should be supported are supported.
|
||
CREATE PROCEDURE
|
||
--------------------------------------------------------------------------------
|
||
USE db_storedproc;
|
||
set @count = 0;
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1(cnt int(20))
|
||
BEGIN
|
||
SELECT count(*) into cnt from t2;
|
||
set @count = cnt;
|
||
END//
|
||
CALL sp1( 10 );
|
||
SELECT @count;
|
||
@count
|
||
10
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.2:
|
||
BEGINend
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( cnt int(20) )
|
||
BEGIN
|
||
SELECT count(*) into cnt from t2;
|
||
set @count = cnt;
|
||
SELECT @count;
|
||
END//
|
||
CALL sp1( 10 );
|
||
@count
|
||
10
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( cnt int(20) )
|
||
SELECT count(*) into cnt from t2;
|
||
set @count = cnt;
|
||
SELECT @count;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT count(*) into cnt from t2;
|
||
set @count = cnt;
|
||
SELECT @count;
|
||
END' at line 2
|
||
CALL sp1( 10 );
|
||
ERROR 42000: PROCEDURE db_storedproc.sp1 does not exist
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( cnt int(20) )
|
||
END
|
||
SELECT count(*) into cnt from t2;
|
||
set @count = cnt;
|
||
SELECT @count;
|
||
BEGIN//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'END
|
||
SELECT count(*) into cnt from t2;
|
||
set @count = cnt;
|
||
SELECT @count;
|
||
BEGIN' at line 2
|
||
CALL sp1( 10 );
|
||
ERROR 42000: PROCEDURE db_storedproc.sp1 does not exist
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( cnt int(20) )
|
||
BEGIN
|
||
SELECT count(*) into cnt from t2;
|
||
BEGIN
|
||
BEGIN END;
|
||
BEGIN
|
||
END;
|
||
set @count = cnt;
|
||
SELECT @count;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 10
|
||
|
||
Testcase 4.2.4:
|
||
---------------
|
||
Ensure that every BEGIN statement is coupled with a terminating END statement.
|
||
(BEGIN with no END)
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x char;
|
||
declare y char;
|
||
SELECT f1, f2 into x, y from t2 limit 1;
|
||
END//
|
||
|
||
Testcase ....:
|
||
--------------
|
||
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
add:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'add:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
all:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'all:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
alter:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
analyze:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
and:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
as:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
asc:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'asc:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
asensitive:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'asensitive:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
before:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'before:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
between:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'between:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
bigint:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
binary:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'binary:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
blob:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blob:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
both:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'both:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
by:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'by:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
CALL:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
cascade:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cascade:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
case:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
change:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
char:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
character:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'character:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
check:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
collate:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'collate:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
column:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'column:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
columns:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
condition:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
connection:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'connection:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
constraint:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'constraint:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
continue:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'continue:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
convert:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'convert:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
create:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
cross:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cross:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
current_date:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_date:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
current_time:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_time:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
current_timestamp:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_timestamp:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
current_user:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_user:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
cursor:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cursor:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
database:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'database:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
databases:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'databases:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
day_hour:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_hour:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
day_microsecond:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_microsecond:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
day_minute:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_minute:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
day_second:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_second:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
dec:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dec:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
decimal:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
declare:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'declare:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
default:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'default:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
delayed:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delayed:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
delete:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
desc:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
describe:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
deterministic:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
distinct:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'distinct:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
distinctrow:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'distinctrow:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
div:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'div:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
double:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'double:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
drop:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
dual:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dual:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
each:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'each:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
else:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'else:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
elseif:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'elseif:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
enclosed:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'enclosed:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
escaped:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'escaped:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
exists:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'exists:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
exit:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'exit:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
explain:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
false:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'false:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
fetch:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
fields:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
float:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
for:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'for:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
force:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'force:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
foreign:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'foreign:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
found:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
from:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
fulltext:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'fulltext:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
goto:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
grant:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
group:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
having:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'having:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
high_priority:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'high_priority:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
hour_microsecond:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hour_microsecond:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
hour_minute:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hour_minute:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
hour_second:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hour_second:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
if:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
ignore:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ignore:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
in:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'in:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
index:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
infile:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'infile:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
inner:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'inner:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
inout:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'inout:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
insensitive:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insensitive:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
insert:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
int:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
integer:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'integer:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
interval:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'interval:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
into:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'into:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
is:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'is:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
iterate:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
join:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'join:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
key:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
keys:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'keys:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
kill:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
leading:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'leading:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
leave:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
left:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'left:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
like:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'like:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
limit:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
lines:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lines:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
load:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
localtime:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'localtime:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
localtimestamp:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'localtimestamp:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
lock:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
long:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'long:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
longblob:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longblob:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
longtext:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longtext:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
loop:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
low_priority:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'low_priority:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
match:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'match:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
mediumblob:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumblob:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
mediumint:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
mediumtext:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumtext:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
middleint:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'middleint:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
minute_microsecond:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'minute_microsecond:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
minute_second:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'minute_second:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
mod:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mod:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
modifies:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
natural:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'natural:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
not:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
no_write_to_binlog:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'no_write_to_binlog:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
null:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'null:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
numeric:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
on:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'on:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
optimize:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
option:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
optionally:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'optionally:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
or:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'or:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
order:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
out:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'out:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
outer:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'outer:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
outfile:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'outfile:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
precision:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'precision:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
primary:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'primary:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
privileges:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
procedure:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'procedure:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
purge:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
read:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'read:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
reads:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
real:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
references:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'references:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
regexp:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'regexp:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
rename:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
repeat:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
replace:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
require:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'require:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
restrict:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'restrict:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
return:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
revoke:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
right:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'right:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
rlike:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rlike:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
schema:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'schema:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
schemas:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'schemas:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
second_microsecond:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'second_microsecond:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
select:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
sensitive:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sensitive:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
separator:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'separator:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
set:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
show:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
smallint:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
soname:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'soname:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
spatial:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'spatial:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
specific:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'specific:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
sql:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
sqlexception:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sqlexception:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
sqlstate:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sqlstate:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
sqlwarning:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sqlwarning:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
sql_big_result:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql_big_result:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
sql_calc_found_rows:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql_calc_found_rows:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
sql_small_result:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql_small_result:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
ssl:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ssl:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
starting:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'starting:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
straight_join:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'straight_join:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
table:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
tables:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
terminated:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'terminated:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
then:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'then:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
tinyblob:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyblob:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
tinyint:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
tinytext:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinytext:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
to:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'to:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
trailing:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'trailing:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
trigger:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'trigger:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
true:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'true:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
undo:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'undo:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
union:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'union:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
unique:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unique:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
unlock:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 0A000: UNLOCK is not allowed in stored procedures
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
unsigned:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unsigned:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
update:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
usage:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'usage:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
use:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
using:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'using:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
utc_date:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'utc_date:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
utc_time:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'utc_time:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
utc_timestamp:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'utc_timestamp:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
values:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'values:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
varbinary:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varbinary:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
varchar:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varchar:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
varcharacter:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varcharacter:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
varying:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varying:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
when:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'when:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
where:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
while:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
with:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'with:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
write:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'write:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
xor:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'xor:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
year_month:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'year_month:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
zerofill:BEGIN
|
||
SELECT @x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'zerofill:BEGIN
|
||
SELECT @x;
|
||
END' at line 2
|
||
|
||
Testcase 4.2.6:
|
||
---------------
|
||
Ensure that the labels for multiple BEGIN an END work properly
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
begin_label: BEGIN
|
||
declare x char;
|
||
declare y char;
|
||
set x = '1';
|
||
set y = '2';
|
||
label1: BEGIN
|
||
declare x char;
|
||
declare y char;
|
||
SELECT f1, f2 into x, y from t2 limit 1;
|
||
END label1;
|
||
set @v1 = x;
|
||
set @v2 = y;
|
||
SELECT @v1, @v2;
|
||
END begin_label//
|
||
CALL sp1();
|
||
@v1 @v2
|
||
1 2
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.7:
|
||
---------------
|
||
Ensure that the labels enclosing each BEGIN/END compound statement must match.
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
begin1_label: BEGIN
|
||
declare x char;
|
||
declare y char;
|
||
SELECT lf1, f1 into x, y from t2 limit 1;
|
||
begin2_label: BEGIN
|
||
declare x char;
|
||
declare y char;
|
||
SELECT f1, f2 into x, y from t2 limit 1;
|
||
END begin2_changed;
|
||
END begin1_changed//
|
||
ERROR 42000: End-label begin2_changed without match
|
||
|
||
Testcase 4.2.8:
|
||
---------------
|
||
Ensure that it is possible to put a beginning label at the start of a
|
||
BEGIN/END compound statement without also requiring an ending label
|
||
at the END of the same statement.
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
begin_label: BEGIN
|
||
declare x char;
|
||
declare y char;
|
||
SELECT f1, f2 into x, y from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.9:
|
||
---------------
|
||
Ensure that it is not possible to put an ending label at the END of
|
||
a BEGIN/END compound statement without also requiring a matching
|
||
beginning label at the start of the same statement
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x char;
|
||
declare y char;
|
||
SELECT f1, f2 into x, y from t2 limit 1;
|
||
END begin_label//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'begin_label' at line 6
|
||
|
||
Testcase 4.2.10:
|
||
----------------
|
||
Ensure that every beginning label must END with a colon(:)
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
begin_label BEGIN
|
||
declare x char;
|
||
declare y char;
|
||
SELECT f1, f2 into x, y from t2 limit 1;
|
||
END begin_label//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'BEGIN
|
||
declare x char;
|
||
declare y char;
|
||
SELECT f1, f2 into x, y from t2 limit 1;
|
||
E' at line 2
|
||
|
||
Testcase 4.2.11:
|
||
----------------
|
||
Ensure that every beginning label with the same scope must be unique. (same label names)
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
begin_samelabel: BEGIN
|
||
declare x char;
|
||
declare y char;
|
||
SELECT f1, f2 into x, y from t2 limit 1;
|
||
begin_samelabel: BEGIN
|
||
declare x char;
|
||
declare y char;
|
||
SELECT f1, f2 into x, y from t2 limit 1;
|
||
END begin_samelabel;
|
||
begin_samelabel: BEGIN
|
||
declare x char;
|
||
declare y char;
|
||
SELECT f1, f2 into x, y from t2 limit 1;
|
||
END begin_samelabel;
|
||
END begin_samelabel//
|
||
ERROR 42000: Redefining label begin_samelabel
|
||
|
||
Testcase 4.2.12:
|
||
----------------
|
||
Ensure that the variables, cursors, conditions, and handlers declared for
|
||
a stored procedure (with the declare statement) may only be properly defined
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
FIXME: Following test contains a known problem that will be checked again
|
||
FIXME: after WL#2984 has been completed: DECIMAL(255,255) is not rejected
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare x char default 'a';
|
||
declare y integer default 1;
|
||
declare z float default 1.1;
|
||
declare a enum("value1", "value2") default 'value1';
|
||
declare b decimal(255, 255) default 1.2e+12;
|
||
declare c mediumtext default 'mediumtext';
|
||
declare d datetime default '2005-02-02 12:12:12';
|
||
declare e char default 'b';
|
||
declare cur1 cursor for SELECT f1 from db_storedproc.t2;
|
||
declare continue handler for sqlstate '02000' set @x2 = 1;
|
||
open cur1;
|
||
fetch cur1 into e;
|
||
SELECT x, y, z, a, b, c, d, e;
|
||
close cur1;
|
||
END//
|
||
CALL sp6();
|
||
x y z a b c d e
|
||
a 1 1.1 value1 1200000000000 mediumtext 2005-02-02 12:12:12 a`
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare x12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567 char default '0';
|
||
SELECT x12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567;
|
||
END//
|
||
CALL sp6();
|
||
x12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567
|
||
0
|
||
DROP PROCEDURE sp6;
|
||
|
||
Testcase 4.2.13:
|
||
----------------
|
||
Ensure that the variables declared for a stored procedure (with the declare
|
||
statement) may only be defined in the correct order.
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare x default '0' char;
|
||
SELECT x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'default '0' char;
|
||
SELECT x;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare x char, integer default '0';
|
||
SELECT x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' integer default '0';
|
||
SELECT x;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare x1, x2 char, integer default '0', 1;
|
||
SELECT x;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' integer default '0', 1;
|
||
SELECT x;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare char x;
|
||
declare char y;
|
||
SELECT f1, f2 into x, y from t2 limit 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char x;
|
||
declare char y;
|
||
SELECT f1, f2 into x, y from t2 limit 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare char x, y1 integer default 0;
|
||
declare char y;
|
||
SELECT f1, f2 into x, y from t2 limit 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char x, y1 integer default 0;
|
||
declare char y;
|
||
SELECT f1, f2 into x, y from t2 li' at line 3
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare x default 'a' char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'default 'a' char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare condition notable for sqlstate '42s22';
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition notable for sqlstate '42s22';
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare condition for notable sqlstate '42s22';
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition for notable sqlstate '42s22';
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare condition for sqlstate notable '42s22';
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition for sqlstate notable '42s22';
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare condition for sqlstate '42s22' notable;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition for sqlstate '42s22' notable;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare cursor cur1 for SELECT f1 from db_storedproc.t2;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cursor cur1 for SELECT f1 from db_storedproc.t2;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare cursor for cur1 SELECT f1 from db_storedproc.t2;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cursor for cur1 SELECT f1 from db_storedproc.t2;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare cursor for SELECT cur1 f1 from db_storedproc.t2;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cursor for SELECT cur1 f1 from db_storedproc.t2;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare handler continue for sqlstate '02000' set @x2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'continue for sqlstate '02000' set @x2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare handler exit for sqlstate '02000' set @x2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'exit for sqlstate '02000' set @x2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare handler undo for sqlstate '02000' set @x2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'undo for sqlstate '02000' set @x2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare char x;
|
||
SELECT f1 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char x;
|
||
SELECT f1 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare char binary x;
|
||
SELECT f2 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char binary x;
|
||
SELECT f2 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare char ascii x;
|
||
SELECT f3 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char ascii x;
|
||
SELECT f3 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare tinytext x;
|
||
SELECT f4 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinytext x;
|
||
SELECT f4 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x;
|
||
SELECT f5 text into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';
|
||
SELECT f5 text into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare mediumtext x;
|
||
SELECT f6 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumtext x;
|
||
SELECT f6 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare longtext x;
|
||
SELECT f7 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longtext x;
|
||
SELECT f7 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare tinyblob x;
|
||
SELECT f8 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyblob x;
|
||
SELECT f8 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare blob x;
|
||
SELECT f9 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blob x;
|
||
SELECT f9 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare mediumblob x;
|
||
SELECT f10 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumblob x;
|
||
SELECT f10 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare longblob x;
|
||
SELECT f11 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longblob x;
|
||
SELECT f11 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare binary x;
|
||
SELECT f12 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'binary x;
|
||
SELECT f12 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare tinyint x;
|
||
SELECT f13 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint x;
|
||
SELECT f13 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare tinyint unsigned x;
|
||
SELECT f14 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint unsigned x;
|
||
SELECT f14 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare tinyint zerofill x;
|
||
SELECT f15 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint zerofill x;
|
||
SELECT f15 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare tinyint unsigned zerofill x;
|
||
SELECT f16 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint unsigned zerofill x;
|
||
SELECT f16 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare smallint x;
|
||
SELECT f17 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint x;
|
||
SELECT f17 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare smallint unsigned x;
|
||
SELECT f18 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint unsigned x;
|
||
SELECT f18 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare smallint zerofill x;
|
||
SELECT f19 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint zerofill x;
|
||
SELECT f19 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare smallint unsigned zerofill x;
|
||
SELECT f20 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint unsigned zerofill x;
|
||
SELECT f20 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare mediumint x;
|
||
SELECT f21 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint x;
|
||
SELECT f21 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare mediumint unsigned x;
|
||
SELECT f22 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint unsigned x;
|
||
SELECT f22 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare mediumint zerofill x;
|
||
SELECT f23 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint zerofill x;
|
||
SELECT f23 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare mediumint unsigned zerofill x;
|
||
SELECT f24 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint unsigned zerofill x;
|
||
SELECT f24 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare int x;
|
||
SELECT f25 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int x;
|
||
SELECT f25 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare int unsigned x;
|
||
SELECT f26 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int unsigned x;
|
||
SELECT f26 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare int zerofill x;
|
||
SELECT f27 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int zerofill x;
|
||
SELECT f27 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare int unsigned zerofill x;
|
||
SELECT f28 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int unsigned zerofill x;
|
||
SELECT f28 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare bigint x;
|
||
SELECT f29 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint x;
|
||
SELECT f29 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare bigint unsigned x;
|
||
elect f30 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint unsigned x;
|
||
elect f30 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare bigint zerofill x;
|
||
SELECT f31 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint zerofill x;
|
||
SELECT f31 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare bigint unsigned zerofill x;
|
||
SELECT f32 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint unsigned zerofill x;
|
||
SELECT f32 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal x;
|
||
SELECT f33 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal x;
|
||
SELECT f33 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal unsigned x;
|
||
SELECT f34 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal unsigned x;
|
||
SELECT f34 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal zerofill x;
|
||
SELECT f35 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal zerofill x;
|
||
SELECT f35 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal unsigned zerofill not null x;
|
||
SELECT f36 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal unsigned zerofill not null x;
|
||
SELECT f36 into x from tb1 limit 9998, 1;' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (0) not null x;
|
||
SELECT f37 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (0) not null x;
|
||
SELECT f37 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (64) not null x;
|
||
SELECT f38 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (64) not null x;
|
||
SELECT f38 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (0) unsigned not null x;
|
||
SELECT f39 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (0) unsigned not null x;
|
||
SELECT f39 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (64) unsigned not null x;
|
||
SELECT f40 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (64) unsigned not null x;
|
||
SELECT f40 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (0) zerofill not null x;
|
||
SELECT f41 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (0) zerofill not null x;
|
||
SELECT f41 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (64) zerofill not null x;
|
||
SELECT f42 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (64) zerofill not null x;
|
||
SELECT f42 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (0) unsigned zerofill not null x;
|
||
SELECT f43 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (0) unsigned zerofill not null x;
|
||
SELECT f43 into x from tb1 limit 9998' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (64) unsigned zerofill not null x;
|
||
SELECT f44 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (64) unsigned zerofill not null x;
|
||
SELECT f44 into x from tb1 limit 999' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (00) not null x;
|
||
SELECT f45 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (00) not null x;
|
||
SELECT f45 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (63, 30) not null x;
|
||
SELECT f46 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (63, 30) not null x;
|
||
SELECT f46 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (00) unsigned not null x;
|
||
SELECT f47 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (00) unsigned not null x;
|
||
SELECT f47 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (63, 30) unsigned not null x;
|
||
SELECT f48 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (63, 30) unsigned not null x;
|
||
SELECT f48 into x from tb1 limit 9998, 1;' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (00) zerofill not null x;
|
||
SELECT f49 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (00) zerofill not null x;
|
||
SELECT f49 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (63, 30) zerofill not null x;
|
||
SELECT f50 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (63, 30) zerofill not null x;
|
||
SELECT f50 into x from tb1 limit 9998, 1;' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (00) unsigned zerofill not null x;
|
||
SELECT f51 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (00) unsigned zerofill not null x;
|
||
SELECT f51 into x from tb1 limit 999' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal (63, 30) unsigned zerofill not null x;
|
||
SELECT f52 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal (63, 30) unsigned zerofill not null x;
|
||
SELECT f52 into x from tb1 limit' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric not null x;
|
||
SELECT f53 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric not null x;
|
||
SELECT f53 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric unsigned not null x;
|
||
SELECT f54 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric unsigned not null x;
|
||
SELECT f54 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric zerofill not null x;
|
||
SELECT f55 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric zerofill not null x;
|
||
SELECT f55 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric unsigned zerofill not null x;
|
||
SELECT f56 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric unsigned zerofill not null x;
|
||
SELECT f56 into x from tb1 limit 9998, 1;' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (0) not null x;
|
||
SELECT f57 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (0) not null x;
|
||
SELECT f57 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (64) not nul x;
|
||
SELECT f58 into x from tb1 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (64) not nul x;
|
||
SELECT f58 into x from tb1 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (0) unsigned x;
|
||
SELECT f59 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (0) unsigned x;
|
||
SELECT f59 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (64) unsigned x;
|
||
SELECT f60 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (64) unsigned x;
|
||
SELECT f60 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (0) zerofill x;
|
||
SELECT f61 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (0) zerofill x;
|
||
SELECT f61 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (64) zerofill x;
|
||
SELECT f62 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (64) zerofill x;
|
||
SELECT f62 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (0) unsigned zerofill x;
|
||
SELECT f63 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (0) unsigned zerofill x;
|
||
SELECT f63 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (64) unsigned zerofill x;
|
||
SELECT f64 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (64) unsigned zerofill x;
|
||
SELECT f64 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (00) x;
|
||
SELECT f65 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (00) x;
|
||
SELECT f65 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (63, 30) x;
|
||
SELECT f66 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (63, 30) x;
|
||
SELECT f66 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (00) unsigned x;
|
||
SELECT f67 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (00) unsigned x;
|
||
SELECT f67 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (63, 30) unsigned x;
|
||
SELECT f68 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (63, 30) unsigned x;
|
||
SELECT f68 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (00) zerofill x;
|
||
SELECT f69 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (00) zerofill x;
|
||
SELECT f69 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (63, 30) zerofill x;
|
||
SELECT f70 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (63, 30) zerofill x;
|
||
SELECT f70 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (00) unsigned zerofill x;
|
||
SELECT f71 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (00) unsigned zerofill x;
|
||
SELECT f71 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric (63, 30) unsigned zerofill x;
|
||
SELECT f72 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric (63, 30) unsigned zerofill x;
|
||
SELECT f72 into x from tb2 limit 9998, 1;' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare real x;
|
||
SELECT f73 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real x;
|
||
SELECT f73 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare real unsigned x;
|
||
SELECT f74 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real unsigned x;
|
||
SELECT f74 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare real zerofill x;
|
||
SELECT f75 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real zerofill x;
|
||
SELECT f75 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare real unsigned zerofill x;
|
||
SELECT f76 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real unsigned zerofill x;
|
||
SELECT f76 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare double x;
|
||
SELECT f77 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'double x;
|
||
SELECT f77 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare double unsigned x;
|
||
SELECT f78 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'double unsigned x;
|
||
SELECT f78 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare double zerofill x;
|
||
SELECT f79 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'double zerofill x;
|
||
SELECT f79 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare double unsigned zerofill x;
|
||
SELECT f80 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'double unsigned zerofill x;
|
||
SELECT f80 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float not null x;
|
||
SELECT f81 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float not null x;
|
||
SELECT f81 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float unsigned not null x;
|
||
SELECT f82 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float unsigned not null x;
|
||
SELECT f82 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float zerofill not null x;
|
||
SELECT f83 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float zerofill not null x;
|
||
SELECT f83 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float unsigned zerofill not null x;
|
||
SELECT f84 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float unsigned zerofill not null x;
|
||
SELECT f84 into x from tb2 limit 9998, 1;
|
||
E' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(0) not null x;
|
||
SELECT f85 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(0) not null x;
|
||
SELECT f85 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(23) not null x;
|
||
SELECT f86 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(23) not null x;
|
||
SELECT f86 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(0) unsigned not null x;
|
||
SELECT f87 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(0) unsigned not null x;
|
||
SELECT f87 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(23) unsigned not null x;
|
||
SELECT f88 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(23) unsigned not null x;
|
||
SELECT f88 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(0) zerofill not null x;
|
||
SELECT f89 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(0) zerofill not null x;
|
||
SELECT f89 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(23) zerofill not null x;
|
||
SELECT f90 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(23) zerofill not null x;
|
||
SELECT f90 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(0) unsigned zerofill not null x;
|
||
SELECT f91 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(0) unsigned zerofill not null x;
|
||
SELECT f91 into x from tb2 limit 9998, 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(23) unsigned zerofill not null x;
|
||
SELECT f92 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(23) unsigned zerofill not null x;
|
||
SELECT f92 into x from tb2 limit 9998, ' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(24) not null x;
|
||
SELECT f93 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(24) not null x;
|
||
SELECT f93 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(53) not null x;
|
||
SELECT f94 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(53) not null x;
|
||
SELECT f94 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(24) unsigned not null x;
|
||
SELECT f95 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(24) unsigned not null x;
|
||
SELECT f95 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(53) unsigned not null x;
|
||
SELECT f96 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(53) unsigned not null x;
|
||
SELECT f96 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(24) zerofill not null x;
|
||
SELECT f97 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(24) zerofill not null x;
|
||
SELECT f97 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(53) zerofill not null x;
|
||
SELECT f98 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(53) zerofill not null x;
|
||
SELECT f98 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(24) unsigned zerofill not null x;
|
||
SELECT f99 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(24) unsigned zerofill not null x;
|
||
SELECT f99 into x from tb2 limit 9998, ' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float(53) unsigned zerofill not null x;
|
||
SELECT f100 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float(53) unsigned zerofill not null x;
|
||
SELECT f100 into x from tb2 limit 9998,' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare date not null x;
|
||
SELECT f101 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'not null x;
|
||
SELECT f101 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare time not null x;
|
||
SELECT f102 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'not null x;
|
||
SELECT f102 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare datetime not null x;
|
||
SELECT f103 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'not null x;
|
||
SELECT f103 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare timestamp not null x;
|
||
SELECT f104 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'not null x;
|
||
SELECT f104 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare year not null x;
|
||
SELECT f105 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'not null x;
|
||
SELECT f105 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare year(3) not null x;
|
||
SELECT f106 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(3) not null x;
|
||
SELECT f106 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare year(4) not null x;
|
||
SELECT f107 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(4) not null x;
|
||
SELECT f107 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare enum("1enum", "2enum") not null x;
|
||
SELECT f108 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '("1enum", "2enum") not null x;
|
||
SELECT f108 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare set("1set", "2set") not nul x;
|
||
SELECT f109 into x from tb2 limit 9998, 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'set("1set", "2set") not nul x;
|
||
SELECT f109 into x from tb2 limit 9998, 1;
|
||
END' at line 3
|
||
|
||
Testcase 4.2.14:
|
||
----------------
|
||
Ensure that the handlers declared for a stored procedure (with the declare
|
||
statement) may only be defined in the correct order
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare continue handler for sqlstate '23000' set @x2 = 1;
|
||
declare x char;
|
||
END//
|
||
ERROR 42000: Variable or condition declaration after cursor or handler declaration
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare continue handler for sqlstate '23000' set @x2 = 1;
|
||
declare x char;
|
||
END//
|
||
ERROR 42000: Variable or condition declaration after cursor or handler declaration
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare cursor1 cursor for SELECT f1 from tb1;
|
||
declare x char;
|
||
END//
|
||
ERROR 42000: Variable or condition declaration after cursor or handler declaration
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare cursor1 cursor for SELECT f1 from tb1;
|
||
declare sqlcondition condition for sqlstate '02000';
|
||
END//
|
||
ERROR 42000: Variable or condition declaration after cursor or handler declaration
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare sqlcondition condition for sqlstate '02000';
|
||
declare continue handler for sqlcondition set @x=1;
|
||
declare cursor1 cursor for SELECT f1 from tb1;
|
||
END//
|
||
ERROR 42000: Cursor declaration after handler declaration
|
||
|
||
Testcase 4.2.15:
|
||
----------------
|
||
Ensure that the declare statement can declare multiple variables both separately
|
||
and all at once from a variable list. (multiple declaration)
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z char default null;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
NULL NULL NULL
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z char ascii default null;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
NULL NULL NULL
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z tinytext default null;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
NULL NULL NULL
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z text default null;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
NULL NULL NULL
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z mediumtext default null;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
NULL NULL NULL
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z longtext default null;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
NULL NULL NULL
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z tinyblob default null;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
NULL NULL NULL
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z blob default null;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
NULL NULL NULL
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z mediumblob default null;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
NULL NULL NULL
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z longblob default null;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
NULL NULL NULL
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z binary default null;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
NULL NULL NULL
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z tinyint default -126;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
-126 -126 -126
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z tinyint unsigned default 253;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
253 253 253
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z tinyint zerofill default -1;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
-1 -1 -1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z tinyint unsigned zerofill default 1;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
1 1 1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z smallint default -32768;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
-32768 -32768 -32768
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z smallint unsigned default 65535;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
65535 65535 65535
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z smallint zerofill default -1;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
-1 -1 -1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z smallint unsigned zerofill default 1;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
1 1 1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z mediumint default -8388608;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
-8388608 -8388608 -8388608
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z mediumint unsigned default 16777215;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
16777215 16777215 16777215
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z mediumint zerofill default -1;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
-1 -1 -1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z mediumint unsigned zerofill default 1;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
1 1 1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z int default -2147483648;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
-2147483648 -2147483648 -2147483648
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z int unsigned default 4294967295;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
4294967295 4294967295 4294967295
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z int zerofill default -1;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
-1 -1 -1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z int unsigned zerofill default 1;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
1 1 1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z bigint default -9223372036854775808;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
-9223372036854775808 -9223372036854775808 -9223372036854775808
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z bigint unsigned default 18446744073709551615;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
-1 -1 -1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z bigint zerofill default -1;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
-1 -1 -1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z bigint unsigned zerofill default 1;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
1 1 1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z decimal default -34028234660123456789012345678901234567;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
-34028234660123456789012345678901234567 -34028234660123456789012345678901234567 -34028234660123456789012345678901234567
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z decimal unsigned default 1.175494351e-38;
|
||
SELECT x, y, z;
|
||
END//
|
||
FIXME: Following test contains a known problem that will be checked again
|
||
FIXME: after WL#2984 has been completed: default (10,0) for DECIMAL not checked
|
||
CALL sp1();
|
||
x y z
|
||
0.00000000000000000000000000000000000001175494351 0.00000000000000000000000000000000000001175494351 0.00000000000000000000000000000000000001175494351
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z decimal zerofill default -34028234660123456789012345678901234567;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
-34028234660123456789012345678901234567 -34028234660123456789012345678901234567 -34028234660123456789012345678901234567
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z decimal unsigned zerofill default 1.175494351e-38;
|
||
SELECT x, y, z;
|
||
END//
|
||
FIXME: Following test contains a known problem that will be checked again
|
||
FIXME: after WL#2984 has been completed: default (10,0) for DECIMAL not checked
|
||
CALL sp1();
|
||
x y z
|
||
0.00000000000000000000000000000000000001175494351 0.00000000000000000000000000000000000001175494351 0.00000000000000000000000000000000000001175494351
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z numeric default 1.175494351e-38;
|
||
SELECT x, y, z;
|
||
END//
|
||
FIXME: Following test contains a known problem that will be checked again
|
||
FIXME: after WL#2984 has been completed: default (10,0) for DECIMAL not checked
|
||
CALL sp1();
|
||
x y z
|
||
0.00000000000000000000000000000000000001175494351 0.00000000000000000000000000000000000001175494351 0.00000000000000000000000000000000000001175494351
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z numeric unsigned default 1.175494351e-38;
|
||
SELECT x, y, z;
|
||
END//
|
||
FIXME: Following test contains a known problem that will be checked again
|
||
FIXME: after WL#2984 has been completed: default (10,0) for DECIMAL not checked
|
||
CALL sp1();
|
||
x y z
|
||
0.00000000000000000000000000000000000001175494351 0.00000000000000000000000000000000000001175494351 0.00000000000000000000000000000000000001175494351
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z numeric zerofill default 1.175494351e-38;
|
||
SELECT x, y, z;
|
||
END//
|
||
FIXME: Following test contains a known problem that will be checked again
|
||
FIXME: after WL#2984 has been completed: default (10,0) for DECIMAL not checked
|
||
CALL sp1();
|
||
x y z
|
||
0.00000000000000000000000000000000000001175494351 0.00000000000000000000000000000000000001175494351 0.00000000000000000000000000000000000001175494351
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z numeric unsigned zerofill default 1.175494351e-38;
|
||
SELECT x, y, z;
|
||
END//
|
||
FIXME: Following test contains a known problem that will be checked again
|
||
FIXME: after WL#2984 has been completed: default (10,0) for DECIMAL not checked
|
||
CALL sp1();
|
||
x y z
|
||
0.00000000000000000000000000000000000001175494351 0.00000000000000000000000000000000000001175494351 0.00000000000000000000000000000000000001175494351
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z real default 1.175494351e-38;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
1.175494351e-38 1.175494351e-38 1.175494351e-38
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z real unsigned default 1.175494351e-38;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
1.175494351e-38 1.175494351e-38 1.175494351e-38
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z real zerofill default 1.175494351e-38;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
1.175494351e-38 1.175494351e-38 1.175494351e-38
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z real unsigned zerofill default 1.175494351e-38;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
1.175494351e-38 1.175494351e-38 1.175494351e-38
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z float default 1.175494351e-38;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
1.175494351e-38 1.175494351e-38 1.175494351e-38
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z float unsigned default 1.175494351e-38;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
1.175494351e-38 1.175494351e-38 1.175494351e-38
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z float zerofill default 1.175494351e-38;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
1.175494351e-38 1.175494351e-38 1.175494351e-38
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z float unsigned zerofill default 1.175494351e-38;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
1.175494351e-38 1.175494351e-38 1.175494351e-38
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z date default '2005-02-02';
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
2005-02-02 2005-02-02 2005-02-02
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z time default '12:20:12';
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
12:20:12 12:20:12 12:20:12
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z datetime default '2005-02-02 12:20:12';
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
2005-02-02 12:20:12 2005-02-02 12:20:12 2005-02-02 12:20:12
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z timestamp default '20050202122012';
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
20050202122012 20050202122012 20050202122012
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z year default 2005;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
2005 2005 2005
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z year(3) default 2005;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
2005 2005 2005
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z year(4) default 2005;
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
2005 2005 2005
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z enum("1enum", "2enum") default "2enum";
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
2enum 2enum 2enum
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x, y, z set("1set", "2set") default "2set";
|
||
SELECT x, y, z;
|
||
END//
|
||
CALL sp1();
|
||
x y z
|
||
2set 2set 2set
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.16:
|
||
----------------
|
||
Ensure that the declare statement can declare multiple variables both separately
|
||
and all at once from a variable list. (multiple declaration).
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6( )
|
||
BEGIN
|
||
declare a, b char default '2';
|
||
declare c, d float default 1.3;
|
||
declare e, f text default 'text';
|
||
declare g, h enum("value1", "value2" ) default 'value1';
|
||
declare i, j datetime default '2005-02-02 12:12:12';
|
||
declare k, l blob default 'blob';
|
||
SELECT a, b, c, d, e, f, g, h, k, l;
|
||
END//
|
||
CALL sp6();
|
||
a b c d e f g h k l
|
||
2 2 1.3 1.3 text text value1 value1 blob blob
|
||
DROP PROCEDURE sp6;
|
||
|
||
Testcase 4.2.17:
|
||
----------------
|
||
Ensure that the invalid variable declarations are rejected, with an appropriate
|
||
error message.
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare @x char;
|
||
SELECT f2 into x from t2 limit 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@x char;
|
||
SELECT f2 into x from t2 limit 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare add char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'add char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare all char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'all char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare alter char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'alter char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare analyze char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'analyze char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare and char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare as char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare asc char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'asc char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare asensitive char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'asensitive char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare before char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'before char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare between char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'between char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare bigint char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare binary char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'binary char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare blob char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blob char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare both char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'both char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare by char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'by char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare CALL char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CALL char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cascade char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cascade char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare case char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'case char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare change char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'change char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare char char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare character char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'character char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare check char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'check char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare collate char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'collate char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare column char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'column char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare columns char;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare condition char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare connection char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'connection char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare constraint char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'constraint char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare continue char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare convert char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'convert char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare create char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'create char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cross char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cross char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare current_date char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_date char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare current_time char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_time char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare current_timestamp char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_timestamp char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare current_user char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_user char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cursor char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cursor char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare database char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'database char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare databases char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'databases char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare day_hour char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_hour char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare day_microsecond char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_microsecond char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare day_minute char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_minute char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare day_second char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_second char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare dec char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dec char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare decimal char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare declare char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'declare char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare default char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'default char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare delayed char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delayed char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare delete char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delete char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare desc char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare describe char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'describe char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare deterministic char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'deterministic char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare distinct char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'distinct char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare distinctrow char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'distinctrow char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare div char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'div char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare double char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'double char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare drop char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'drop char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare dual char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dual char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare each char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'each char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare else char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'else char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare elseif char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'elseif char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare enclosed char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'enclosed char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare escaped char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'escaped char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare exists char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'exists char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare exit char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare explain char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'explain char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare false char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'false char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare fetch char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'fetch char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare fields char;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare float char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare for char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'for char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare force char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'force char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare foreign char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'foreign char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare found char;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare from char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare fulltext char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'fulltext char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare goto char;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare grant char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'grant char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare group char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare having char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'having char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare high_priority char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'high_priority char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare hour_microsecond char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hour_microsecond char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare hour_minute char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hour_minute char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare hour_second char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hour_second char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare if char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'if char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare ignore char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ignore char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare in char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'in char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare index char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare infile char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'infile char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare inner char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'inner char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare inout char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'inout char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare insensitive char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insensitive char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare insert char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insert char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare int char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare integer char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'integer char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare interval char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'interval char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare into char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'into char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare is char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'is char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare iterate char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'iterate char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare join char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'join char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare key char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare keys char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'keys char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare kill char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'kill char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare leading char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'leading char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare leave char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'leave char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare left char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'left char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare like char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'like char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare limit char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare lines char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lines char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare load char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'load char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare localtime char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'localtime char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare localtimestamp char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'localtimestamp char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare lock char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lock char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare long char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'long char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare longblob char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longblob char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare longtext char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longtext char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare loop char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'loop char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare low_priority char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'low_priority char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare match char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'match char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare mediumblob char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumblob char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare mediumint char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare mediumtext char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumtext char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare middleint char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'middleint char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare minute_microsecond char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'minute_microsecond char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare minute_second char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'minute_second char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare mod char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mod char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare modifies char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'modifies char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare natural char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'natural char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare not char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'not char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare no_write_to_binlog char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'no_write_to_binlog char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare null char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'null char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare numeric char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare on char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'on char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare optimize char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'optimize char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare option char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare optionally char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'optionally char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare or char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'or char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare order char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare out char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'out char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare outer char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'outer char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare outfile char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'outfile char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare precision char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'precision char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare primary char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'primary char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare privileges char;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare procedure char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'procedure char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare purge char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'purge char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare read char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'read char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare reads char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'reads char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare real char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare references char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'references char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare regexp char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'regexp char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare rename char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rename char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare repeat char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'repeat char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare replace char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'replace char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare require char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'require char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare restrict char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'restrict char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare return char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'return char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare revoke char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'revoke char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare right char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'right char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare rlike char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rlike char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare schema char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'schema char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare schemas char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'schemas char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare second_microsecond char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'second_microsecond char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare SELECT char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare sensitive char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sensitive char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare separator char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'separator char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare set char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'set char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare show char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare smallint char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare soname char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'soname char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare spatial char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'spatial char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare specific char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'specific char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare sql char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare sqlexception char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sqlexception char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare sqlstate char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sqlstate char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare sqlwarning char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sqlwarning char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare sql_big_result char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql_big_result char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare sql_calc_found_rows char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql_calc_found_rows char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare sql_small_result char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql_small_result char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare ssl char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ssl char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare starting char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'starting char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare straight_join char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'straight_join char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare table char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare tables char;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare terminated char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'terminated char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare then char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'then char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare tinyblob char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyblob char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare tinyint char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare tinytext char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinytext char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare to char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'to char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare trailing char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'trailing char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare trigger char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'trigger char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare true char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'true char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare undo char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'undo char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare union char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'union char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare unique char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unique char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare unlock char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unlock char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare unsigned char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unsigned char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare update char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'update char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare usage char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'usage char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare USE char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'USE char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare using char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'using char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare utc_date char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'utc_date char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare utc_time char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'utc_time char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare utc_timestamp char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'utc_timestamp char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare values char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'values char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare varbinary char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varbinary char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare varchar char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varchar char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare varcharacter char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varcharacter char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare varying char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varying char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare when char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'when char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare where char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare while char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'while char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare with char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'with char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare write char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'write char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare xor char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'xor char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare year_month char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'year_month char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare zerofill char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'zerofill char;
|
||
END' at line 3
|
||
|
||
Testcase :
|
||
----------
|
||
Ensure that every possible type of condition may be declared for a stored procedure
|
||
( covered in more detail in handlers section.)
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate 'HY000';
|
||
declare cond2 condition for sqlstate '23000';
|
||
declare cond3 condition for sqlstate 'HY001';
|
||
declare cond4 condition for sqlstate '08004';
|
||
declare cond5 condition for sqlstate '08S01';
|
||
declare cond6 condition for sqlstate '42000';
|
||
declare cond7 condition for sqlstate '28000';
|
||
declare cond8 condition for sqlstate '3D000';
|
||
declare cond9 condition for sqlstate '42S01';
|
||
declare cond10 condition for sqlstate '42S02';
|
||
declare cond11 condition for sqlstate '42S22';
|
||
declare cond12 condition for sqlstate '21S01';
|
||
declare cond13 condition for sqlstate '42S21';
|
||
declare cond14 condition for sqlstate '42S12';
|
||
declare cond15 condition for sqlstate '22004';
|
||
declare cond16 condition for sqlstate '25000';
|
||
declare cond17 condition for sqlstate '40001';
|
||
declare cond18 condition for sqlstate '21000';
|
||
declare cond19 condition for sqlstate '01000';
|
||
declare cond20 condition for sqlstate '22003';
|
||
declare cond21 condition for sqlstate '22007';
|
||
declare cond22 condition for sqlstate '0A000';
|
||
declare cond23 condition for sqlstate '70100';
|
||
declare cond24 condition for sqlstate '2F005';
|
||
declare cond25 condition for sqlstate '24000';
|
||
declare cond26 condition for sqlstate '02000';
|
||
declare continue handler for cond2 set @x2 = 1;
|
||
declare continue handler for cond1 set @x2 = 1;
|
||
declare continue handler for cond3 set @x2 = 1;
|
||
declare continue handler for cond4 set @x2 = 1;
|
||
declare continue handler for cond5 set @x2 = 1;
|
||
declare continue handler for cond7 set @x2 = 1;
|
||
declare continue handler for cond6 set @x2 = 1;
|
||
declare continue handler for cond8 set @x2 = 1;
|
||
declare continue handler for cond9 set @x2 = 1;
|
||
declare continue handler for cond10 set @x2 = 1;
|
||
declare continue handler for cond11 set @x2 = 1;
|
||
declare continue handler for cond12 set @x2 = 1;
|
||
declare continue handler for cond13 set @x2 = 1;
|
||
declare continue handler for cond14 set @x2 = 1;
|
||
declare continue handler for cond15 set @x2 = 1;
|
||
declare continue handler for cond16 set @x2 = 1;
|
||
declare continue handler for cond17 set @x2 = 1;
|
||
declare continue handler for cond18 set @x2 = 1;
|
||
declare continue handler for cond19 set @x2 = 1;
|
||
declare continue handler for cond20 set @x2 = 1;
|
||
declare continue handler for cond21 set @x2 = 1;
|
||
declare continue handler for cond22 set @x2 = 1;
|
||
declare continue handler for cond23 set @x2 = 1;
|
||
declare continue handler for cond24 set @x2 = 1;
|
||
declare continue handler for cond25 set @x2 = 1;
|
||
declare continue handler for cond26 set @x2 = 1;
|
||
set @x = 1;
|
||
insert into t2 values (1);
|
||
set @x = 2;
|
||
insert into t2 values (1);
|
||
set @x = 3;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE sp1;
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare @x char;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@x char;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x char1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare add condition for sqlstate '02000';
|
||
declare exit handler for add set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'add condition for sqlstate '02000';
|
||
declare exit handler for add set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare all condition for sqlstate '02000';
|
||
declare exit handler for all set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'all condition for sqlstate '02000';
|
||
declare exit handler for all set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare alter condition for sqlstate '02000';
|
||
declare exit handler for alter set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'alter condition for sqlstate '02000';
|
||
declare exit handler for alter set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare analyze condition for sqlstate '02000';
|
||
declare exit handler for analyze set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'analyze condition for sqlstate '02000';
|
||
declare exit handler for analyze set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare and condition for sqlstate '02000';
|
||
declare exit handler for and set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and condition for sqlstate '02000';
|
||
declare exit handler for and set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare as condition for sqlstate '02000';
|
||
declare exit handler for as set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as condition for sqlstate '02000';
|
||
declare exit handler for as set @var2 = 1;
|
||
EN' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare asc condition for sqlstate '02000';
|
||
declare exit handler for asc set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'asc condition for sqlstate '02000';
|
||
declare exit handler for asc set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare asensitive condition for sqlstate '02000';
|
||
declare exit handler for asensitive set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'asensitive condition for sqlstate '02000';
|
||
declare exit handler for asensitive s' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare before condition for sqlstate '02000';
|
||
declare exit handler for before set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'before condition for sqlstate '02000';
|
||
declare exit handler for before set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare between condition for sqlstate '02000';
|
||
declare exit handler for between set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'between condition for sqlstate '02000';
|
||
declare exit handler for between set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare bigint condition for sqlstate '02000';
|
||
declare exit handler for bigint set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint condition for sqlstate '02000';
|
||
declare exit handler for bigint set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare binary condition for sqlstate '02000';
|
||
declare exit handler for binary set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'binary condition for sqlstate '02000';
|
||
declare exit handler for binary set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare blob condition for sqlstate '02000';
|
||
declare exit handler for blob set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blob condition for sqlstate '02000';
|
||
declare exit handler for blob set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare both condition for sqlstate '02000';
|
||
declare exit handler for both set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'both condition for sqlstate '02000';
|
||
declare exit handler for both set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare by condition for sqlstate '02000';
|
||
declare exit handler for by set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'by condition for sqlstate '02000';
|
||
declare exit handler for by set @var2 = 1;
|
||
EN' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare CALL condition for sqlstate '02000';
|
||
declare exit handler for CALL set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CALL condition for sqlstate '02000';
|
||
declare exit handler for CALL set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare cascade condition for sqlstate '02000';
|
||
declare exit handler for cascade set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cascade condition for sqlstate '02000';
|
||
declare exit handler for cascade set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare case condition for sqlstate '02000';
|
||
declare exit handler for case set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'case condition for sqlstate '02000';
|
||
declare exit handler for case set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare change condition for sqlstate '02000';
|
||
declare exit handler for change set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'change condition for sqlstate '02000';
|
||
declare exit handler for change set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare char condition for sqlstate '02000';
|
||
declare exit handler for char set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char condition for sqlstate '02000';
|
||
declare exit handler for char set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare character condition for sqlstate '02000';
|
||
declare exit handler for character set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'character condition for sqlstate '02000';
|
||
declare exit handler for character set' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare check condition for sqlstate '02000';
|
||
declare exit handler for check set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'check condition for sqlstate '02000';
|
||
declare exit handler for check set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare collate condition for sqlstate '02000';
|
||
declare exit handler for collate set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'collate condition for sqlstate '02000';
|
||
declare exit handler for collate set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare column condition for sqlstate '02000';
|
||
declare exit handler for column set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'column condition for sqlstate '02000';
|
||
declare exit handler for column set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare condition condition for sqlstate '02000';
|
||
declare exit handler for condition set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition condition for sqlstate '02000';
|
||
declare exit handler for condition set' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare connection condition for sqlstate '02000';
|
||
declare exit handler for connection set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'connection condition for sqlstate '02000';
|
||
declare exit handler for connection s' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare constraint condition for sqlstate '02000';
|
||
declare exit handler for constraint set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'constraint condition for sqlstate '02000';
|
||
declare exit handler for constraint s' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare continue condition for sqlstate '02000';
|
||
declare exit handler for continue set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition for sqlstate '02000';
|
||
declare exit handler for continue set @var2 = 1;' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare convert condition for sqlstate '02000';
|
||
declare exit handler for convert set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'convert condition for sqlstate '02000';
|
||
declare exit handler for convert set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare create condition for sqlstate '02000';
|
||
declare exit handler for create set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'create condition for sqlstate '02000';
|
||
declare exit handler for create set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare cross condition for sqlstate '02000';
|
||
declare exit handler for cross set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cross condition for sqlstate '02000';
|
||
declare exit handler for cross set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare current_date condition for sqlstate '02000';
|
||
declare exit handler for current_date set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_date condition for sqlstate '02000';
|
||
declare exit handler for current_da' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare current_time condition for sqlstate '02000';
|
||
declare exit handler for current_time set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_time condition for sqlstate '02000';
|
||
declare exit handler for current_ti' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare current_timestamp condition for sqlstate '02000';
|
||
declare exit handler for current_timestamp set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_timestamp condition for sqlstate '02000';
|
||
declare exit handler for curre' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare current_user condition for sqlstate '02000';
|
||
declare exit handler for current_user set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_user condition for sqlstate '02000';
|
||
declare exit handler for current_us' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare cursor condition for sqlstate '02000';
|
||
declare exit handler for cursor set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cursor condition for sqlstate '02000';
|
||
declare exit handler for cursor set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare database condition for sqlstate '02000';
|
||
declare exit handler for database set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'database condition for sqlstate '02000';
|
||
declare exit handler for database set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare databases condition for sqlstate '02000';
|
||
declare exit handler for databases set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'databases condition for sqlstate '02000';
|
||
declare exit handler for databases set' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare day_hour condition for sqlstate '02000';
|
||
declare exit handler for day_hour set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_hour condition for sqlstate '02000';
|
||
declare exit handler for day_hour set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare day_microsecond condition for sqlstate '02000';
|
||
declare exit handler for day_microsecond set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_microsecond condition for sqlstate '02000';
|
||
declare exit handler for day_mic' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare day_minute condition for sqlstate '02000';
|
||
declare exit handler for day_minute set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_minute condition for sqlstate '02000';
|
||
declare exit handler for day_minute s' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare day_second condition for sqlstate '02000';
|
||
declare exit handler for day_second set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_second condition for sqlstate '02000';
|
||
declare exit handler for day_second s' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare dec condition for sqlstate '02000';
|
||
declare exit handler for dec set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dec condition for sqlstate '02000';
|
||
declare exit handler for dec set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal condition for sqlstate '02000';
|
||
declare exit handler for decimal set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal condition for sqlstate '02000';
|
||
declare exit handler for decimal set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare declare condition for sqlstate '02000';
|
||
declare exit handler for declare set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'declare condition for sqlstate '02000';
|
||
declare exit handler for declare set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare default condition for sqlstate '02000';
|
||
declare exit handler for default set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'default condition for sqlstate '02000';
|
||
declare exit handler for default set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare delayed condition for sqlstate '02000';
|
||
declare exit handler for delayed set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delayed condition for sqlstate '02000';
|
||
declare exit handler for delayed set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare delete condition for sqlstate '02000';
|
||
declare exit handler for delete set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delete condition for sqlstate '02000';
|
||
declare exit handler for delete set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare desc condition for sqlstate '02000';
|
||
declare exit handler for desc set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc condition for sqlstate '02000';
|
||
declare exit handler for desc set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare describe condition for sqlstate '02000';
|
||
declare exit handler for describe set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'describe condition for sqlstate '02000';
|
||
declare exit handler for describe set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare deterministic condition for sqlstate '02000';
|
||
declare exit handler for deterministic set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'deterministic condition for sqlstate '02000';
|
||
declare exit handler for determini' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare distinct condition for sqlstate '02000';
|
||
declare exit handler for distinct set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'distinct condition for sqlstate '02000';
|
||
declare exit handler for distinct set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare distinctrow condition for sqlstate '02000';
|
||
declare exit handler for distinctrow set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'distinctrow condition for sqlstate '02000';
|
||
declare exit handler for distinctrow' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare div condition for sqlstate '02000';
|
||
declare exit handler for div set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'div condition for sqlstate '02000';
|
||
declare exit handler for div set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare double condition for sqlstate '02000';
|
||
declare exit handler for double set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'double condition for sqlstate '02000';
|
||
declare exit handler for double set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare drop condition for sqlstate '02000';
|
||
declare exit handler for drop set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'drop condition for sqlstate '02000';
|
||
declare exit handler for drop set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare dual condition for sqlstate '02000';
|
||
declare exit handler for dual set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dual condition for sqlstate '02000';
|
||
declare exit handler for dual set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare each condition for sqlstate '02000';
|
||
declare exit handler for each set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'each condition for sqlstate '02000';
|
||
declare exit handler for each set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare else condition for sqlstate '02000';
|
||
declare exit handler for else set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'else condition for sqlstate '02000';
|
||
declare exit handler for else set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare elseif condition for sqlstate '02000';
|
||
declare exit handler for elseif set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'elseif condition for sqlstate '02000';
|
||
declare exit handler for elseif set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare enclosed condition for sqlstate '02000';
|
||
declare exit handler for enclosed set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'enclosed condition for sqlstate '02000';
|
||
declare exit handler for enclosed set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare escaped condition for sqlstate '02000';
|
||
declare exit handler for escaped set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'escaped condition for sqlstate '02000';
|
||
declare exit handler for escaped set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare exists condition for sqlstate '02000';
|
||
declare exit handler for exists set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'exists condition for sqlstate '02000';
|
||
declare exit handler for exists set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare exit condition for sqlstate '02000';
|
||
declare exit handler for exit set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition for sqlstate '02000';
|
||
declare exit handler for exit set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare explain condition for sqlstate '02000';
|
||
declare exit handler for explain set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'explain condition for sqlstate '02000';
|
||
declare exit handler for explain set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare false condition for sqlstate '02000';
|
||
declare exit handler for false set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'false condition for sqlstate '02000';
|
||
declare exit handler for false set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare fetch condition for sqlstate '02000';
|
||
declare exit handler for fetch set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'fetch condition for sqlstate '02000';
|
||
declare exit handler for fetch set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare fields condition for sqlstate '02000';
|
||
declare exit handler for fields set @var2 = 1;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float condition for sqlstate '02000';
|
||
declare exit handler for float set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float condition for sqlstate '02000';
|
||
declare exit handler for float set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare for condition for sqlstate '02000';
|
||
declare exit handler for for set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'for condition for sqlstate '02000';
|
||
declare exit handler for for set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare force condition for sqlstate '02000';
|
||
declare exit handler for force set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'force condition for sqlstate '02000';
|
||
declare exit handler for force set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare foreign condition for sqlstate '02000';
|
||
declare exit handler for foreign set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'foreign condition for sqlstate '02000';
|
||
declare exit handler for foreign set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare found condition for sqlstate '02000';
|
||
declare exit handler for found set @var2 = 1;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare from condition for sqlstate '02000';
|
||
declare exit handler for from set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from condition for sqlstate '02000';
|
||
declare exit handler for from set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare fulltext condition for sqlstate '02000';
|
||
declare exit handler for fulltext set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'fulltext condition for sqlstate '02000';
|
||
declare exit handler for fulltext set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare goto condition for sqlstate '02000';
|
||
declare exit handler for goto set @var2 = 1;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare grant condition for sqlstate '02000';
|
||
declare exit handler for grant set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'grant condition for sqlstate '02000';
|
||
declare exit handler for grant set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare group condition for sqlstate '02000';
|
||
declare exit handler for group set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group condition for sqlstate '02000';
|
||
declare exit handler for group set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare having condition for sqlstate '02000';
|
||
declare exit handler for having set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'having condition for sqlstate '02000';
|
||
declare exit handler for having set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare high_priority condition for sqlstate '02000';
|
||
declare exit handler for high_priority set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'high_priority condition for sqlstate '02000';
|
||
declare exit handler for high_prio' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare hour_microsecond condition for sqlstate '02000';
|
||
declare exit handler for hour_microsecond set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hour_microsecond condition for sqlstate '02000';
|
||
declare exit handler for hour_m' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare hour_minute condition for sqlstate '02000';
|
||
declare exit handler for hour_minute set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hour_minute condition for sqlstate '02000';
|
||
declare exit handler for hour_minute' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare hour_second condition for sqlstate '02000';
|
||
declare exit handler for hour_second set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hour_second condition for sqlstate '02000';
|
||
declare exit handler for hour_second' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare if condition for sqlstate '02000';
|
||
declare exit handler for if set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'if condition for sqlstate '02000';
|
||
declare exit handler for if set @var2 = 1;
|
||
EN' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare ignore condition for sqlstate '02000';
|
||
declare exit handler for ignore set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ignore condition for sqlstate '02000';
|
||
declare exit handler for ignore set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare in condition for sqlstate '02000';
|
||
declare exit handler for in set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'in condition for sqlstate '02000';
|
||
declare exit handler for in set @var2 = 1;
|
||
EN' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare index condition for sqlstate '02000';
|
||
declare exit handler for index set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index condition for sqlstate '02000';
|
||
declare exit handler for index set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare infile condition for sqlstate '02000';
|
||
declare exit handler for infile set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'infile condition for sqlstate '02000';
|
||
declare exit handler for infile set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare inner condition for sqlstate '02000';
|
||
declare exit handler for inner set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'inner condition for sqlstate '02000';
|
||
declare exit handler for inner set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare inout condition for sqlstate '02000';
|
||
declare exit handler for inout set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'inout condition for sqlstate '02000';
|
||
declare exit handler for inout set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare insensitive condition for sqlstate '02000';
|
||
declare exit handler for insensitive set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insensitive condition for sqlstate '02000';
|
||
declare exit handler for insensitive' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare insert condition for sqlstate '02000';
|
||
declare exit handler for insert set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insert condition for sqlstate '02000';
|
||
declare exit handler for insert set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare int condition for sqlstate '02000';
|
||
declare exit handler for int set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int condition for sqlstate '02000';
|
||
declare exit handler for int set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare integer condition for sqlstate '02000';
|
||
declare exit handler for integer set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'integer condition for sqlstate '02000';
|
||
declare exit handler for integer set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare interval condition for sqlstate '02000';
|
||
declare exit handler for interval set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'interval condition for sqlstate '02000';
|
||
declare exit handler for interval set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare into condition for sqlstate '02000';
|
||
declare exit handler for into set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'into condition for sqlstate '02000';
|
||
declare exit handler for into set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare is condition for sqlstate '02000';
|
||
declare exit handler for is set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'is condition for sqlstate '02000';
|
||
declare exit handler for is set @var2 = 1;
|
||
EN' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare iterate condition for sqlstate '02000';
|
||
declare exit handler for iterate set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'iterate condition for sqlstate '02000';
|
||
declare exit handler for iterate set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare join condition for sqlstate '02000';
|
||
declare exit handler for join set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'join condition for sqlstate '02000';
|
||
declare exit handler for join set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare key condition for sqlstate '02000';
|
||
declare exit handler for key set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key condition for sqlstate '02000';
|
||
declare exit handler for key set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare keys condition for sqlstate '02000';
|
||
declare exit handler for keys set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'keys condition for sqlstate '02000';
|
||
declare exit handler for keys set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare kill condition for sqlstate '02000';
|
||
declare exit handler for kill set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'kill condition for sqlstate '02000';
|
||
declare exit handler for kill set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare leading condition for sqlstate '02000';
|
||
declare exit handler for leading set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'leading condition for sqlstate '02000';
|
||
declare exit handler for leading set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare leave condition for sqlstate '02000';
|
||
declare exit handler for leave set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'leave condition for sqlstate '02000';
|
||
declare exit handler for leave set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare left condition for sqlstate '02000';
|
||
declare exit handler for left set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'left condition for sqlstate '02000';
|
||
declare exit handler for left set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare like condition for sqlstate '02000';
|
||
declare exit handler for like set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'like condition for sqlstate '02000';
|
||
declare exit handler for like set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare limit condition for sqlstate '02000';
|
||
declare exit handler for limit set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit condition for sqlstate '02000';
|
||
declare exit handler for limit set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare lines condition for sqlstate '02000';
|
||
declare exit handler for lines set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lines condition for sqlstate '02000';
|
||
declare exit handler for lines set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare load condition for sqlstate '02000';
|
||
declare exit handler for load set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'load condition for sqlstate '02000';
|
||
declare exit handler for load set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare localtime condition for sqlstate '02000';
|
||
declare exit handler for localtime set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'localtime condition for sqlstate '02000';
|
||
declare exit handler for localtime set' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare localtimestamp condition for sqlstate '02000';
|
||
declare exit handler for localtimestamp set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'localtimestamp condition for sqlstate '02000';
|
||
declare exit handler for localtim' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare lock condition for sqlstate '02000';
|
||
declare exit handler for lock set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lock condition for sqlstate '02000';
|
||
declare exit handler for lock set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare long condition for sqlstate '02000';
|
||
declare exit handler for long set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'long condition for sqlstate '02000';
|
||
declare exit handler for long set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare longblob condition for sqlstate '02000';
|
||
declare exit handler for longblob set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longblob condition for sqlstate '02000';
|
||
declare exit handler for longblob set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare longtext condition for sqlstate '02000';
|
||
declare exit handler for longtext set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longtext condition for sqlstate '02000';
|
||
declare exit handler for longtext set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare loop condition for sqlstate '02000';
|
||
declare exit handler for loop set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'loop condition for sqlstate '02000';
|
||
declare exit handler for loop set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare low_priority condition for sqlstate '02000';
|
||
declare exit handler for low_priority set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'low_priority condition for sqlstate '02000';
|
||
declare exit handler for low_priori' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare match condition for sqlstate '02000';
|
||
declare exit handler for match set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'match condition for sqlstate '02000';
|
||
declare exit handler for match set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare mediumblob condition for sqlstate '02000';
|
||
declare exit handler for mediumblob set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumblob condition for sqlstate '02000';
|
||
declare exit handler for mediumblob s' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare mediumint condition for sqlstate '02000';
|
||
declare exit handler for mediumint set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint condition for sqlstate '02000';
|
||
declare exit handler for mediumint set' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare mediumtext condition for sqlstate '02000';
|
||
declare exit handler for mediumtext set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumtext condition for sqlstate '02000';
|
||
declare exit handler for mediumtext s' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare middleint condition for sqlstate '02000';
|
||
declare exit handler for middleint set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'middleint condition for sqlstate '02000';
|
||
declare exit handler for middleint set' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare minute_microsecond condition for sqlstate '02000';
|
||
declare exit handler for minute_microsecond set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'minute_microsecond condition for sqlstate '02000';
|
||
declare exit handler for minu' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare minute_second condition for sqlstate '02000';
|
||
declare exit handler for minute_second set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'minute_second condition for sqlstate '02000';
|
||
declare exit handler for minute_se' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare mod condition for sqlstate '02000';
|
||
declare exit handler for mod set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mod condition for sqlstate '02000';
|
||
declare exit handler for mod set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare modifies condition for sqlstate '02000';
|
||
declare exit handler for modifies set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'modifies condition for sqlstate '02000';
|
||
declare exit handler for modifies set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare natural condition for sqlstate '02000';
|
||
declare exit handler for natural set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'natural condition for sqlstate '02000';
|
||
declare exit handler for natural set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare not condition for sqlstate '02000';
|
||
declare exit handler for not set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'not condition for sqlstate '02000';
|
||
declare exit handler for not set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare no_write_to_binlog condition for sqlstate '02000';
|
||
declare exit handler for no_write_to_binlog set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'no_write_to_binlog condition for sqlstate '02000';
|
||
declare exit handler for no_w' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare null condition for sqlstate '02000';
|
||
declare exit handler for null set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'null condition for sqlstate '02000';
|
||
declare exit handler for null set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric condition for sqlstate '02000';
|
||
declare exit handler for numeric set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric condition for sqlstate '02000';
|
||
declare exit handler for numeric set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare on condition for sqlstate '02000';
|
||
declare exit handler for on set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'on condition for sqlstate '02000';
|
||
declare exit handler for on set @var2 = 1;
|
||
EN' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare optimize condition for sqlstate '02000';
|
||
declare exit handler for optimize set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'optimize condition for sqlstate '02000';
|
||
declare exit handler for optimize set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare option condition for sqlstate '02000';
|
||
declare exit handler for option set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option condition for sqlstate '02000';
|
||
declare exit handler for option set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare optionally condition for sqlstate '02000';
|
||
declare exit handler for optionally set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'optionally condition for sqlstate '02000';
|
||
declare exit handler for optionally s' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare or condition for sqlstate '02000';
|
||
declare exit handler for or set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'or condition for sqlstate '02000';
|
||
declare exit handler for or set @var2 = 1;
|
||
EN' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare order condition for sqlstate '02000';
|
||
declare exit handler for order set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order condition for sqlstate '02000';
|
||
declare exit handler for order set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare out condition for sqlstate '02000';
|
||
declare exit handler for out set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'out condition for sqlstate '02000';
|
||
declare exit handler for out set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare outer condition for sqlstate '02000';
|
||
declare exit handler for outer set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'outer condition for sqlstate '02000';
|
||
declare exit handler for outer set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare outfile condition for sqlstate '02000';
|
||
declare exit handler for outfile set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'outfile condition for sqlstate '02000';
|
||
declare exit handler for outfile set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare precision condition for sqlstate '02000';
|
||
declare exit handler for precision set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'precision condition for sqlstate '02000';
|
||
declare exit handler for precision set' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare primary condition for sqlstate '02000';
|
||
declare exit handler for primary set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'primary condition for sqlstate '02000';
|
||
declare exit handler for primary set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare privileges condition for sqlstate '02000';
|
||
declare exit handler for privileges set @var2 = 1;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare procedure condition for sqlstate '02000';
|
||
declare exit handler for procedure set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'procedure condition for sqlstate '02000';
|
||
declare exit handler for procedure set' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare purge condition for sqlstate '02000';
|
||
declare exit handler for purge set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'purge condition for sqlstate '02000';
|
||
declare exit handler for purge set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare read condition for sqlstate '02000';
|
||
declare exit handler for read set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'read condition for sqlstate '02000';
|
||
declare exit handler for read set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare reads condition for sqlstate '02000';
|
||
declare exit handler for reads set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'reads condition for sqlstate '02000';
|
||
declare exit handler for reads set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare real condition for sqlstate '02000';
|
||
declare exit handler for real set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real condition for sqlstate '02000';
|
||
declare exit handler for real set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare references condition for sqlstate '02000';
|
||
declare exit handler for references set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'references condition for sqlstate '02000';
|
||
declare exit handler for references s' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare regexp condition for sqlstate '02000';
|
||
declare exit handler for regexp set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'regexp condition for sqlstate '02000';
|
||
declare exit handler for regexp set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare rename condition for sqlstate '02000';
|
||
declare exit handler for rename set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rename condition for sqlstate '02000';
|
||
declare exit handler for rename set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare repeat condition for sqlstate '02000';
|
||
declare exit handler for repeat set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'repeat condition for sqlstate '02000';
|
||
declare exit handler for repeat set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare replace condition for sqlstate '02000';
|
||
declare exit handler for replace set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'replace condition for sqlstate '02000';
|
||
declare exit handler for replace set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare require condition for sqlstate '02000';
|
||
declare exit handler for require set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'require condition for sqlstate '02000';
|
||
declare exit handler for require set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare restrict condition for sqlstate '02000';
|
||
declare exit handler for restrict set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'restrict condition for sqlstate '02000';
|
||
declare exit handler for restrict set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare return condition for sqlstate '02000';
|
||
declare exit handler for return set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'return condition for sqlstate '02000';
|
||
declare exit handler for return set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare revoke condition for sqlstate '02000';
|
||
declare exit handler for revoke set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'revoke condition for sqlstate '02000';
|
||
declare exit handler for revoke set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare right condition for sqlstate '02000';
|
||
declare exit handler for right set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'right condition for sqlstate '02000';
|
||
declare exit handler for right set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare rlike condition for sqlstate '02000';
|
||
declare exit handler for rlike set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rlike condition for sqlstate '02000';
|
||
declare exit handler for rlike set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare schema condition for sqlstate '02000';
|
||
declare exit handler for schema set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'schema condition for sqlstate '02000';
|
||
declare exit handler for schema set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare schemas condition for sqlstate '02000';
|
||
declare exit handler for schemas set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'schemas condition for sqlstate '02000';
|
||
declare exit handler for schemas set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare second_microsecond condition for sqlstate '02000';
|
||
declare exit handler for second_microsecond set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'second_microsecond condition for sqlstate '02000';
|
||
declare exit handler for seco' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare SELECT condition for sqlstate '02000';
|
||
declare exit handler for SELECT set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT condition for sqlstate '02000';
|
||
declare exit handler for SELECT set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sensitive condition for sqlstate '02000';
|
||
declare exit handler for sensitive set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sensitive condition for sqlstate '02000';
|
||
declare exit handler for sensitive set' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare separator condition for sqlstate '02000';
|
||
declare exit handler for separator set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'separator condition for sqlstate '02000';
|
||
declare exit handler for separator set' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare set condition for sqlstate '02000';
|
||
declare exit handler for set set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'set condition for sqlstate '02000';
|
||
declare exit handler for set set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare show condition for sqlstate '02000';
|
||
declare exit handler for show set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show condition for sqlstate '02000';
|
||
declare exit handler for show set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare smallint condition for sqlstate '02000';
|
||
declare exit handler for smallint set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint condition for sqlstate '02000';
|
||
declare exit handler for smallint set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare soname condition for sqlstate '02000';
|
||
declare exit handler for soname set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'soname condition for sqlstate '02000';
|
||
declare exit handler for soname set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare spatial condition for sqlstate '02000';
|
||
declare exit handler for spatial set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'spatial condition for sqlstate '02000';
|
||
declare exit handler for spatial set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare specific condition for sqlstate '02000';
|
||
declare exit handler for specific set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'specific condition for sqlstate '02000';
|
||
declare exit handler for specific set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sql condition for sqlstate '02000';
|
||
declare exit handler for sql set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql condition for sqlstate '02000';
|
||
declare exit handler for sql set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sqlexception condition for sqlstate '02000';
|
||
declare exit handler for sqlexception set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sqlexception condition for sqlstate '02000';
|
||
declare exit handler for sqlexcepti' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sqlstate condition for sqlstate '02000';
|
||
declare exit handler for sqlstate set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sqlstate condition for sqlstate '02000';
|
||
declare exit handler for sqlstate set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sqlwarning condition for sqlstate '02000';
|
||
declare exit handler for sqlwarning set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sqlwarning condition for sqlstate '02000';
|
||
declare exit handler for sqlwarning s' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sql_big_result condition for sqlstate '02000';
|
||
declare exit handler for sql_big_result set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql_big_result condition for sqlstate '02000';
|
||
declare exit handler for sql_big_' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sql_calc_found_rows condition for sqlstate '02000';
|
||
declare exit handler for sql_calc_found_rows set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql_calc_found_rows condition for sqlstate '02000';
|
||
declare exit handler for sql' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sql_small_result condition for sqlstate '02000';
|
||
declare exit handler for sql_small_result set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql_small_result condition for sqlstate '02000';
|
||
declare exit handler for sql_sm' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare ssl condition for sqlstate '02000';
|
||
declare exit handler for ssl set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ssl condition for sqlstate '02000';
|
||
declare exit handler for ssl set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare starting condition for sqlstate '02000';
|
||
declare exit handler for starting set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'starting condition for sqlstate '02000';
|
||
declare exit handler for starting set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare straight_join condition for sqlstate '02000';
|
||
declare exit handler for straight_join set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'straight_join condition for sqlstate '02000';
|
||
declare exit handler for straight_' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare table condition for sqlstate '02000';
|
||
declare exit handler for table set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table condition for sqlstate '02000';
|
||
declare exit handler for table set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare tables condition for sqlstate '02000';
|
||
declare exit handler for tables set @var2 = 1;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare terminated condition for sqlstate '02000';
|
||
declare exit handler for terminated set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'terminated condition for sqlstate '02000';
|
||
declare exit handler for terminated s' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare then condition for sqlstate '02000';
|
||
declare exit handler for then set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'then condition for sqlstate '02000';
|
||
declare exit handler for then set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare tinyblob condition for sqlstate '02000';
|
||
declare exit handler for tinyblob set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyblob condition for sqlstate '02000';
|
||
declare exit handler for tinyblob set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare tinyint condition for sqlstate '02000';
|
||
declare exit handler for tinyint set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint condition for sqlstate '02000';
|
||
declare exit handler for tinyint set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare tinytext condition for sqlstate '02000';
|
||
declare exit handler for tinytext set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinytext condition for sqlstate '02000';
|
||
declare exit handler for tinytext set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare to condition for sqlstate '02000';
|
||
declare exit handler for to set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'to condition for sqlstate '02000';
|
||
declare exit handler for to set @var2 = 1;
|
||
EN' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare trailing condition for sqlstate '02000';
|
||
declare exit handler for trailing set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'trailing condition for sqlstate '02000';
|
||
declare exit handler for trailing set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare trigger condition for sqlstate '02000';
|
||
declare exit handler for trigger set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'trigger condition for sqlstate '02000';
|
||
declare exit handler for trigger set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare true condition for sqlstate '02000';
|
||
declare exit handler for true set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'true condition for sqlstate '02000';
|
||
declare exit handler for true set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare undo condition for sqlstate '02000';
|
||
declare exit handler for undo set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'undo condition for sqlstate '02000';
|
||
declare exit handler for undo set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare union condition for sqlstate '02000';
|
||
declare exit handler for union set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'union condition for sqlstate '02000';
|
||
declare exit handler for union set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare unique condition for sqlstate '02000';
|
||
declare exit handler for unique set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unique condition for sqlstate '02000';
|
||
declare exit handler for unique set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare unlock condition for sqlstate '02000';
|
||
declare exit handler for unlock set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unlock condition for sqlstate '02000';
|
||
declare exit handler for unlock set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare unsigned condition for sqlstate '02000';
|
||
declare exit handler for unsigned set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unsigned condition for sqlstate '02000';
|
||
declare exit handler for unsigned set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare update condition for sqlstate '02000';
|
||
declare exit handler for update set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'update condition for sqlstate '02000';
|
||
declare exit handler for update set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare usage condition for sqlstate '02000';
|
||
declare exit handler for usage set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'usage condition for sqlstate '02000';
|
||
declare exit handler for usage set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare USE condition for sqlstate '02000';
|
||
declare exit handler for USE set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'USE condition for sqlstate '02000';
|
||
declare exit handler for USE set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare using condition for sqlstate '02000';
|
||
declare exit handler for using set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'using condition for sqlstate '02000';
|
||
declare exit handler for using set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare utc_date condition for sqlstate '02000';
|
||
declare exit handler for utc_date set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'utc_date condition for sqlstate '02000';
|
||
declare exit handler for utc_date set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare utc_time condition for sqlstate '02000';
|
||
declare exit handler for utc_time set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'utc_time condition for sqlstate '02000';
|
||
declare exit handler for utc_time set @' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare utc_timestamp condition for sqlstate '02000';
|
||
declare exit handler for utc_timestamp set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'utc_timestamp condition for sqlstate '02000';
|
||
declare exit handler for utc_times' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare values condition for sqlstate '02000';
|
||
declare exit handler for values set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'values condition for sqlstate '02000';
|
||
declare exit handler for values set @var2' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare varbinary condition for sqlstate '02000';
|
||
declare exit handler for varbinary set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varbinary condition for sqlstate '02000';
|
||
declare exit handler for varbinary set' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare varchar condition for sqlstate '02000';
|
||
declare exit handler for varchar set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varchar condition for sqlstate '02000';
|
||
declare exit handler for varchar set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare varcharacter condition for sqlstate '02000';
|
||
declare exit handler for varcharacter set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varcharacter condition for sqlstate '02000';
|
||
declare exit handler for varcharact' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare varying condition for sqlstate '02000';
|
||
declare exit handler for varying set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varying condition for sqlstate '02000';
|
||
declare exit handler for varying set @va' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare when condition for sqlstate '02000';
|
||
declare exit handler for when set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'when condition for sqlstate '02000';
|
||
declare exit handler for when set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare where condition for sqlstate '02000';
|
||
declare exit handler for where set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where condition for sqlstate '02000';
|
||
declare exit handler for where set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare while condition for sqlstate '02000';
|
||
declare exit handler for while set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'while condition for sqlstate '02000';
|
||
declare exit handler for while set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare with condition for sqlstate '02000';
|
||
declare exit handler for with set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'with condition for sqlstate '02000';
|
||
declare exit handler for with set @var2 = 1' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare write condition for sqlstate '02000';
|
||
declare exit handler for write set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'write condition for sqlstate '02000';
|
||
declare exit handler for write set @var2 =' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare xor condition for sqlstate '02000';
|
||
declare exit handler for xor set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'xor condition for sqlstate '02000';
|
||
declare exit handler for xor set @var2 = 1;
|
||
' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare year_month condition for sqlstate '02000';
|
||
declare exit handler for year_month set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'year_month condition for sqlstate '02000';
|
||
declare exit handler for year_month s' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare zerofill condition for sqlstate '02000';
|
||
declare exit handler for zerofill set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'zerofill condition for sqlstate '02000';
|
||
declare exit handler for zerofill set @' at line 3
|
||
|
||
Testcase :
|
||
----------
|
||
Ensure that every possible type of handler may be declared for
|
||
a stored procedure (continue- handler_type ).
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare continue handler for sqlstate '23000' set @x2 = 1;
|
||
set @x = 1;
|
||
insert into t2(f1) values (1);
|
||
set @x = 2;
|
||
insert into t2(f1) values (1);
|
||
set @x = 3;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE sp1;
|
||
DROP PROCEDURE IF EXISTS handler1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE handler1 does not exist
|
||
CREATE PROCEDURE handler1()
|
||
BEGIN
|
||
declare undo handler for sqlstate '23000' set @x2 = 1;
|
||
set @x = 1;
|
||
insert into t values (1);
|
||
set @x = 2;
|
||
insert into t values (1);
|
||
set @x = 3;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'undo handler for sqlstate '23000' set @x2 = 1;
|
||
set @x = 1;
|
||
insert into t values ' at line 3
|
||
DROP PROCEDURE IF EXISTS handler1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE handler1 does not exist
|
||
CREATE PROCEDURE handler1()
|
||
BEGIN
|
||
declare continueinv handler for sqlstate '2300' set @x2 = 1;
|
||
set @x = 1;
|
||
insert into t values (1);
|
||
set @x = 2;
|
||
insert into t values (1);
|
||
set @x = 3;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'handler for sqlstate '2300' set @x2 = 1;
|
||
set @x = 1;
|
||
insert into t values (1);
|
||
s' at line 3
|
||
DROP PROCEDURE IF EXISTS handler1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE handler1 does not exist
|
||
CREATE PROCEDURE handler1()
|
||
BEGIN
|
||
declare undoinv handler for sqlstate '2300' set @x2 = 1;
|
||
set @x = 1;
|
||
insert into t values (1);
|
||
set @x = 2;
|
||
insert into t values (1);
|
||
set @x = 3;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'handler for sqlstate '2300' set @x2 = 1;
|
||
set @x = 1;
|
||
insert into t values (1);
|
||
s' at line 3
|
||
DROP PROCEDURE IF EXISTS handler1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE handler1 does not exist
|
||
CREATE PROCEDURE handler1 ()
|
||
BEGIN
|
||
declare exitinv handler for sqlstate '2300' set @x2 = 1;
|
||
set @x = 1;
|
||
insert into t values (1);
|
||
set @x = 2;
|
||
insert into t values (1);
|
||
set @x = 3;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'handler for sqlstate '2300' set @x2 = 1;
|
||
set @x = 1;
|
||
insert into t values (1);
|
||
s' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare add handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'add handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare all handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'all handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare alter handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'alter handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare analyze handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'analyze handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare and handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare as handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare asc handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'asc handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare asensitive handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'asensitive handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare before handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'before handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare between handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'between handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare bigint handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare binary handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'binary handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare blob handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'blob handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare both handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'both handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare by handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'by handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare CALL handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CALL handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare cascade handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cascade handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare case handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'case handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare change handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'change handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare char handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'char handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare character handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'character handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare check handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'check handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare collate handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'collate handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare column handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'column handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare columns handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare condition handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare connection handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'connection handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare constraint handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'constraint handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare convert handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'convert handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare create handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'create handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare cross handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cross handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare current_date handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_date handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare current_time handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_time handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare current_timestamp handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_timestamp handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare current_user handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_user handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare cursor handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'cursor handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare database handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'database handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare databases handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'databases handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare day_hour handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_hour handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare day_microsecond handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_microsecond handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare day_minute handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_minute handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare day_second handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'day_second handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare dec handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dec handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare decimal handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'decimal handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare declare handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'declare handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare default handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'default handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare delayed handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delayed handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare delete handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delete handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare desc handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare describe handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'describe handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare deterministic handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'deterministic handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare distinct handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'distinct handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare distinctrow handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'distinctrow handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare div handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'div handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare double handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'double handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare drop handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'drop handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare dual handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dual handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare each handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'each handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare else handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'else handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare elseif handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'elseif handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare enclosed handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'enclosed handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare escaped handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'escaped handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare exists handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'exists handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare explain handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'explain handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare false handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'false handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare fetch handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'fetch handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare fields handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare float handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'float handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare for handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'for handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare force handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'force handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare foreign handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'foreign handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare found handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare from handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare fulltext handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'fulltext handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare goto handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare grant handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'grant handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare group handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare having handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'having handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare high_priority handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'high_priority handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare hour_microsecond handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hour_microsecond handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare hour_minute handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hour_minute handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare hour_second handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hour_second handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare if handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'if handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare ignore handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ignore handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare in handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'in handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare index handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare infile handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'infile handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare inner handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'inner handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare inout handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'inout handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare insensitive handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insensitive handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare insert handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'insert handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare int handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare integer handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'integer handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare interval handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'interval handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare into handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'into handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare is handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'is handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare iterate handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'iterate handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare join handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'join handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare key handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare keys handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'keys handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare kill handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'kill handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare leading handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'leading handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare leave handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'leave handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare left handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'left handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare like handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'like handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare limit handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare lines handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lines handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare load handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'load handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare localtime handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'localtime handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare localtimestamp handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'localtimestamp handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare lock handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'lock handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare long handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'long handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare longblob handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longblob handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare longtext handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'longtext handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare loop handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'loop handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare low_priority handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'low_priority handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare match handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'match handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare mediumblob handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumblob handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare mediumint handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumint handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare mediumtext handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mediumtext handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare middleint handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'middleint handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare minute_microsecond handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'minute_microsecond handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare minute_second handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'minute_second handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare mod handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mod handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare modifies handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'modifies handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare natural handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'natural handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare not handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'not handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare no_write_to_binlog handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'no_write_to_binlog handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare null handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'null handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare numeric handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'numeric handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare on handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'on handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare optimize handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'optimize handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare option handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare optionally handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'optionally handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare or handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'or handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare order handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare out handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'out handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare outer handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'outer handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare outfile handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'outfile handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare precision handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'precision handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare primary handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'primary handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare privileges handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare procedure handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'procedure handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare purge handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'purge handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare read handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'read handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare reads handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'reads handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare real handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'real handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare references handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'references handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare regexp handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'regexp handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare rename handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rename handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare repeat handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'repeat handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare replace handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'replace handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare require handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'require handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare restrict handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'restrict handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare return handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'return handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare revoke handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'revoke handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare right handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'right handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare rlike handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rlike handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare schema handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'schema handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare schemas handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'schemas handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare second_microsecond handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'second_microsecond handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare SELECT handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sensitive handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sensitive handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare separator handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'separator handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare set handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'set handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare show handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare smallint handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'smallint handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare soname handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'soname handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare spatial handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'spatial handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare specific handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'specific handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sql handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sqlexception handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sqlexception handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sqlstate handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sqlstate handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sqlwarning handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sqlwarning handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sql_big_result handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql_big_result handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sql_calc_found_rows handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql_calc_found_rows handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare sql_small_result handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'sql_small_result handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare ssl handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ssl handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare starting handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'starting handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare straight_join handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'straight_join handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare table handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'table handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare tables handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare terminated handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'terminated handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare then handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'then handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare tinyblob handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyblob handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare tinyint handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinyint handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare tinytext handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tinytext handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare to handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'to handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare trailing handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'trailing handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare trigger handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'trigger handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare true handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'true handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare undo handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'undo handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare union handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'union handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare unique handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unique handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare unlock handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unlock handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare unsigned handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unsigned handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare update handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'update handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare usage handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'usage handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare USE handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'USE handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare using handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'using handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare utc_date handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'utc_date handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare utc_time handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'utc_time handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare utc_timestamp handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'utc_timestamp handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare values handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'values handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare varbinary handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varbinary handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare varchar handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varchar handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare varcharacter handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varcharacter handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare varying handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varying handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare when handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'when handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare where handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare while handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'while handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare with handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'with handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare write handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'write handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare xor handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'xor handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare year_month handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'year_month handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare zerofill handler for sqlstate '02000' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'zerofill handler for sqlstate '02000' set @var2 = 1;
|
||
END' at line 3
|
||
USE db_storedproc;
|
||
|
||
Testcase 4.2.26:
|
||
--------------------------------------------------------------------------------
|
||
set @v1='0';
|
||
set @v2='0';
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x char;
|
||
declare y char;
|
||
declare cond1 condition for sqlstate '42000';
|
||
declare cur1 cursor for SELECT f1 from t2 limit 1;
|
||
declare continue handler for cond1 set @x = 4;
|
||
set @x = '1';
|
||
set @y = '2';
|
||
BEGIN
|
||
declare x char;
|
||
declare y char;
|
||
declare cur1 cursor for SELECT f1 from t2 limit 2, 1;
|
||
declare continue handler for sqlstate '42000' set @x = 3;
|
||
open cur1;
|
||
fetch cur1 into y;
|
||
close cur1;
|
||
CALL nonsexist();
|
||
SELECT x, y, @x;
|
||
END;
|
||
open cur1;
|
||
fetch cur1 into y;
|
||
close cur1;
|
||
CALL nonsexist();
|
||
set @v1 = @x;
|
||
set @v2 = y;
|
||
END//
|
||
CALL sp1();
|
||
x y @x
|
||
NULL abaa 3
|
||
SELECT @v1, @v2;
|
||
@v1 @v2
|
||
4 a`
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.28:
|
||
--------------------------------------------------------------------------------
|
||
set @x=0;
|
||
set @y=0;
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare continue handler for sqlstate '42000' set @x2 = 1;
|
||
set session sort_buffer_size = 10 * 1024 * 1024;
|
||
SELECT @@sort_buffer_size;
|
||
set @x = 4;
|
||
set @y = 3;
|
||
set global sort_buffer_size = 2 * 1024 * 1024;
|
||
SELECT @@sort_buffer_size;
|
||
set @@sort_buffer_size = 10 * 1024 * 1024;
|
||
SELECT @@sort_buffer_size;
|
||
END//
|
||
CALL sp1();
|
||
@@sort_buffer_size
|
||
10485760
|
||
@@sort_buffer_size
|
||
10485760
|
||
@@sort_buffer_size
|
||
10485760
|
||
SELECT @x, @y;
|
||
@x @y
|
||
4 3
|
||
|
||
Testcase 4.2.29:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare xx char default 'x';
|
||
declare xy char default 'y';
|
||
declare xz char default 'z';
|
||
set @xx = xx, @xy = xy;
|
||
set @xz = xz;
|
||
SELECT @xx, @xy, @xz;
|
||
END//
|
||
CALL sp1();
|
||
@xx @xy @xz
|
||
x y z
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.30:
|
||
--------------------------------------------------------------------------------
|
||
set @xx=0;
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare xx int;
|
||
set xx = 'asd';
|
||
set @xx = xx;
|
||
SELECT @xx;
|
||
END//
|
||
CALL sp1();
|
||
@xx
|
||
0
|
||
Warnings:
|
||
Warning 1292 Truncated incorrect INTEGER value: 'asd'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare xx int;
|
||
set xx = 5;
|
||
set @xx = xx;
|
||
SELECT @xx;
|
||
END//
|
||
CALL sp1();
|
||
@xx
|
||
5
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.31 - a:
|
||
--------------------------------------------------------------------------------
|
||
set @xx=0;
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare xx char;
|
||
set xx = 'temp';
|
||
set @xx = xx;
|
||
END//
|
||
CALL sp1();
|
||
SELECT @xx;
|
||
@xx
|
||
temp
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.31 - b:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare xx float;
|
||
set xx = 'asd';
|
||
SELECT xx;
|
||
END//
|
||
CALL sp1();
|
||
xx
|
||
0
|
||
Warnings:
|
||
Warning 1292 Truncated incorrect DOUBLE value: 'asd'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare xx float;
|
||
set xx = 1.6;
|
||
SELECT xx;
|
||
END//
|
||
CALL sp1();
|
||
xx
|
||
1.6
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.31 - c:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare xx datetime;
|
||
set xx = 'asd';
|
||
SELECT xx;
|
||
END//
|
||
CALL sp1();
|
||
xx
|
||
asd
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare xx datetime;
|
||
set xx = '2006-06-06 01:01:01';
|
||
SELECT xx;
|
||
END//
|
||
CALL sp1();
|
||
xx
|
||
2006-06-06 01:01:01
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.31 - d:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare xx varchar(20);
|
||
set xx = "abcdefghijk";
|
||
SELECT xx;
|
||
END//
|
||
CALL sp1();
|
||
xx
|
||
abcdefghijk
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.31 - e:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare xx tinyint;
|
||
set xx = 'asd';
|
||
SELECT xx;
|
||
END//
|
||
CALL sp1();
|
||
xx
|
||
0
|
||
Warnings:
|
||
Warning 1292 Truncated incorrect INTEGER value: 'asd'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare xx tinyint;
|
||
set xx = -125;
|
||
SELECT xx;
|
||
END//
|
||
CALL sp1();
|
||
xx
|
||
-125
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.37:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare x integer; declare y integer;
|
||
SELECT sal, f2 into x, y from t2 limit 1;
|
||
set @x=x; set @y=y;
|
||
END//
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x char ascii;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x tinytext;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x text;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x mediumtext;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x longtext;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x tinyblob;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x blob;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x mediumblob;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x longblob;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x binary;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x tinyint;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x tinyint unsigned;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x tinyint zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x tinyint unsigned zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x smallint;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x smallint unsigned;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x smallint zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x smallint unsigned zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x mediumint;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x mediumint unsigned;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x mediumint zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x mediumint unsigned zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x int;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x int unsigned;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x int zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x int unsigned zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x bigint;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x bigint unsigned;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x bigint zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x bigint unsigned zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x decimal;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
Warnings:
|
||
Error 1366 Incorrect decimal value: '' for column '' at row -1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x decimal unsigned;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
Warnings:
|
||
Error 1366 Incorrect decimal value: '' for column '' at row -1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x decimal zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
Warnings:
|
||
Error 1366 Incorrect decimal value: '' for column '' at row -1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x decimal unsigned zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
Warnings:
|
||
Error 1366 Incorrect decimal value: '' for column '' at row -1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x numeric;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
Warnings:
|
||
Error 1366 Incorrect decimal value: '' for column '' at row -1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x numeric unsigned;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
Warnings:
|
||
Error 1366 Incorrect decimal value: '' for column '' at row -1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x numeric zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
Warnings:
|
||
Error 1366 Incorrect decimal value: '' for column '' at row -1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x numeric unsigned zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
Warnings:
|
||
Error 1366 Incorrect decimal value: '' for column '' at row -1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x real;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x real unsigned;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x real zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x real unsigned zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x float;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x float unsigned;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x float zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x float unsigned zerofill;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x date;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x time;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x datetime;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x timestamp;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x year;
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x year(3);
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x year(4);
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x enum("1enum", "2enum");
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare x set("1set", "2set");
|
||
SELECT f1 into x from t2 limit 1;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.38:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare notable condition for sqlstate '42S02';
|
||
declare continue handler for notable set @x2=1;
|
||
set @x = 1;
|
||
insert into t2(f1) values (1);
|
||
set @x = 2;
|
||
insert into t2(f1) values (1);
|
||
set @x = 3;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.39:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate '42000';
|
||
declare cond1 condition for sqlstate '23000';
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
insert into tnull values(1);
|
||
END//
|
||
ERROR 42000: Duplicate condition: cond1
|
||
|
||
Testcase 4.2.41:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate '1';
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
insert into tnull values( 1);
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: '1'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate '12';
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
insert into tnull values( 1);
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: '12'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate '123';
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
insert into tnull values( 1);
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: '123'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate '1234';
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
insert into tnull values( 1);
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: '1234'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate '123456';
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
insert into tnull values( 1);
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: '123456'
|
||
|
||
Testcase 4.2.42:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate 'abcdefghi';
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
insert into tnull values( 1);
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: 'abcdefghi'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate '42000test';
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
insert into tnull values( 1);
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: '42000test'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate '00000@#$%^&';
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
insert into tnull values( 1);
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: '00000@#$%^&'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate '123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890';
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
insert into tnull values( 1);
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: '123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate 'null';
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
insert into tnull values( 1);
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: 'null'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate ' ';
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
insert into tnull values( 1);
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: ' '
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate 1234567890;
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
insert into tnull values( 1);
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1234567890;
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
insert into tnull ' at line 3
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate '2005-03-03';
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
insert into tnull values( 1);
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: '2005-03-03'
|
||
|
||
Testcase 4.2.43:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare cond1 condition for sqlstate '00000';
|
||
declare continue handler for cond1 set @var2 = 1;
|
||
set @x=1;
|
||
SELECT @var2;
|
||
END//
|
||
CALL sp1();
|
||
@var2
|
||
NULL
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.45:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE handler1 ()
|
||
BEGIN
|
||
declare continue handler for sqlstate '23000' set @varr1 = 5;
|
||
declare continue handler for sqlstate '23000' set @varr3 = 7;
|
||
END//
|
||
ERROR 42000: Duplicate handler declared in the same block
|
||
DROP PROCEDURE IF EXISTS handler1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE handler1 does not exist
|
||
CREATE PROCEDURE handler1 ()
|
||
BEGIN
|
||
declare mycondition condition for sqlstate '23000';
|
||
declare continue handler for mycondition set @varr3 = 7;
|
||
declare continue handler for sqlstate '23000' set @varr3 = 7;
|
||
END//
|
||
ERROR 42000: Duplicate handler declared in the same block
|
||
|
||
Testcase 4.2.46:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare continue handler for sqlstate '1' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: '1'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare continue handler for sqlstate '12' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: '12'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare continue handler for sqlstate '123' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: '123'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare continue handler for sqlstate '1234' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: '1234'
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare continue handler for sqlstate '123456' set @var2 = 1;
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: '123456'
|
||
|
||
Testcase 4.2.47:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare continue handler for sqlstate '42s0200test' set @var2 = 1;
|
||
insert into tnull values( 1);
|
||
SELECT @var2;
|
||
END//
|
||
ERROR 42000: Bad SQLSTATE: '42s0200test'
|
||
|
||
Testcase 4.2.48:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare continue handler for sqlstate '00000' set @var2 = 1;
|
||
set @x=1;
|
||
SELECT @var2;
|
||
END//
|
||
CALL sp1();
|
||
@var2
|
||
NULL
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.52:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 20;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
|
||
declare cur1 cursor for SELECT f1, f2 from t2;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
BEGIN
|
||
open cur1;
|
||
set count = count - 1;
|
||
while count <> 0 do
|
||
fetch cur1 into newf1, newlf1, newf3, newsal;
|
||
set count = count - 1;
|
||
END while;
|
||
close cur1;
|
||
END;
|
||
END//
|
||
ERROR 42000: Duplicate cursor: cur1
|
||
|
||
Testcase 4.2.53:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 20;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare cur1 cursor for SELECT f1, lf1, f3, f4 into @w, @x, @y, @z from t2;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
BEGIN
|
||
open cur1;
|
||
set count = count - 1;
|
||
while count <> 0 do
|
||
fetch cur1 into newf1, newlf1, newf3, newsal;
|
||
set count = count - 1;
|
||
END while;
|
||
close cur1;
|
||
END;
|
||
END//
|
||
ERROR 42000: Cursor SELECT must not have INTO
|
||
|
||
Testcase 4.2.54:
|
||
--------------------------------------------------------------------------------
|
||
|
||
Testcase 4.2.55:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 20;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
BEGIN
|
||
open cur1;
|
||
set count = count - 1;
|
||
while count <> 0 do
|
||
fetch cur1 into newf1, newf2, newf4, newf3;
|
||
set count = count - 1;
|
||
END while;
|
||
close cur1;
|
||
END;
|
||
END//
|
||
ERROR 42000: Undefined CURSOR: cur1
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 0;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
BEGIN
|
||
open cur1;
|
||
BEGIN
|
||
open cur1;
|
||
set count = count - 1;
|
||
while count <> 0 do
|
||
fetch cur1 into newf1, newf2, newf3, newf4;
|
||
set count = count - 1;
|
||
END while;
|
||
END;
|
||
close cur1;
|
||
END;
|
||
END//
|
||
CALL sp1();
|
||
ERROR 24000: Cursor is already open
|
||
|
||
Testcase 4.2.56:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 20;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare cur1 cursor for SELECT f1, f2, f4, f5 from t2;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
BEGIN
|
||
open cur1;
|
||
open cur1;
|
||
set count = count - 1;
|
||
while count <> 0 do
|
||
fetch cur1 into newf1, newf2, newf4, newf3;
|
||
set count = count - 1;
|
||
END while;
|
||
close cur1;
|
||
END;
|
||
END//
|
||
CALL sp1();
|
||
ERROR 24000: Cursor is already open
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.57:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 20;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare cur1 cursor for SELECT f1, f2, f4, f5 from t2;
|
||
declare cur2 cursor for SELECT f1, f2 from t2;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
BEGIN
|
||
open cur2;
|
||
set count = count - 1;
|
||
while count <> 0 do
|
||
fetch cur1 into newf1, newf2, newf4, newf3;
|
||
set count = count - 1;
|
||
END while;
|
||
close cur1;
|
||
END;
|
||
END//
|
||
CALL sp1();
|
||
ERROR 24000: Cursor is not open
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.59:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 20;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 20, 10;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
BEGIN
|
||
set count = count - 1;
|
||
while count <> 0 do
|
||
fetch cur1 into newf1, newf2, newf4, newf3;
|
||
set count = count - 1;
|
||
END while;
|
||
open cur1;
|
||
close cur1;
|
||
END;
|
||
END//
|
||
CALL sp1();
|
||
ERROR 24000: Cursor is not open
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 0;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
open cur1;
|
||
BEGIN
|
||
declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
|
||
set count = count - 1;
|
||
while count <> 0 do
|
||
fetch cur1 into newf1, newf2, newf3, newf4;
|
||
set count = count - 1;
|
||
END while;
|
||
open cur1;
|
||
close cur1;
|
||
END;
|
||
close cur1;
|
||
END//
|
||
CALL sp1();
|
||
ERROR 24000: Cursor is not open
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.60:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 20;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 20, 10;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
BEGIN
|
||
open cur1;
|
||
close cur1;
|
||
set count = count - 1;
|
||
while count <> 0 do
|
||
fetch cur1 into newf1, newf2, newf4, newf3;
|
||
set count = count - 1;
|
||
END while;
|
||
END;
|
||
END//
|
||
CALL sp1();
|
||
ERROR 24000: Cursor is not open
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 0;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
open cur1;
|
||
close cur1;
|
||
BEGIN
|
||
declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
|
||
open cur1;
|
||
END;
|
||
fetch cur1 into newf1, newf2, newf3, newf4;
|
||
END//
|
||
CALL sp1();
|
||
ERROR 24000: Cursor is not open
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.62:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 20;
|
||
declare newf2 char(20);
|
||
declare newf1 date;
|
||
declare cur1 cursor for SELECT f1, f3 from t2 limit 20, 10;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
BEGIN
|
||
open cur1;
|
||
set count = count - 1;
|
||
while count <> 0 do
|
||
fetch cur1 into newf1, newf2;
|
||
set @x = newf1;
|
||
set @y = newf2;
|
||
SELECT @x, @y;
|
||
set count = count - 1;
|
||
END while;
|
||
close cur1;
|
||
END;
|
||
END//
|
||
CALL sp1();
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
@x @y
|
||
NULL NULL
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.63:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1()
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 20;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 20, 10;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
BEGIN
|
||
close cur1;
|
||
open cur1;
|
||
set count = count - 1;
|
||
while count <> 0 do
|
||
fetch cur1 into newf1, newf2, newf4, newf3;
|
||
set count = count - 1;
|
||
END while;
|
||
close cur1;
|
||
END;
|
||
END//
|
||
CALL sp1();
|
||
ERROR 24000: Cursor is not open
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 0;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
BEGIN
|
||
declare cur1 cursor for SELECT f1, f2, f3, f4 from t2;
|
||
open cur1;
|
||
END;
|
||
close cur1;
|
||
END//
|
||
CALL sp1();
|
||
ERROR 24000: Cursor is not open
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.64:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 20;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 20, 10;
|
||
BEGIN
|
||
open cur1;
|
||
start transaction;
|
||
fetch cur1 into newf1, newf2, newf4, newf3;
|
||
commit;
|
||
fetch cur1 into newf1, newf2, newf4, newf3;
|
||
END;
|
||
END//
|
||
CALL sp1();
|
||
ERROR 02000: No data to FETCH
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.65:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 20;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 20, 10;
|
||
BEGIN
|
||
open cur1;
|
||
fetch cur1 into newf1, newf2, newf4, newf3;
|
||
rollback;
|
||
fetch cur1 into newf1, newf2, newf4, newf3;
|
||
commit;
|
||
END;
|
||
END//
|
||
CALL sp1();
|
||
ERROR 02000: No data to FETCH
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.66:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 20;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 20, 10;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
BEGIN
|
||
open cur1;
|
||
set count = count - 1;
|
||
while count <> 0 do
|
||
fetch cur1 into newf1, newf2, newf4, newf3;
|
||
set count = count - 1;
|
||
END while;
|
||
close cur1;
|
||
fetch cur1 into newf1, newf2, newf4, newf3;
|
||
END;
|
||
END//
|
||
CALL sp1();
|
||
ERROR 24000: Cursor is not open
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.67:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 20;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 20, 10;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
BEGIN
|
||
open cur1;
|
||
set count = count - 1;
|
||
while count <> 0 do
|
||
fetch cur1 into newf1, newf2, newf4, newf3;
|
||
set count = count - 1;
|
||
END while;
|
||
END;
|
||
END//
|
||
CALL sp1();
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.2.70:
|
||
--------------------------------------------------------------------------------
|
||
create table temp1( f1 char(20), f2 char(20), f3 int, f4 char(20) );
|
||
create table temp2( f1 char(20), f2 char(20), f3 int, f4 char(20) );
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
Warnings:
|
||
Note 1305 PROCEDURE sp1 does not exist
|
||
CREATE PROCEDURE sp1( )
|
||
BEGIN
|
||
declare done int default 0;
|
||
declare count integer default 20;
|
||
declare newf1 char(20);
|
||
declare newf2 char(20);
|
||
declare newf3 char(20);
|
||
declare newf4 integer;
|
||
declare newf21 char(20);
|
||
declare newf22 char(20);
|
||
declare newf23 char(20);
|
||
declare newf24 integer;
|
||
declare cur1 cursor for SELECT f1, f2, f4, f5 from t2 limit 7, 1;
|
||
declare cur2 cursor for SELECT f1, f2, f4, f5 from t2 limit 15, 1;
|
||
declare continue handler for sqlstate '02000' set done = 1;
|
||
open cur1;
|
||
BEGIN
|
||
set count = 10;
|
||
BEGIN
|
||
open cur2;
|
||
while count <> 0 do
|
||
fetch cur1 into newf1, newf2, newf4, newf3;
|
||
set count = count - 1;
|
||
END while;
|
||
END;
|
||
insert into temp1 values(newf1, newf2, newf4, newf3);
|
||
close cur1;
|
||
END;
|
||
BEGIN
|
||
while count <> 0 do
|
||
fetch cur2 into newf21, newf22, newf24, newf23;
|
||
set count = count - 1;
|
||
END while;
|
||
END;
|
||
insert into temp2 values(newf21, newf22, newf24, newf23);
|
||
close cur2;
|
||
END//
|
||
CALL sp1();
|
||
SELECT * from temp1;
|
||
f1 f2 f3 f4
|
||
agaaaaaaa agaaaaaaa -4993 agaaaaaaa
|
||
SELECT * from temp2;
|
||
f1 f2 f3 f4
|
||
NULL NULL NULL NULL
|
||
DROP PROCEDURE sp1;
|
||
drop table temp1;
|
||
drop table temp2;
|
||
|
||
Section 3.1.3 - Syntax checks for the stored procedure-specific flow control statements
|
||
. IF, CASE, LOOP, LEAVE, ITERATE, REPEAT, WHILE:
|
||
--------------------------------------------------------------------------------
|
||
USE db_storedproc;
|
||
|
||
Testcase 4.3.1:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
drop table IF EXISTS res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
CREATE TABLE res_t3_itisalongname_1381742_itsaverylongname_1381742(
|
||
middleinitial CHAR,
|
||
lastname VARCHAR(50),
|
||
age_averylongfieldname_averylongname_1234569 int,
|
||
COMMENT TEXT) ENGINE=ndb;
|
||
INSERT INTO res_t3_itisalongname_1381742_itsaverylongname_1381742
|
||
VALUES('a', 'aaaaaaaaaabbbbbbbbc', 0, 'default');
|
||
CREATE PROCEDURE sp1(a int)
|
||
BEGIN
|
||
declare itisjustaverylargevariablename_xxxxxxxxxxxxxxxxxxxxx char;
|
||
declare itisjustaverylargevarcharvariablename_xxxxxxxxxxxxxxxxxxxxx varchar(100);
|
||
declare itisjustamediumsizeintintegervariablename integer;
|
||
set itisjustaverylargevariablename_xxxxxxxxxxxxxxxxxxxxx = 'b';
|
||
set itisjustaverylargevarcharvariablename_xxxxxxxxxxxxxxxxxxxxx = 'oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@%';
|
||
set itisjustamediumsizeintintegervariablename = 5;
|
||
set @comment='a';
|
||
label1: loop
|
||
if a>100 then
|
||
set @comment='value of a is greater than 100';
|
||
elseif a<100 then
|
||
if a<50 then
|
||
set @comment='value of a is less than 50';
|
||
elseif a<25 then
|
||
set @comment='value of a is less than 25';
|
||
else
|
||
set @comment='value of a is greater than 50 and less than 100';
|
||
END if;
|
||
else
|
||
set @comment='value of a is 100';
|
||
END if;
|
||
if itisjustamediumsizeintintegervariablename = 0 then leave label1;
|
||
END if;
|
||
insert into res_t3_itisalongname_1381742_itsaverylongname_1381742
|
||
values( itisjustaverylargevariablename_xxxxxxxxxxxxxxxxxxxxx,
|
||
concat(itisjustaverylargevarcharvariablename_xxxxxxxxxxxxxxxxxxxxx, ' ', a),
|
||
a, @comment );
|
||
set itisjustamediumsizeintintegervariablename = itisjustamediumsizeintintegervariablename - 1;
|
||
iterate label1;
|
||
END loop label1;
|
||
END//
|
||
CALL sp1(101);
|
||
CALL sp1(100);
|
||
CALL sp1(75);
|
||
CALL sp1(40);
|
||
CALL sp1(20);
|
||
CALL sp1(-1);
|
||
SELECT * from res_t3_itisalongname_1381742_itsaverylongname_1381742
|
||
ORDER BY middleinitial, lastname, age_averylongfieldname_averylongname_1234569;
|
||
middleinitial lastname age_averylongfieldname_averylongname_1234569 COMMENT
|
||
a aaaaaaaaaabbbbbbbbc 0 default
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% -1 -1 value of a is less than 50
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% -1 -1 value of a is less than 50
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% -1 -1 value of a is less than 50
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% -1 -1 value of a is less than 50
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% -1 -1 value of a is less than 50
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 100 100 value of a is 100
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 100 100 value of a is 100
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 100 100 value of a is 100
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 100 100 value of a is 100
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 100 100 value of a is 100
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 101 101 value of a is greater than 100
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 101 101 value of a is greater than 100
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 101 101 value of a is greater than 100
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 101 101 value of a is greater than 100
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 101 101 value of a is greater than 100
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 20 20 value of a is less than 50
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 20 20 value of a is less than 50
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 20 20 value of a is less than 50
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 20 20 value of a is less than 50
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 20 20 value of a is less than 50
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 40 40 value of a is less than 50
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 40 40 value of a is less than 50
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 40 40 value of a is less than 50
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 40 40 value of a is less than 50
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 40 40 value of a is less than 50
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 75 75 value of a is greater than 50 and less than 100
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 75 75 value of a is greater than 50 and less than 100
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 75 75 value of a is greater than 50 and less than 100
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 75 75 value of a is greater than 50 and less than 100
|
||
b oldmacdonalds)(*&(^^%$&^%$&^%*^)(*^#@$@% 75 75 value of a is greater than 50 and less than 100
|
||
drop table res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
DROP PROCEDURE sp1;
|
||
|
||
Testcase 4.3.2:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp2;
|
||
CREATE PROCEDURE sp2( action char(20) )
|
||
BEGIN
|
||
declare v1 char(20);
|
||
declare v2 char(20);
|
||
declare count integer;
|
||
set v1 = 'f1';
|
||
set v2 = 'address';
|
||
set count = 1;
|
||
case when action = 'delete' then
|
||
insert into t3 values(v1, v2, count);
|
||
delete from t3 where f1=v1;
|
||
when action = 'insert' then
|
||
repeat
|
||
insert into t3 values(v1, v2, count);
|
||
set count = count + 1;
|
||
until count > 5
|
||
END repeat;
|
||
set count = 1;
|
||
label1: repeat
|
||
insert into t3 values(v1, v2, count);
|
||
if count > 5 then leave label1;
|
||
END if;
|
||
set count = count + 1;
|
||
until count > 5
|
||
END repeat;
|
||
set count = 1;
|
||
while count < 5 do
|
||
insert into t3 values(v1, v2, count);
|
||
set count = count + 1;
|
||
END while;
|
||
set count = 1;
|
||
label1: while count < 5 do
|
||
insert into t3 values(v1, v2, count);
|
||
if count > 5 then leave label1;
|
||
END if;
|
||
set count = count + 1;
|
||
END while;
|
||
else
|
||
set @dummystring = 'temp value';
|
||
END case;
|
||
END//
|
||
CALL sp2( 'insert' );
|
||
SELECT * from t3 where f3 <=5 && f3 >= 0;
|
||
f1 f2 f3
|
||
f1 address 1
|
||
f1 address 2
|
||
f1 address 3
|
||
f1 address 4
|
||
f1 address 5
|
||
f1 address 1
|
||
f1 address 2
|
||
f1 address 3
|
||
f1 address 4
|
||
f1 address 5
|
||
f1 address 1
|
||
f1 address 2
|
||
f1 address 3
|
||
f1 address 4
|
||
f1 address 1
|
||
f1 address 2
|
||
f1 address 3
|
||
f1 address 4
|
||
SELECT count(*) from t3;
|
||
count(*)
|
||
28
|
||
CALL sp2( 'delete' );
|
||
SELECT count(*) from t3;
|
||
count(*)
|
||
10
|
||
CALL sp2 ('test');
|
||
SELECT @dummystring;
|
||
@dummystring
|
||
temp value
|
||
DROP PROCEDURE sp2;
|
||
|
||
Testcase 4.1.2:
|
||
---------------
|
||
Ensure that all sub-clauses that should not be supported are disallowed with
|
||
an appropriate error message. (case)
|
||
--------------------------------------------------------------------------------
|
||
drop table IF EXISTS res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
DROP PROCEDURE IF EXISTS sp3;
|
||
create table res_t3_itisalongname_1381742_itsaverylongname_1381742 (name char, address varchar(50), age_averylongfieldname_averylongname_1234569 smallint);
|
||
CREATE PROCEDURE sp3( action char(20) )
|
||
BEGIN
|
||
label1: case
|
||
when action = 'delete' then
|
||
delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
else
|
||
set @dummystring = 'temp value';
|
||
iterate label1;
|
||
END case label1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'case
|
||
when action = 'delete' then
|
||
delete from res_t3_itisalongname_1381742_itsav' at line 3
|
||
DROP PROCEDURE IF EXISTS sp3;
|
||
CREATE PROCEDURE sp3( action char(20) )
|
||
BEGIN
|
||
label1: BEGIN
|
||
case
|
||
action = 'delete' then
|
||
delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
else
|
||
set @dummystring = 'temp value';
|
||
iterate label1;
|
||
END case;
|
||
END label1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'then
|
||
delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
else
|
||
set' at line 5
|
||
DROP PROCEDURE IF EXISTS sp3;
|
||
CREATE PROCEDURE sp3( action char(20) )
|
||
BEGIN
|
||
case
|
||
when action = 'delete' then
|
||
delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
then action = 'truncate' when
|
||
truncate from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
else
|
||
set @dummystring = 'temp value';
|
||
iterate label1;
|
||
END case;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'then action = 'truncate' when
|
||
truncate from res_t3_itisalongname_1381742_itsave' at line 6
|
||
DROP PROCEDURE IF EXISTS sp3;
|
||
CREATE PROCEDURE sp3( action char(20) )
|
||
BEGIN
|
||
declare v1 char(20);
|
||
declare v2 char(20);
|
||
declare count integer;
|
||
set v1 = 'f1';
|
||
set v2= 'address';
|
||
set count = 1;
|
||
case action
|
||
when 'delete' then
|
||
when 'delete' then
|
||
delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
END case;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'when 'delete' then
|
||
delete from res_t3_itisalongname_1381742_itsaverylongname_13' at line 10
|
||
DROP PROCEDURE IF EXISTS sp3;
|
||
CREATE PROCEDURE sp3( action char(20) )
|
||
BEGIN
|
||
declare count int default 1;
|
||
declare done int default 0;
|
||
declare continue handler for sqlstate 'HY000' set done=1;
|
||
label1: loop
|
||
case
|
||
when action = 'delete' then
|
||
label3:BEGIN
|
||
delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
END label3;
|
||
when action = 'insert' then
|
||
label2: while count < 10 do
|
||
BEGIN
|
||
insert into res_t3_itisalongname_1381742_itsaverylongname_1381742
|
||
values('xxxxxxxxxxxxxxxxxxx', '1231230981(*&(*&)(*&(', count);
|
||
if done=1 then
|
||
set count=10;
|
||
END if;
|
||
END;
|
||
END while label2;
|
||
else
|
||
set @dummystring = 'temp value';
|
||
iterate label1;
|
||
END case;
|
||
if done=1 then
|
||
leave label1;
|
||
END if;
|
||
END loop label1;
|
||
SELECT count, done;
|
||
END//
|
||
DROP PROCEDURE sp3;
|
||
drop table res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
|
||
Testcase 4.3.4:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp4;
|
||
CREATE PROCEDURE sp4()
|
||
BEGIN
|
||
declare count int;
|
||
set count = 1;
|
||
label1: loop
|
||
if count > 10 then leave label1;
|
||
else
|
||
set count = count + 1;
|
||
elseif count > 20 then
|
||
leave label1;
|
||
END if;
|
||
iterate label1;
|
||
END loop label1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'elseif count > 20 then
|
||
leave label1;
|
||
END if;
|
||
iterate label1;
|
||
END loop label1;
|
||
EN' at line 9
|
||
DROP PROCEDURE IF EXISTS sp4;
|
||
CREATE PROCEDURE sp4()
|
||
BEGIN
|
||
declare count int;
|
||
set count = 1;
|
||
label1: loop
|
||
else
|
||
set count = count + 1;
|
||
if count > 20 then
|
||
leave label1;
|
||
END if;
|
||
iterate label1;
|
||
END loop label1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'else
|
||
set count = count + 1;
|
||
if count > 20 then
|
||
leave label1;
|
||
END if;
|
||
iterate lab' at line 6
|
||
DROP PROCEDURE IF EXISTS sp4;
|
||
CREATE PROCEDURE sp4()
|
||
BEGIN
|
||
declare count int;
|
||
set count = 1;
|
||
label1: loop
|
||
elseif count > 20 then
|
||
leave label1;
|
||
else
|
||
set count=count+1;
|
||
END if;
|
||
iterate label1;
|
||
END loop label1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'elseif count > 20 then
|
||
leave label1;
|
||
else
|
||
set count=count+1;
|
||
END if;
|
||
iterate lab' at line 6
|
||
DROP PROCEDURE IF EXISTS sp4;
|
||
CREATE PROCEDURE sp4()
|
||
BEGIN
|
||
declare count int;
|
||
set count = 1;
|
||
label1: loop
|
||
END if;
|
||
if count > 20 then
|
||
leave label1;
|
||
else
|
||
set count=count+1;
|
||
iterate label1;
|
||
END loop label1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'END if;
|
||
if count > 20 then
|
||
leave label1;
|
||
else
|
||
set count=count+1;
|
||
iterate label1;' at line 6
|
||
DROP PROCEDURE IF EXISTS sp4;
|
||
CREATE PROCEDURE sp4()
|
||
BEGIN
|
||
declare i int default 10;
|
||
if i > 20 then
|
||
set i=25;
|
||
END if
|
||
declare count int;
|
||
set count = 1;
|
||
label1: loop
|
||
if count > 20 then
|
||
leave label1;
|
||
else
|
||
set count=count+1;
|
||
iterate label1;
|
||
END loop label1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'declare count int;
|
||
set count = 1;
|
||
label1: loop
|
||
if count > 20 then
|
||
leave label1;
|
||
' at line 7
|
||
DROP PROCEDURE IF EXISTS sp4;
|
||
CREATE PROCEDURE sp4()
|
||
BEGIN
|
||
declare idummy int default 10;
|
||
declare count int;
|
||
set count = 1;
|
||
label1: loop
|
||
BEGIN
|
||
if count < 20 then
|
||
BEGIN
|
||
declare idummy2 int default 10;
|
||
set count=count+1;
|
||
END;
|
||
else
|
||
BEGIN
|
||
SELECT idummy2;
|
||
leave label1;
|
||
END;
|
||
END if;
|
||
iterate label1;
|
||
END;
|
||
END loop label1;
|
||
END//
|
||
CALL sp4();
|
||
ERROR 42S22: Unknown column 'idummy2' in 'field list'
|
||
DROP PROCEDURE sp4;
|
||
|
||
Testcase 4.3.5:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp5;
|
||
CREATE PROCEDURE sp5()
|
||
BEGIN
|
||
declare count integer default 1;
|
||
set count = 1;
|
||
case
|
||
else
|
||
set count = 10;
|
||
when count = 1 then
|
||
set count = count + 1;
|
||
END case;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'else
|
||
set count = 10;
|
||
when count = 1 then
|
||
set count = count + 1;
|
||
END case;
|
||
END' at line 6
|
||
DROP PROCEDURE IF EXISTS sp5;
|
||
CREATE PROCEDURE sp5(count int)
|
||
BEGIN
|
||
when case count = 1 then
|
||
set count = 10;
|
||
when count = 2 then
|
||
set count = count + 1;
|
||
END case;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'when case count = 1 then
|
||
set count = 10;
|
||
when count = 2 then
|
||
set count = count' at line 3
|
||
DROP PROCEDURE IF EXISTS sp5;
|
||
CREATE PROCEDURE sp5(count int)
|
||
BEGIN
|
||
END case;
|
||
when count = 1 then
|
||
set count = 10;
|
||
when count = 2 then
|
||
set count = count + 1;
|
||
END case;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'case;
|
||
when count = 1 then
|
||
set count = 10;
|
||
when count = 2 then
|
||
set count = coun' at line 3
|
||
DROP PROCEDURE IF EXISTS sp5;
|
||
CREATE PROCEDURE sp5(count int)
|
||
BEGIN
|
||
when count = 1 then
|
||
set count = 10;
|
||
case when count = 2 then
|
||
set count = count + 1;
|
||
END case;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'when count = 1 then
|
||
set count = 10;
|
||
case when count = 2 then
|
||
set count = count' at line 3
|
||
|
||
Testcase 4.3.6:
|
||
---------------
|
||
Ensure that all supported sub-clauses are supported only in the correct order (repeat).
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6()
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
label1: repeat
|
||
set count1 = count1 + 1;
|
||
if count1 > 5 then leave label1; END if;
|
||
END repeat;
|
||
until count1 > 5
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'END repeat;
|
||
until count1 > 5
|
||
END' at line 7
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6()
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
label1: until count1 > 5
|
||
repeat
|
||
set count1 = count1 + 1;
|
||
if count1 > 5 then leave label1; END if;
|
||
END repeat;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'until count1 > 5
|
||
repeat
|
||
set count1 = count1 + 1;
|
||
if count1 > 5 then leave label1' at line 4
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6()
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
label1: END repeat
|
||
set count1 = count1 + 1;
|
||
if count1 > 5 then leave label1; END if;
|
||
until count1 > 5
|
||
repeat;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'END repeat
|
||
set count1 = count1 + 1;
|
||
if count1 > 5 then leave label1; END if;
|
||
unt' at line 4
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6()
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
label1: repeat
|
||
set count1 = count1 + 1;
|
||
if count1 > 5 then leave label1; END if;
|
||
END repeat;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'END repeat;
|
||
END' at line 7
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6()
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
label1: repeat
|
||
set count1 = count1 + 1;
|
||
if count1 > 5 then leave label1; END if;
|
||
until count1 > 10;
|
||
SELECT count1;
|
||
END repeat;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ';
|
||
SELECT count1;
|
||
END repeat;
|
||
END' at line 7
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
CREATE PROCEDURE sp6()
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
label1: repeat
|
||
set count1 = count1;
|
||
until count1 < 0
|
||
END repeat label1;
|
||
SELECT count1;
|
||
END//
|
||
DROP PROCEDURE sp6;
|
||
|
||
Testcase 4.3.7:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp7;
|
||
CREATE PROCEDURE sp7()
|
||
BEGIN
|
||
label1: loop
|
||
set @dummystring = 'temp value';
|
||
if count > 10 then leave label1;
|
||
END if;
|
||
label1 iterate;
|
||
END label1 loop;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'iterate;
|
||
END label1 loop;
|
||
END' at line 7
|
||
DROP PROCEDURE IF EXISTS sp7;
|
||
CREATE PROCEDURE sp7()
|
||
BEGIN
|
||
label1: END loop;
|
||
set @dummystring = 'temp value';
|
||
if count > 10 then leave label1;
|
||
END if;
|
||
iterate label1;
|
||
loop;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'END loop;
|
||
set @dummystring = 'temp value';
|
||
if count > 10 then leave label1;
|
||
END ' at line 3
|
||
DROP PROCEDURE IF EXISTS sp7;
|
||
CREATE PROCEDURE sp7()
|
||
BEGIN
|
||
label1: iterate label1;
|
||
loop
|
||
set @dummystring = 'temp value';
|
||
if count > 10 then leave label1;
|
||
END if;
|
||
END loop label1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'iterate label1;
|
||
loop
|
||
set @dummystring = 'temp value';
|
||
if count > 10 then leave l' at line 3
|
||
|
||
Testcase 4.3.8:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp8;
|
||
CREATE PROCEDURE sp8()
|
||
BEGIN
|
||
declare v1 int default 5;
|
||
do while v1 > 0
|
||
set v1 = v1 - 1;
|
||
END while;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'while v1 > 0
|
||
set v1 = v1 - 1;
|
||
END while;
|
||
END' at line 4
|
||
DROP PROCEDURE IF EXISTS sp8;
|
||
CREATE PROCEDURE sp8()
|
||
BEGIN
|
||
declare v1 int default 5;
|
||
do v1 > 0 while
|
||
set v1 = v1 - 1;
|
||
END while;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'do v1 > 0 while
|
||
set v1 = v1 - 1;
|
||
END while;
|
||
END' at line 4
|
||
DROP PROCEDURE IF EXISTS sp8;
|
||
CREATE PROCEDURE sp8()
|
||
BEGIN
|
||
declare v1 int default 5;
|
||
END while;
|
||
set v1 = v1 - 1;
|
||
while v1 > 0 do;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'while;
|
||
set v1 = v1 - 1;
|
||
while v1 > 0 do;
|
||
END' at line 4
|
||
|
||
Testcase 4.3.12:
|
||
--------------------------------------------------------------------------------
|
||
drop table IF EXISTS res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
DROP PROCEDURE IF EXISTS sp12;
|
||
create table res_t3_itisalongname_1381742_itsaverylongname_1381742( f1 char(20), f2 varchar(20), f3 smallint);
|
||
CREATE PROCEDURE sp12( )
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
declare count2 int;
|
||
label1: loop
|
||
if count1 > 2 then leave label1;
|
||
END if;
|
||
insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
|
||
label2: loop
|
||
if count2 > 2 then leave label2;
|
||
END if;
|
||
set count2 = count2 + 1;
|
||
END loop label1;
|
||
set count1 = count1 + 1;
|
||
iterate label1;
|
||
END loop label2;
|
||
END//
|
||
ERROR 42000: End-label label2 without match
|
||
drop table res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
|
||
Testcase 4.3.13:
|
||
--------------------------------------------------------------------------------
|
||
drop table IF EXISTS res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
DROP PROCEDURE IF EXISTS sp13;
|
||
create table res_t3_itisalongname_1381742_itsaverylongname_1381742( f1 char(20), f2 varchar(20), f3 smallint);
|
||
CREATE PROCEDURE sp13( )
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
lable1: loop
|
||
if count1 > 2 then leave lable1;
|
||
END if;
|
||
insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
|
||
set count1 = count1 + 1;
|
||
iterate lable1;
|
||
END loop;
|
||
END//
|
||
CALL sp13();
|
||
SELECT * from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
f1 f2 f3
|
||
xyz pqr 1
|
||
xyz pqr 2
|
||
DROP PROCEDURE sp13;
|
||
drop table res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
|
||
Testcase 4.3.14:
|
||
--------------------------------------------------------------------------------
|
||
drop table IF EXISTS res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
DROP PROCEDURE IF EXISTS sp14;
|
||
create table res_t3_itisalongname_1381742_itsaverylongname_1381742( f1 char(20), f2 varchar(20), f3 smallint);
|
||
CREATE PROCEDURE sp14( )
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
loop
|
||
if count1 > 2 then leave lable1;
|
||
END if;
|
||
insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
|
||
set count1 = count1 + 1;
|
||
iterate lable1;
|
||
END loop label1;
|
||
END//
|
||
ERROR 42000: LEAVE with no matching label: lable1
|
||
drop table res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
|
||
Testcase 4.3.15:
|
||
--------------------------------------------------------------------------------
|
||
drop table IF EXISTS res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
DROP PROCEDURE IF EXISTS sp15;
|
||
create table res_t3_itisalongname_1381742_itsaverylongname_1381742( f1 char(20), f2 varchar(20), f3 smallint);
|
||
CREATE PROCEDURE sp15( )
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
label1 loop
|
||
if count1 > 2 then leave lable1;
|
||
END if;
|
||
insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
|
||
set count1 = count1 + 1;
|
||
iterate lable1;
|
||
END loop label1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'loop
|
||
if count1 > 2 then leave lable1;
|
||
END if;
|
||
insert into res_t3_itisalongname_1' at line 4
|
||
|
||
Testcase 4.3.16:
|
||
----------------
|
||
Ensure that every beginning label with the same scope must be unique.
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp16;
|
||
delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
CREATE PROCEDURE sp16( )
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
declare count2 integer default 1;
|
||
label1: repeat
|
||
set count1 = count1 + 1;
|
||
set count2 = 1;
|
||
label1: repeat
|
||
set count2 = count2 + 1;
|
||
insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( xyz , pqr, count1);
|
||
until count2 > 3
|
||
END repeat label1;
|
||
until count1 > 3
|
||
END repeat label1;
|
||
END//
|
||
ERROR 42000: Redefining label label1
|
||
DROP PROCEDURE IF EXISTS sp16;
|
||
CREATE PROCEDURE sp16( )
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
declare count2 integer default 1;
|
||
declare count3 integer default 1;
|
||
label1: repeat
|
||
set count1 = count1 + 1;
|
||
label1: repeat
|
||
set count2 = count2 + 1;
|
||
SELECT count2;
|
||
until count2 > 3
|
||
END repeat label1;
|
||
SELECT count1;
|
||
until count1 > 3
|
||
END repeat label1;
|
||
label1: repeat
|
||
set count3 = count3 + 1;
|
||
SELECT count3;
|
||
until count3 > 3
|
||
END repeat label1;
|
||
END//
|
||
ERROR 42000: Redefining label label1
|
||
|
||
Testcase 4.3.17:
|
||
--------------------------------------------------------------------------------
|
||
|
||
Testcase 4.3.18:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp18;
|
||
delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
CREATE PROCEDURE sp18( )
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
label1: repeat
|
||
set count1 = count1 + 1;
|
||
insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
|
||
until count1 < 3
|
||
END repeat label2;
|
||
END//
|
||
ERROR 42000: End-label label2 without match
|
||
|
||
Testcase 4.3.19:
|
||
--------------------------------------------------------------------------------
|
||
delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
DROP PROCEDURE IF EXISTS sp19;
|
||
CREATE PROCEDURE sp19( )
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
label1: repeat
|
||
set count1 = count1 + 1;
|
||
insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
|
||
until count1 < 3
|
||
END repeat;
|
||
END//
|
||
CALL sp19();
|
||
SELECT * from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
f1 f2 f3
|
||
xyz pqr 2
|
||
DROP PROCEDURE sp19;
|
||
|
||
Testcase 4.3.20:
|
||
--------------------------------------------------------------------------------
|
||
delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
DROP PROCEDURE IF EXISTS sp20;
|
||
CREATE PROCEDURE sp20( )
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
repeat
|
||
set count1 = count1 + 1;
|
||
insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
|
||
until count1 < 3
|
||
END repeat label1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'label1;
|
||
END' at line 7
|
||
|
||
Testcase 4.3.21:
|
||
--------------------------------------------------------------------------------
|
||
|
||
Testcase 4.3.22:
|
||
--------------------------------------------------------------------------------
|
||
delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
DROP PROCEDURE IF EXISTS sp22;
|
||
CREATE PROCEDURE sp22( )
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
declare count2 integer default 1;
|
||
while count1 < 3 do
|
||
set count1 = count1 + 1;
|
||
set count2 = 1;
|
||
label1: while count2 < 3 do
|
||
set count2 = count2 + 1;
|
||
insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
|
||
END while label2;
|
||
END while;
|
||
END//
|
||
ERROR 42000: End-label label2 without match
|
||
|
||
Testcase 4.3.23:
|
||
--------------------------------------------------------------------------------
|
||
delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
DROP PROCEDURE IF EXISTS sp23;
|
||
CREATE PROCEDURE sp23( )
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
declare count2 integer default 1;
|
||
while count1 < 3 do
|
||
set count1 = count1 + 1;
|
||
set count2 = 1;
|
||
while count2 < 3 do
|
||
set count2 = count2 + 1;
|
||
insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
|
||
END while label1;
|
||
END while;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'label1;
|
||
END while;
|
||
END' at line 11
|
||
|
||
Testcase 4.3.25:
|
||
--------------------------------------------------------------------------------
|
||
delete from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
DROP PROCEDURE IF EXISTS sp25;
|
||
CREATE PROCEDURE sp25( )
|
||
BEGIN
|
||
declare count1 integer default 1;
|
||
declare count2 integer default 1;
|
||
while count1 < 3 do
|
||
set count1 = count1 + 1;
|
||
set count2 = 1;
|
||
label1: while count2 < 3 do
|
||
set count2 = count2 + 1;
|
||
insert into res_t3_itisalongname_1381742_itsaverylongname_1381742 values( 'xyz' , 'pqr', count1);
|
||
END while;
|
||
END while;
|
||
END//
|
||
CALL sp25 ();
|
||
SELECT * from res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
f1 f2 f3
|
||
xyz pqr 2
|
||
xyz pqr 2
|
||
xyz pqr 3
|
||
xyz pqr 3
|
||
DROP PROCEDURE sp25;
|
||
drop table res_t3_itisalongname_1381742_itsaverylongname_1381742;
|
||
|
||
Section 3.1.4 - Checks for the global nature of stored procedures:
|
||
--------------------------------------------------------------------------------
|
||
USE db_storedproc;
|
||
|
||
Testcase 4.4.1:
|
||
--------------------------------------------------------------------------------
|
||
DROP PROCEDURE IF EXISTS sp1;
|
||
DROP DATABASE IF EXISTS d40401;
|
||
CREATE PROCEDURE sp1 ( n char(20) )
|
||
BEGIN
|
||
SELECT n;
|
||
END//
|
||
CREATE DATABASE d40401;
|
||
USE d40401;
|
||
CALL db_storedproc.sp1('abcd');
|
||
n
|
||
abcd
|
||
USE db_storedproc;
|
||
DROP PROCEDURE sp1;
|
||
DROP DATABASE d40401;
|
||
|
||
Testcase 4.4.2:
|
||
--------------------------------------------------------------------------------
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
DROP FUNCTION IF EXISTS fn11;
|
||
DROP DATABASE IF EXISTS d40402;
|
||
CREATE FUNCTION fn1(n int) returns int
|
||
BEGIN
|
||
declare a int;
|
||
set a = 9 * n;
|
||
return a;
|
||
END//
|
||
CREATE DATABASE d40402;
|
||
USE d40402;
|
||
SELECT db_storedproc.fn1(100);
|
||
db_storedproc.fn1(100)
|
||
900
|
||
SELECT db_storedproc.fn1(1000);
|
||
db_storedproc.fn1(1000)
|
||
9000
|
||
CREATE FUNCTION db_storedproc.fn11(n int) returns int
|
||
BEGIN
|
||
declare a int;
|
||
set a = 9 * n;
|
||
return a;
|
||
END//
|
||
SELECT db_storedproc.fn11(100);
|
||
db_storedproc.fn11(100)
|
||
900
|
||
SELECT db_storedproc.fn11(1000);
|
||
db_storedproc.fn11(1000)
|
||
9000
|
||
USE db_storedproc;
|
||
DROP FUNCTION fn1;
|
||
DROP FUNCTION fn11;
|
||
DROP DATABASE d40402;
|
||
|
||
Testcase 4.4.3:
|
||
--------------------------------------------------------------------------------
|
||
DROP DATABASE IF EXISTS d1;
|
||
DROP DATABASE IF EXISTS d2;
|
||
CREATE DATABASE d1;
|
||
CREATE DATABASE d2;
|
||
USE d1;
|
||
create table res_t41(a char(5), b char(10));
|
||
insert into res_t41 values('abcde', 'a!@#$%^&*(');
|
||
USE d2;
|
||
create table res_t42(a char(5), b char(10));
|
||
USE d1;
|
||
CREATE PROCEDURE sp2(n char (20))
|
||
BEGIN
|
||
SELECT res_t41.a, res_t41.b into @a, @b from res_t41 where res_t41.b = n;
|
||
insert into d2.res_t42 values (@a, @b);
|
||
END//
|
||
USE d2;
|
||
CALL d1.sp2('a!@#$%^&*(');
|
||
show warnings;
|
||
Level Code Message
|
||
SELECT * from d1.res_t41;
|
||
a b
|
||
abcde a!@#$%^&*(
|
||
SELECT * from res_t42;
|
||
a b
|
||
abcde a!@#$%^&*(
|
||
USE db_storedproc;
|
||
DROP DATABASE d1;
|
||
DROP DATABASE d2;
|
||
|
||
Testcase 4.4.4:
|
||
--------------------------------------------------------------------------------
|
||
DROP DATABASE IF EXISTS d1;
|
||
CREATE DATABASE d1;
|
||
USE d1;
|
||
CREATE PROCEDURE sp3()
|
||
BEGIN
|
||
USE d1;
|
||
END//
|
||
ERROR 0A000: USE is not allowed in stored procedures
|
||
USE db_storedproc;
|
||
DROP DATABASE d1;
|
||
|
||
Testcase 4.4.5:
|
||
--------------------------------------------------------------------------------
|
||
DROP DATABASE IF EXISTS d1;
|
||
CREATE DATABASE d1;
|
||
USE d1;
|
||
create table t43(a char(5), b char(10));
|
||
insert into t43 values('abcde', 'a!@#$%^&*(');
|
||
CREATE PROCEDURE d1.sp4()
|
||
SELECT * from d1.t43;
|
||
SELECT * from mysql.proc where specific_name = 'sp4';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
d1 sp4 PROCEDURE sp4 SQL CONTAINS_SQL NO DEFINER SELECT * from d1.t43 root@localhost modified created
|
||
USE db_storedproc;
|
||
DROP DATABASE d1;
|
||
CREATE DATABASE d1;
|
||
USE d1;
|
||
create table t44(a char(5), b char(10));
|
||
SELECT * from mysql.proc where specific_name = 'sp4';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
USE db_storedproc;
|
||
DROP DATABASE d1;
|
||
|
||
Testcase 4.4.6:
|
||
--------------------------------------------------------------------------------
|
||
USE db_storedproc;
|
||
DROP PROCEDURE IF EXISTS sp5;
|
||
CREATE PROCEDURE sp5()
|
||
SELECT * from db_storedproc.t4 limit 0, 10;
|
||
SELECT db from mysql.proc where specific_name = 'sp5';
|
||
db
|
||
db_storedproc
|
||
DROP PROCEDURE sp5;
|
||
|
||
Testcase 4.4.7:
|
||
--------------------------------------------------------------------------------
|
||
USE db_storedproc;
|
||
drop table IF EXISTS t46;
|
||
DROP PROCEDURE IF EXISTS sp6;
|
||
create table t46(f1 char(20), f2 char(20));
|
||
insert into t46 values ('abcd', 'wxyz');
|
||
CREATE PROCEDURE db_storedproc.sp6()
|
||
SELECT * from db_storedproc.t4 limit 0, 10;
|
||
SELECT db from mysql.proc where specific_name = 'sp6';
|
||
db
|
||
db_storedproc
|
||
drop table t46;
|
||
DROP PROCEDURE sp6;
|
||
|
||
Testcase 4.4.8:
|
||
--------------------------------------------------------------------------------
|
||
DROP DATABASE IF EXISTS d1;
|
||
DROP DATABASE IF EXISTS d2;
|
||
CREATE DATABASE d1;
|
||
CREATE DATABASE d2;
|
||
USE d1;
|
||
CREATE PROCEDURE sp8 ( n char(20) ) sql security definer comment 'initial'
|
||
SELECT * from t1 where t1.f1 = n;
|
||
USE d2;
|
||
alter procedure d1.sp8 sql security definer comment 'updated';
|
||
SELECT * from mysql.proc where specific_name='sp8' and db='d1';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
d1 sp8 PROCEDURE sp8 SQL CONTAINS_SQL NO DEFINER n char(20) SELECT * from t1 where t1.f1 = n root@localhost modified created updated
|
||
|
||
Testcase 4.4.9:
|
||
--------------------------------------------------------------------------------
|
||
USE d1;
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
DROP FUNCTION IF EXISTS fn11;
|
||
CREATE FUNCTION d1.fn2(n int) returns int sql security invoker comment 'initial'
|
||
BEGIN
|
||
declare a int;
|
||
set a = 0.9 * n;
|
||
return a;
|
||
END//
|
||
USE d2;
|
||
alter function d1.fn2 sql security definer comment 'updated';
|
||
SELECT * from mysql.proc where specific_name='fn2' and db='d1';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
d1 fn2 FUNCTION fn2 SQL CONTAINS_SQL NO DEFINER n int int(11) BEGIN
|
||
declare a int;
|
||
set a = 0.9 * n;
|
||
return a;
|
||
END root@localhost modified created updated
|
||
|
||
Testcase 4.4.10:
|
||
--------------------------------------------------------------------------------
|
||
USE d1;
|
||
CREATE PROCEDURE sp9 ( n char(20) )
|
||
SELECT * from t1 where t1.f1 = n;
|
||
USE d2;
|
||
DROP PROCEDURE d1.sp9;
|
||
SELECT * from mysql.proc where specific_name='sp9' and db='d1';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
|
||
Testcase 4.4.11:
|
||
--------------------------------------------------------------------------------
|
||
USE d1;
|
||
CREATE FUNCTION d1.fn3(n int) returns int
|
||
BEGIN
|
||
declare a int;
|
||
set a = 0.9 * n;
|
||
return a;
|
||
END//
|
||
USE d2;
|
||
DROP FUNCTION d1.fn3;
|
||
SELECT * from mysql.proc where specific_name='fn3' and db='d1';
|
||
db name type specific_name language sql_data_access is_deterministic security_type param_list returns body definer created modified sql_mode comment
|
||
USE db_storedproc;
|
||
DROP DATABASE d1;
|
||
DROP DATABASE d2;
|
||
|
||
Section 3.1.5 - Parameter use checks:
|
||
Functions with all data types
|
||
--------------------------------------------------------------------------------
|
||
SELECT 1 as 'bug_dec_num';
|
||
bug_dec_num
|
||
1
|
||
|
||
.
|
||
FIXME: There are differences with datatypes DECIMAL and NUMERIC if large
|
||
FIXME: exponent values are used. The diffs are shown only on some machines like
|
||
FIXME: AIX52 and HPUX11. Until this has been solved we use numbers that
|
||
FIXME: *should* be equal to the exponent representation but have no exponents
|
||
FIXME: and use the specified count of *0*s instead.
|
||
FIXME: In the source file these tests are marked with the comment hpux11
|
||
.
|
||
--------------------------------------------------------------------------------
|
||
DROP DATABASE IF EXISTS d1;
|
||
CREATE DATABASE d1;
|
||
USE d1;
|
||
DROP FUNCTION IF EXISTS fn1;
|
||
CREATE FUNCTION fn1( f1 bigint) returns bigint
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn1(-9.22e+18);
|
||
fn1(-9.22e+18)
|
||
-9220000000000000000
|
||
DROP FUNCTION IF EXISTS fn2;
|
||
CREATE FUNCTION fn2( f1 bigint unsigned) returns bigint unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn2(1.84e+19);
|
||
fn2(1.84e+19)
|
||
0
|
||
DROP FUNCTION IF EXISTS fn3;
|
||
CREATE FUNCTION fn3( f1 bigint unsigned zerofill) returns bigint unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn3(1.84e+17);
|
||
fn3(1.84e+17)
|
||
184000000000000000
|
||
DROP FUNCTION IF EXISTS fn4;
|
||
CREATE FUNCTION fn4( f1 bigint zerofill) returns bigint zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn4(-9.22e+15);
|
||
fn4(-9.22e+15)
|
||
0
|
||
DROP FUNCTION IF EXISTS fn5;
|
||
CREATE FUNCTION fn5( f1 decimal) returns decimal
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn5(-1.00e+09);
|
||
fn5(-1.00e+09)
|
||
-1000000000
|
||
DROP FUNCTION IF EXISTS fn6;
|
||
CREATE FUNCTION fn6( f1 decimal (0)) returns decimal (0)
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn6(-1.00e+09);
|
||
fn6(-1.00e+09)
|
||
-1000000000
|
||
DROP FUNCTION IF EXISTS fn7;
|
||
CREATE FUNCTION fn7( f1 decimal (0) unsigned) returns decimal (0) unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn7(99999999999);
|
||
fn7(99999999999)
|
||
9999999999
|
||
DROP FUNCTION IF EXISTS fn8;
|
||
CREATE FUNCTION fn8( f1 decimal (0) unsigned zerofill) returns decimal (0) unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn8(999999999);
|
||
fn8(999999999)
|
||
0999999999
|
||
DROP FUNCTION IF EXISTS fn9;
|
||
CREATE FUNCTION fn9( f1 decimal (0) zerofill) returns decimal (0) zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn9(-1.00e+09);
|
||
fn9(-1.00e+09)
|
||
0000000000
|
||
DROP FUNCTION IF EXISTS fn10;
|
||
CREATE FUNCTION fn10( f1 decimal (0, 0)) returns decimal (0, 0)
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn10(-1.00e+09);
|
||
fn10(-1.00e+09)
|
||
-1000000000
|
||
DROP FUNCTION IF EXISTS fn11;
|
||
CREATE FUNCTION fn11( f1 decimal (0, 0) unsigned) returns decimal (0, 0) unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn11(99999999999);
|
||
fn11(99999999999)
|
||
9999999999
|
||
DROP FUNCTION IF EXISTS fn12;
|
||
CREATE FUNCTION fn12( f1 decimal (0, 0) unsigned zerofill) returns decimal (0, 0) unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn12(999999999);
|
||
fn12(999999999)
|
||
0999999999
|
||
DROP FUNCTION IF EXISTS fn13;
|
||
CREATE FUNCTION fn13( f1 decimal (0, 0) zerofill) returns decimal (0, 0) zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn13(-1.00e+09);
|
||
fn13(-1.00e+09)
|
||
0000000000
|
||
DROP FUNCTION IF EXISTS fn14;
|
||
CREATE FUNCTION fn14( f1 decimal (63, 30)) returns decimal (63, 30)
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn14(-1.00e+21);
|
||
fn14(-1.00e+21)
|
||
-1000000000000000000000.000000000000000000000000000000
|
||
DROP FUNCTION IF EXISTS fn15;
|
||
CREATE FUNCTION fn15( f1 decimal (63, 30) unsigned) returns decimal (63, 30) unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn15(1.00e+16);
|
||
fn15(1.00e+16)
|
||
10000000000000000.000000000000000000000000000000
|
||
DROP FUNCTION IF EXISTS fn16;
|
||
CREATE FUNCTION fn16( f1 decimal (63, 30) unsigned zerofill) returns decimal (63, 30) unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn16(1.00e+16);
|
||
fn16(1.00e+16)
|
||
000000000000000010000000000000000.000000000000000000000000000000
|
||
DROP FUNCTION IF EXISTS fn17;
|
||
CREATE FUNCTION fn17( f1 decimal (63, 30) zerofill) returns decimal (63, 30) zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn17(-1.00e+21);
|
||
fn17(-1.00e+21)
|
||
000000000000000000000000000000000.000000000000000000000000000000
|
||
DROP FUNCTION IF EXISTS fn18_d;
|
||
CREATE FUNCTION fn18_d( f1 decimal (64)) returns decimal (64)
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn18_d( -1000000000000000000000000000000 );
|
||
fn18_d( -1000000000000000000000000000000 )
|
||
-1000000000000000000000000000000
|
||
DROP FUNCTION IF EXISTS fn19_du;
|
||
CREATE FUNCTION fn19_du( f1 decimal (64) unsigned) returns decimal (64) unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn19_du( 100000000000000000000 );
|
||
fn19_du( 100000000000000000000 )
|
||
100000000000000000000
|
||
DROP FUNCTION IF EXISTS fn20_duz;
|
||
CREATE FUNCTION fn20_duz( f1 decimal (64) unsigned zerofill) returns decimal (64) unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn20_duz( 1000000000000000000000000 );
|
||
fn20_duz( 1000000000000000000000000 )
|
||
0000000000000000000000000000000000000001000000000000000000000000
|
||
DROP FUNCTION IF EXISTS fn21_d_z;
|
||
CREATE FUNCTION fn21_d_z( f1 decimal (64) zerofill) returns decimal (64) zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn21_d_z(1.00e+00);
|
||
fn21_d_z(1.00e+00)
|
||
0000000000000000000000000000000000000000000000000000000000000001
|
||
DROP FUNCTION IF EXISTS fn22;
|
||
CREATE FUNCTION fn22( f1 decimal unsigned) returns decimal unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn22(1.00e+00);
|
||
fn22(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn23;
|
||
CREATE FUNCTION fn23( f1 decimal unsigned zerofill) returns decimal unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn23(1.00e+00);
|
||
fn23(1.00e+00)
|
||
0000000001
|
||
DROP FUNCTION IF EXISTS fn24;
|
||
CREATE FUNCTION fn24( f1 decimal zerofill) returns decimal zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn24(-1.00e+09);
|
||
fn24(-1.00e+09)
|
||
0000000000
|
||
DROP FUNCTION IF EXISTS fn25;
|
||
CREATE FUNCTION fn25( f1 double) returns double
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn25(1.00e+00);
|
||
fn25(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn26;
|
||
CREATE FUNCTION fn26( f1 double unsigned) returns double unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn26(1.00e+00);
|
||
fn26(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn27;
|
||
CREATE FUNCTION fn27( f1 double unsigned zerofill) returns double unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn27(1.00e+00);
|
||
fn27(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn28;
|
||
CREATE FUNCTION fn28( f1 double zerofill) returns double zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn28(1.00e+00);
|
||
fn28(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn29;
|
||
CREATE FUNCTION fn29( f1 float) returns float
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn29(1.00e+00);
|
||
fn29(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn30;
|
||
CREATE FUNCTION fn30( f1 float unsigned) returns float unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn30(1.00e+00);
|
||
fn30(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn31;
|
||
CREATE FUNCTION fn31( f1 float unsigned zerofill) returns float unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn31(1.00e+00);
|
||
fn31(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn32;
|
||
CREATE FUNCTION fn32( f1 float zerofill) returns float zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn32(1.00e+00);
|
||
fn32(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn33;
|
||
CREATE FUNCTION fn33( f1 float(0)) returns float(0)
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn33(1.00e+00);
|
||
fn33(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn34;
|
||
CREATE FUNCTION fn34( f1 float(0) unsigned) returns float(0) unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn34(1.00e+00);
|
||
fn34(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn35;
|
||
CREATE FUNCTION fn35( f1 float(0) unsigned zerofill) returns float(0) unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn35(1.00e+00);
|
||
fn35(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn36;
|
||
CREATE FUNCTION fn36( f1 float(0) zerofill) returns float(0) zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn36(1.00e+00);
|
||
fn36(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn37;
|
||
CREATE FUNCTION fn37( f1 float(23)) returns float(23)
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn37(1.00e+00);
|
||
fn37(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn38;
|
||
CREATE FUNCTION fn38( f1 float(23) unsigned) returns float(23) unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn38(1.00e+00);
|
||
fn38(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn39;
|
||
CREATE FUNCTION fn39( f1 float(23) unsigned zerofill) returns float(23) unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn39(1.00e+00);
|
||
fn39(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn40;
|
||
CREATE FUNCTION fn40( f1 float(23) zerofill) returns float(23) zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn40(1.00e+00);
|
||
fn40(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn41;
|
||
CREATE FUNCTION fn41( f1 float(24)) returns float(24)
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn41(1.00e+00);
|
||
fn41(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn42;
|
||
CREATE FUNCTION fn42( f1 float(24) unsigned) returns float(24) unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn42(1.00e+00);
|
||
fn42(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn43;
|
||
CREATE FUNCTION fn43( f1 float(24) unsigned zerofill) returns float(24) unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn43(1.00e+00);
|
||
fn43(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn44;
|
||
CREATE FUNCTION fn44( f1 float(24) zerofill) returns float(24) zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn44(1.00e+00);
|
||
fn44(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn45;
|
||
CREATE FUNCTION fn45( f1 float(53)) returns float(53)
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn45(1.00e+00);
|
||
fn45(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn46;
|
||
CREATE FUNCTION fn46( f1 float(53) unsigned) returns float(53) unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn46(1.00e+00);
|
||
fn46(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn47;
|
||
CREATE FUNCTION fn47( f1 float(53) unsigned zerofill) returns float(53) unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn47(1.00e+00);
|
||
fn47(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn48;
|
||
CREATE FUNCTION fn48( f1 float(53) zerofill) returns float(53) zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn48(1.00e+00);
|
||
fn48(1.00e+00)
|
||
1
|
||
DROP FUNCTION IF EXISTS fn49;
|
||
CREATE FUNCTION fn49( f1 int) returns int
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn49(-2.15e+09);
|
||
fn49(-2.15e+09)
|
||
-2147483648
|
||
DROP FUNCTION IF EXISTS fn50;
|
||
CREATE FUNCTION fn50( f1 int unsigned) returns int unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn50(4.29e+09);
|
||
fn50(4.29e+09)
|
||
4290000000
|
||
DROP FUNCTION IF EXISTS fn51;
|
||
CREATE FUNCTION fn51( f1 int unsigned zerofill) returns int unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn51(4.29e+09);
|
||
fn51(4.29e+09)
|
||
4290000000
|
||
DROP FUNCTION IF EXISTS fn52;
|
||
CREATE FUNCTION fn52( f1 int zerofill) returns int zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn52(2.15e+08);
|
||
fn52(2.15e+08)
|
||
215000000
|
||
DROP FUNCTION IF EXISTS fn53;
|
||
CREATE FUNCTION fn53( f1 mediumint) returns mediumint
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn53(-8388600);
|
||
fn53(-8388600)
|
||
-8388600
|
||
DROP FUNCTION IF EXISTS fn54;
|
||
CREATE FUNCTION fn54( f1 mediumint unsigned) returns mediumint unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn54(16777201);
|
||
fn54(16777201)
|
||
16777202
|
||
DROP FUNCTION IF EXISTS fn55;
|
||
CREATE FUNCTION fn55( f1 mediumint unsigned zerofill) returns mediumint unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn55(16777210);
|
||
fn55(16777210)
|
||
16777210
|
||
DROP FUNCTION IF EXISTS fn56;
|
||
CREATE FUNCTION fn56( f1 mediumint zerofill) returns mediumint zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn56(-8388601);
|
||
fn56(-8388601)
|
||
0
|
||
DROP FUNCTION IF EXISTS fn57;
|
||
CREATE FUNCTION fn57( f1 numeric) returns numeric
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn57(-999999999);
|
||
fn57(-999999999)
|
||
-999999999
|
||
DROP FUNCTION IF EXISTS fn58;
|
||
CREATE FUNCTION fn58( f1 numeric (0)) returns numeric (0)
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn58(-999999999);
|
||
fn58(-999999999)
|
||
-999999999
|
||
DROP FUNCTION IF EXISTS fn59;
|
||
CREATE FUNCTION fn59( f1 numeric (0) unsigned) returns numeric (0) unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn59(9999999999);
|
||
fn59(9999999999)
|
||
9999999999
|
||
DROP FUNCTION IF EXISTS fn60;
|
||
CREATE FUNCTION fn60( f1 numeric (0) unsigned zerofill) returns numeric (0) unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn60(99999999);
|
||
fn60(99999999)
|
||
0099999999
|
||
DROP FUNCTION IF EXISTS fn61;
|
||
CREATE FUNCTION fn61( f1 numeric (0) zerofill) returns numeric (0) zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn61(-99999999);
|
||
fn61(-99999999)
|
||
0000000000
|
||
DROP FUNCTION IF EXISTS fn62;
|
||
CREATE FUNCTION fn62( f1 numeric (0, 0)) returns numeric (0, 0)
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn62(-999999999);
|
||
fn62(-999999999)
|
||
-999999999
|
||
DROP FUNCTION IF EXISTS fn63;
|
||
CREATE FUNCTION fn63( f1 numeric (0, 0) unsigned) returns numeric (0, 0) unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn63(9999999999);
|
||
fn63(9999999999)
|
||
9999999999
|
||
DROP FUNCTION IF EXISTS fn64;
|
||
CREATE FUNCTION fn64( f1 numeric (0, 0) unsigned zerofill) returns numeric (0, 0) unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn64(99999999);
|
||
fn64(99999999)
|
||
0099999999
|
||
DROP FUNCTION IF EXISTS fn65;
|
||
CREATE FUNCTION fn65( f1 numeric (0, 0) zerofill) returns numeric (0, 0) zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn65(-99999999);
|
||
fn65(-99999999)
|
||
0000000000
|
||
DROP FUNCTION IF EXISTS fn66;
|
||
CREATE FUNCTION fn66( f1 numeric (63, 30)) returns numeric (63, 30)
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn66(-1e+36);
|
||
fn66(-1e+36)
|
||
-999999999999999999999999999999999.999999999999999999999999999999
|
||
DROP FUNCTION IF EXISTS fn67;
|
||
CREATE FUNCTION fn67( f1 numeric (63, 30) unsigned) returns numeric (63, 30) unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn67(1e+36);
|
||
fn67(1e+36)
|
||
999999999999999999999999999999999.999999999999999999999999999999
|
||
DROP FUNCTION IF EXISTS fn68;
|
||
CREATE FUNCTION fn68( f1 numeric (63, 30) unsigned zerofill) returns numeric (63, 30) unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn68(1e+36);
|
||
fn68(1e+36)
|
||
999999999999999999999999999999999.999999999999999999999999999999
|
||
DROP FUNCTION IF EXISTS fn69;
|
||
CREATE FUNCTION fn69( f1 numeric (63, 30) zerofill) returns numeric (63, 30) zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn69(-1e+36);
|
||
fn69(-1e+36)
|
||
000000000000000000000000000000000.000000000000000000000000000000
|
||
DROP FUNCTION IF EXISTS fn70_n;
|
||
CREATE FUNCTION fn70_n( f1 numeric (64)) returns numeric (64)
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn70_n( -1000000000000000000000000000000 );
|
||
fn70_n( -1000000000000000000000000000000 )
|
||
-1000000000000000000000000000000
|
||
SELECT fn70_n( -10000000000000000000000000000000000000000 );
|
||
fn70_n( -10000000000000000000000000000000000000000 )
|
||
-10000000000000000000000000000000000000000
|
||
DROP FUNCTION IF EXISTS fn71_nu;
|
||
CREATE FUNCTION fn71_nu( f1 numeric (64) unsigned) returns numeric (64) unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn71_nu( 10000000000000000000000000000000000000000 );
|
||
fn71_nu( 10000000000000000000000000000000000000000 )
|
||
10000000000000000000000000000000000000000
|
||
DROP FUNCTION IF EXISTS fn72_nuz;
|
||
CREATE FUNCTION fn72_nuz( f1 numeric (64) unsigned zerofill) returns numeric (64) unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn72_nuz( 10000000000000000000000000000000000000000 );
|
||
fn72_nuz( 10000000000000000000000000000000000000000 )
|
||
0000000000000000000000010000000000000000000000000000000000000000
|
||
DROP FUNCTION IF EXISTS fn73_n_z;
|
||
CREATE FUNCTION fn73_n_z( f1 numeric (64) zerofill) returns numeric (64) zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn73_n_z( 10000000000000000000000000000000000000000 );
|
||
fn73_n_z( 10000000000000000000000000000000000000000 )
|
||
0000000000000000000000010000000000000000000000000000000000000000
|
||
DROP FUNCTION IF EXISTS fn74;
|
||
CREATE FUNCTION fn74( f1 numeric unsigned) returns numeric unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn74(999999999);
|
||
fn74(999999999)
|
||
999999999
|
||
DROP FUNCTION IF EXISTS fn75;
|
||
CREATE FUNCTION fn75( f1 numeric unsigned zerofill) returns numeric unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn75(999999999);
|
||
fn75(999999999)
|
||
0999999999
|
||
DROP FUNCTION IF EXISTS fn76;
|
||
CREATE FUNCTION fn76( f1 numeric zerofill) returns numeric zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn76(-999999999);
|
||
fn76(-999999999)
|
||
0000000000
|
||
DROP FUNCTION IF EXISTS fn77;
|
||
CREATE FUNCTION fn77( f1 real) returns real
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn77(1.1);
|
||
fn77(1.1)
|
||
1.1
|
||
DROP FUNCTION IF EXISTS fn78;
|
||
CREATE FUNCTION fn78( f1 real unsigned) returns real unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn78(1.1);
|
||
fn78(1.1)
|
||
1.1
|
||
DROP FUNCTION IF EXISTS fn79;
|
||
CREATE FUNCTION fn79( f1 real unsigned zerofill) returns real unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn79(1.1);
|
||
fn79(1.1)
|
||
1.1
|
||
DROP FUNCTION IF EXISTS fn80;
|
||
CREATE FUNCTION fn80( f1 real zerofill) returns real zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn80(1.1);
|
||
fn80(1.1)
|
||
1.1
|
||
DROP FUNCTION IF EXISTS fn81;
|
||
CREATE FUNCTION fn81( f1 smallint) returns smallint
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn81(-32701);
|
||
fn81(-32701)
|
||
-32702
|
||
DROP FUNCTION IF EXISTS fn82;
|
||
CREATE FUNCTION fn82( f1 smallint unsigned) returns smallint unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn82(65531);
|
||
fn82(65531)
|
||
65532
|
||
DROP FUNCTION IF EXISTS fn83;
|
||
CREATE FUNCTION fn83( f1 smallint unsigned zerofill) returns smallint unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn83(65531);
|
||
fn83(65531)
|
||
65532
|
||
DROP FUNCTION IF EXISTS fn84;
|
||
CREATE FUNCTION fn84( f1 smallint zerofill) returns smallint zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn84(-32601);
|
||
fn84(-32601)
|
||
0
|
||
DROP FUNCTION IF EXISTS fn85;
|
||
CREATE FUNCTION fn85( f1 tinyint) returns tinyint
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn85(-115);
|
||
fn85(-115)
|
||
-116
|
||
DROP FUNCTION IF EXISTS fn86;
|
||
CREATE FUNCTION fn86( f1 tinyint unsigned) returns tinyint unsigned
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn86(251);
|
||
fn86(251)
|
||
252
|
||
DROP FUNCTION IF EXISTS fn87;
|
||
CREATE FUNCTION fn87( f1 tinyint unsigned zerofill) returns tinyint unsigned zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn87(201);
|
||
fn87(201)
|
||
202
|
||
DROP FUNCTION IF EXISTS fn88;
|
||
CREATE FUNCTION fn88( f1 tinyint zerofill) returns tinyint zerofill
|
||
BEGIN
|
||
set f1 = (f1 / 2); set f1 = (f1 * 2); set f1 = (f1 - 10); set f1 = (f1 + 10);
|
||
return f1;
|
||
END//
|
||
SELECT fn88(-101);
|
||
fn88(-101)
|
||
0
|
||
DROP FUNCTION IF EXISTS fn89;
|
||
CREATE FUNCTION fn89( f1 enum('1enum', '2enum')) returns enum('1enum', '2enum')
|
||
BEGIN
|
||
if f1 eq "1enum" then
|
||
set f1 = '2enum';
|
||
else
|
||
set f1 = '1enum';
|
||
END if;
|
||
return f1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'eq "1enum" then
|
||
set f1 = '2enum';
|
||
else
|
||
set f1 = '1enum';
|
||
END if;
|
||
return f1;
|
||
END' at line 3
|
||
SELECT fn89( '1enum');
|
||
ERROR 42000: FUNCTION d1.fn89 does not exist
|
||
DROP FUNCTION IF EXISTS fn90;
|
||
CREATE FUNCTION fn90( f1 set("1set", "2set")) returns set("1set", "2set")
|
||
BEGIN
|
||
if(f1 == "1set") then
|
||
set f1 = "2set";
|
||
else
|
||
set f1 = "1set";
|
||
END if;
|
||
return f1;
|
||
END//
|
||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '== "1set") then
|
||
set f1 = "2set";
|
||
else
|
||
set f1 = "1set";
|
||
END if;
|
||
return f1;
|
||
END' at line 3
|
||
SELECT fn90( '1set');
|
||
ERROR 42000: FUNCTION d1.fn90 does not exist
|
||
DROP FUNCTION IF EXISTS fn91;
|
||
CREATE FUNCTION fn91( f1 date) returns date
|
||
BEGIN
|
||
set f1 = adddate(f1, interval 31 day);
|
||
return f1;
|
||
END//
|
||
SELECT fn91('1997-12-31');
|
||
fn91('1997-12-31')
|
||
1998-01-31
|
||
DROP FUNCTION IF EXISTS fn92;
|
||
CREATE FUNCTION fn92( f1 time) returns time
|
||
BEGIN
|
||
set f1 = addtime(f1, '02:00:00.999998');
|
||
return f1;
|
||
END//
|
||
SELECT fn92( '23:59:59.999999');
|
||
fn92( '23:59:59.999999')
|
||
26:00:00
|
||
DROP FUNCTION IF EXISTS fn93;
|
||
CREATE FUNCTION fn93( f1 datetime) returns datetime
|
||
BEGIN
|
||
set f1 = addtime(f1, '1 1:1:1.000002');
|
||
return f1;
|
||
END//
|
||
SELECT fn93('1997-12-31 23:59:59.999999');
|
||
fn93('1997-12-31 23:59:59.999999')
|
||
1998-01-02 01:01:01
|
||
DROP FUNCTION IF EXISTS fn94;
|
||
CREATE FUNCTION fn94( f1 char) returns char
|
||
BEGIN
|
||
set f1 = concat('a', f1);
|
||
return f1;
|
||
END//
|
||
SELECT fn94( 'h');
|
||
fn94( 'h')
|
||
a
|
||
DROP FUNCTION IF EXISTS fn95;
|
||
CREATE FUNCTION fn95( f1 char ascii) returns char ascii
|
||
BEGIN
|
||
set f1 = concat('a', f1);
|
||
return f1;
|
||
END//
|
||
SELECT fn95('h');
|
||
fn95('h')
|
||
a
|
||
DROP FUNCTION IF EXISTS fn96;
|
||
CREATE FUNCTION fn96( f1 char binary) returns char binary
|
||
BEGIN
|
||
set f1 = concat('a', f1);
|
||
return f1;
|
||
END//
|
||
SELECT fn96( 'h');
|
||
fn96( 'h')
|
||
a
|
||
DROP FUNCTION IF EXISTS fn97;
|
||
CREATE FUNCTION fn97( f1 longtext) returns longtext
|
||
BEGIN
|
||
set f1 = concat('hello', f1);
|
||
return f1;
|
||
END//
|
||
SELECT fn97( 'world');
|
||
fn97( 'world')
|
||
helloworld
|
||
DROP FUNCTION IF EXISTS fn98;
|
||
CREATE FUNCTION fn98( f1 mediumtext) returns mediumtext
|
||
BEGIN
|
||
set f1 = concat('hello', f1);
|
||
return f1;
|
||
END//
|
||
SELECT fn98( 'world');
|
||
fn98( 'world')
|
||
helloworld
|
||
DROP FUNCTION IF EXISTS fn99;
|
||
CREATE FUNCTION fn99( f1 text) returns text
|
||
BEGIN
|
||
set f1 = concat('hello', f1);
|
||
return f1;
|
||
END//
|
||
SELECT fn99( 'world');
|
||
fn99( 'world')
|
||
helloworld
|
||
DROP FUNCTION IF EXISTS fn100;
|
||
CREATE FUNCTION fn100( f1 tinytext) returns tinytext
|
||
BEGIN
|
||
set f1 = concat('hello', f1);
|
||
return f1;
|
||
END//
|
||
SELECT fn100( 'world');
|
||
fn100( 'world')
|
||
helloworld
|
||
DROP FUNCTION IF EXISTS fn101;
|
||
CREATE FUNCTION fn101( f1 year) returns year
|
||
BEGIN
|
||
set f1 = f1 + 10;
|
||
return f1;
|
||
END//
|
||
SELECT fn101(51);
|
||
fn101(51)
|
||
2061
|
||
DROP FUNCTION IF EXISTS fn102;
|
||
CREATE FUNCTION fn102( f1 year(4)) returns year(4)
|
||
BEGIN
|
||
set f1 = f1 + 51;
|
||
return f1;
|
||
END//
|
||
SELECT fn102(1982);
|
||
fn102(1982)
|
||
2033
|
||
DROP FUNCTION IF EXISTS fn103;
|
||
CREATE FUNCTION fn103( f1 geometrycollection) returns geometrycollection
|
||
BEGIN
|
||
set f1 = f1;
|
||
return f1;
|
||
END//
|
||
SELECT fn103('\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\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?\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\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@');
|
||
fn103('\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\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?\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\0\
|
||
|