diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e5ac3ae7a8..036d0cdb9d6 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -278,6 +278,7 @@ ENDIF() SET(MYSQL_DOCS_LOCATION "" CACHE PATH "Location from where documentation is copied") MARK_AS_ADVANCED(MYSQL_DOCS_LOCATION) INSTALL(DIRECTORY Docs/ DESTINATION ${INSTALL_DOCDIR} + PATTERN "INSTALL-BINARY" EXCLUDE PATTERN "Makefile.*" EXCLUDE PATTERN "myisam.txt" EXCLUDE PATTERN "glibc*" EXCLUDE diff --git a/client/mysqltest.cc b/client/mysqltest.cc index 9281d40bd60..327b6f9246f 100644 --- a/client/mysqltest.cc +++ b/client/mysqltest.cc @@ -4460,12 +4460,13 @@ typedef struct { const char *name; uint code; + const char *text; } st_error; static st_error global_error_names[] = { #include - { 0, 0 } + { 0, 0, 0 } }; uint get_errcode_from_name(char *error_name, char *error_end) diff --git a/cmake/Makefile.am b/cmake/Makefile.am index 334c9fc7a0e..6fe1a9556be 100644 --- a/cmake/Makefile.am +++ b/cmake/Makefile.am @@ -1,5 +1,6 @@ EXTRA_DIST = \ cmake_parse_arguments.cmake \ + cpack_source_ignore_files.cmake \ package_name.cmake \ configurable_file_content.in \ check_minimal_version.cmake \ diff --git a/cmake/build_configurations/mysql_release.cmake b/cmake/build_configurations/mysql_release.cmake index 6834f006b6b..450ef9826c2 100644 --- a/cmake/build_configurations/mysql_release.cmake +++ b/cmake/build_configurations/mysql_release.cmake @@ -80,6 +80,8 @@ IF(FEATURE_SET) ENDFOREACH() ENDIF() +SET(WITHOUT_AUDIT_NULL ON CACHE BOOL "") +SET(WITHOUT_DAEMON_EXAMPLE ON CACHE BOOL "") OPTION(ENABLE_LOCAL_INFILE "" ON) SET(WITH_SSL bundled CACHE STRING "") diff --git a/cmake/configure.pl b/cmake/configure.pl index 50225a0ef5e..7f21810a8f2 100644 --- a/cmake/configure.pl +++ b/cmake/configure.pl @@ -130,12 +130,12 @@ foreach my $option (@ARGV) } if($option =~ /with-ssl=/) { - $cmakeargs = $cmakeargs." -DWITH_SSL=bundled"; + $cmakeargs = $cmakeargs." -DWITH_SSL=yes"; next; } if($option =~ /with-ssl/) { - $cmakeargs = $cmakeargs." -DWITH_SSL=yes"; + $cmakeargs = $cmakeargs." -DWITH_SSL=bundled"; next; } if($option =~ /prefix=/) diff --git a/cmake/cpack_source_ignore_files.cmake b/cmake/cpack_source_ignore_files.cmake new file mode 100644 index 00000000000..5eef20dccc6 --- /dev/null +++ b/cmake/cpack_source_ignore_files.cmake @@ -0,0 +1,40 @@ +SET(CPACK_SOURCE_IGNORE_FILES +\\\\.bzr/ +\\\\.bzr-mysql +\\\\.bzrignore +CMakeCache\\\\.txt +cmake_dist\\\\.cmake +CPackSourceConfig\\\\.cmake +CPackConfig.cmake +/cmake_install\\\\.cmake +/CTestTestfile\\\\.cmake +/CMakeFiles/ +/version_resources/ +/_CPack_Packages/ +$\\\\.gz +$\\\\.zip +/CMakeFiles/ +/version_resources/ +/_CPack_Packages/ +scripts/make_binary_distribution$ +scripts/msql2mysql$ +scripts/mysql_config$ +scripts/mysql_convert_table_format$ +scripts/mysql_find_rows$ +scripts/mysql_fix_extensions$ +scripts/mysql_install_db$ +scripts/mysql_secure_installation$ +scripts/mysql_setpermission$ +scripts/mysql_zap$ +scripts/mysqlaccess$ +scripts/mysqld_multi$ +scripts/mysqld_safe$ +scripts/mysqldumpslow$ +scripts/mysqlhotcopy$ +Makefile$ +include/config\\\\.h$ +include/my_config\\\\.h$ +/autom4te\\\\.cache/ +errmsg\\\\.sys$ +# +) diff --git a/cmake/dtrace.cmake b/cmake/dtrace.cmake index f110e2ab32c..d5566d03913 100644 --- a/cmake/dtrace.cmake +++ b/cmake/dtrace.cmake @@ -72,8 +72,29 @@ IF(ENABLE_DTRACE) ) ENDIF() +IF(CMAKE_SYSTEM_NAME MATCHES "SunOS" AND CMAKE_COMPILER_IS_GNUCXX + AND CMAKE_SIZEOF_VOID_P EQUAL 4) + IF(NOT DEFINED BUGGY_GCC_NO_DTRACE_MODULES) + EXECUTE_PROCESS( + COMMAND ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1} --version + OUTPUT_VARIABLE out) + IF(out MATCHES "3.4.6") + # This gcc causes crashes in dlopen() for dtraced shared libs, + # while standard shipped with Solaris10 3.4.3 is ok + SET(BUGGY_GCC_NO_DTRACE_MODULES 1 CACHE INTERNAL "") + ELSE() + SET(BUGGY_GCC_NO_DTRACE_MODULES 0 CACHE INTERNAL "") + ENDIF() + ENDIF() +ENDIF() -MACRO(DTRACE_INSTRUMENT target) +FUNCTION(DTRACE_INSTRUMENT target) + IF(BUGGY_GCC_NO_DTRACE_MODULES) + GET_TARGET_PROPERTY(target_type ${target} TYPE) + IF(target_type MATCHES "MODULE_LIBRARY") + RETURN() + ENDIF() + ENDIF() IF(ENABLE_DTRACE) ADD_DEPENDENCIES(${target} gen_dtrace_header) @@ -119,7 +140,7 @@ MACRO(DTRACE_INSTRUMENT target) ENDIF() ENDIF() ENDIF() -ENDMACRO() +ENDFUNCTION() # Ugly workaround for Solaris' DTrace inability to use probes diff --git a/cmake/install_layout.cmake b/cmake/install_layout.cmake index 7a0d34d6a17..92eebebd4e2 100755 --- a/cmake/install_layout.cmake +++ b/cmake/install_layout.cmake @@ -80,7 +80,7 @@ ENDIF() SET(INSTALL_LIBDIR_STANDALONE "lib") SET(INSTALL_INCLUDEDIR_STANDALONE "include") SET(INSTALL_PLUGINDIR_STANDALONE "lib/plugin") - SET(INSTALL_DOCDIR_STANDALONE "doc") + SET(INSTALL_DOCDIR_STANDALONE "docs") SET(INSTALL_MANDIR_STANDALONE "man") SET(INSTALL_MYSQLSHAREDIR_STANDALONE "share") SET(INSTALL_SHAREDIR_STANDALONE "share") diff --git a/cmake/mysql_version.cmake b/cmake/mysql_version.cmake index d9f6b777536..3a61bcf40ab 100644 --- a/cmake/mysql_version.cmake +++ b/cmake/mysql_version.cmake @@ -108,17 +108,7 @@ IF(NOT CPACK_SOURCE_PACKAGE_FILE_NAME) ENDIF() SET(CPACK_PACKAGE_VENDOR "Sun Microsystems, Inc") SET(CPACK_SOURCE_GENERATOR "TGZ") -SET(CPACK_SOURCE_IGNORE_FILES - \\\\.bzr/ - \\\\.bzr-mysql - .bzrignore - CMakeCache.txt - /CMakeFiles/ - /version_resources/ - /_CPack_Packages/ - $.gz - $.zip -) +INCLUDE(cpack_source_ignore_files) # Defintions for windows version resources SET(PRODUCTNAME "MySQL Server") diff --git a/cmake/os/SunOS.cmake b/cmake/os/SunOS.cmake index 84ac64d8af3..e932e6c2b74 100644 --- a/cmake/os/SunOS.cmake +++ b/cmake/os/SunOS.cmake @@ -30,7 +30,7 @@ SET(LIBM m) # CMake defined -lthread as thread flag. This crashes in dlopen # when trying to load plugins workaround with -lpthread -SET(CMAKE_THREADS_LIBS_INIT -lpthread CACHE INTERNAL "") +SET(CMAKE_THREADS_LIBS_INIT -lpthread CACHE INTERNAL "" FORCE) # Solaris specific large page support CHECK_SYMBOL_EXISTS(MHA_MAPSIZE_VA sys/mman.h HAVE_DECL_MHA_MAPSIZE_VA) diff --git a/extra/comp_err.c b/extra/comp_err.c index 0b894dae477..e4a07caa2ef 100644 --- a/extra/comp_err.c +++ b/extra/comp_err.c @@ -199,11 +199,34 @@ int main(int argc, char *argv[]) } +static void print_escaped_string(FILE *f, const char *str) +{ + const char *tmp = str; + + while (tmp[0] != 0) + { + switch (tmp[0]) + { + case '\\': fprintf(f, "\\\\"); break; + case '\'': fprintf(f, "\\\'"); break; + case '\"': fprintf(f, "\\\""); break; + case '\n': fprintf(f, "\\n"); break; + case '\r': fprintf(f, "\\r"); break; + default: fprintf(f, "%c", tmp[0]); + } + tmp++; + } +} + + static int create_header_files(struct errors *error_head) { uint er_last; FILE *er_definef, *sql_statef, *er_namef; struct errors *tmp_error; + struct message *er_msg; + const char *er_text; + DBUG_ENTER("create_header_files"); LINT_INIT(er_last); @@ -245,9 +268,12 @@ static int create_header_files(struct errors *error_head) "{ %-40s,\"%s\", \"%s\" },\n", tmp_error->er_name, tmp_error->sql_code1, tmp_error->sql_code2); /*generating er_name file */ - fprintf(er_namef, "{ \"%s\", %d },\n", tmp_error->er_name, - tmp_error->d_code); - + er_msg= find_message(tmp_error, default_language, 0); + er_text = (er_msg ? er_msg->text : ""); + fprintf(er_namef, "{ \"%s\", %d, \"", tmp_error->er_name, + tmp_error->d_code); + print_escaped_string(er_namef, er_text); + fprintf(er_namef, "\" },\n"); } /* finishing off with mysqld_error.h */ fprintf(er_definef, "#define ER_ERROR_LAST %d\n", er_last); diff --git a/extra/perror.c b/extra/perror.c index a98a4fc3d1b..d9c636ceb8c 100644 --- a/extra/perror.c +++ b/extra/perror.c @@ -184,6 +184,45 @@ static const char *get_ha_error_msg(int code) return NullS; } +typedef struct +{ + const char *name; + uint code; + const char *text; +} st_error; + +static st_error global_error_names[] = +{ +#include + { 0, 0, 0 } +}; + +/** + Lookup an error by code in the global_error_names array. + @param code the code to lookup + @param [out] name_ptr the error name, when found + @param [out] msg_ptr the error text, when found + @return 1 when found, otherwise 0 +*/ +int get_ER_error_msg(uint code, const char **name_ptr, const char **msg_ptr) +{ + st_error *tmp_error; + + tmp_error= & global_error_names[0]; + + while (tmp_error->name != NULL) + { + if (tmp_error->code == code) + { + *name_ptr= tmp_error->name; + *msg_ptr= tmp_error->text; + return 1; + } + tmp_error++; + } + + return 0; +} #if defined(__WIN__) static my_bool print_win_error_msg(DWORD error, my_bool verbose) @@ -211,6 +250,7 @@ int main(int argc,char *argv[]) { int error,code,found; const char *msg; + const char *name; char *unknown_error = 0; #if defined(__WIN__) my_bool skip_win_message= 0; @@ -316,6 +356,14 @@ int main(int argc,char *argv[]) else puts(msg); } + if (get_ER_error_msg(code, & name, & msg)) + { + found= 1; + if (verbose) + printf("MySQL error code %3d (%s): %s\n", code, name, msg); + else + puts(msg); + } if (!found) { #if defined(__WIN__) diff --git a/include/atomic/x86-gcc.h b/include/atomic/x86-gcc.h index 77c32f8d70c..61b94a48568 100644 --- a/include/atomic/x86-gcc.h +++ b/include/atomic/x86-gcc.h @@ -88,7 +88,7 @@ */ #define make_atomic_add_body64 \ int64 tmp=*a; \ - while (!my_atomic_cas64(a, &tmp, tmp+v)); \ + while (!my_atomic_cas64(a, &tmp, tmp+v)) ; \ v=tmp; /* diff --git a/include/my_atomic.h b/include/my_atomic.h index 9914fd2428f..8ba3e201730 100644 --- a/include/my_atomic.h +++ b/include/my_atomic.h @@ -77,13 +77,13 @@ #ifndef make_atomic_add_body #define make_atomic_add_body(S) \ int ## S tmp=*a; \ - while (!my_atomic_cas ## S(a, &tmp, tmp+v)); \ + while (!my_atomic_cas ## S(a, &tmp, tmp+v)) ; \ v=tmp; #endif #ifndef make_atomic_fas_body #define make_atomic_fas_body(S) \ int ## S tmp=*a; \ - while (!my_atomic_cas ## S(a, &tmp, v)); \ + while (!my_atomic_cas ## S(a, &tmp, v)) ; \ v=tmp; #endif #ifndef make_atomic_load_body diff --git a/include/my_global.h b/include/my_global.h index dc28682f1f1..b4bc61e0a48 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -83,12 +83,6 @@ #endif #endif /* _WIN32... */ -#ifdef EMBEDDED_LIBRARY -#ifdef WITH_PERFSCHEMA_STORAGE_ENGINE -#undef WITH_PERFSCHEMA_STORAGE_ENGINE -#endif -#endif /* EMBEDDED_LIBRARY */ - #ifdef WITH_PERFSCHEMA_STORAGE_ENGINE #define HAVE_PSI_INTERFACE #endif /* WITH_PERFSCHEMA_STORAGE_ENGINE */ diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index c1c5ce3ec97..41ca574ab05 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -118,6 +118,7 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command, net_clear_error(net); thd->current_stmt= stmt; + thd->thread_stack= (char*) &thd; thd->store_globals(); // Fix if more than one connect /* We have to call free_old_query before we start to fill mysql->fields diff --git a/mysql-test/CMakeLists.txt b/mysql-test/CMakeLists.txt index 75e7502751c..794f286ac56 100644 --- a/mysql-test/CMakeLists.txt +++ b/mysql-test/CMakeLists.txt @@ -23,6 +23,7 @@ INSTALL( PATTERN "mtr.out*" EXCLUDE PATTERN ".cvsignore" EXCLUDE PATTERN "*.am" EXCLUDE + PATTERN "*.in" EXCLUDE ) diff --git a/mysql-test/include/handler.inc b/mysql-test/include/handler.inc index 2de514f27bb..0031cb68647 100644 --- a/mysql-test/include/handler.inc +++ b/mysql-test/include/handler.inc @@ -1704,3 +1704,56 @@ unlock tables; --echo # already released by commit. handler t1 close; drop tables t1, t2; + + +--echo # +--echo # Bug#51355 handler stmt cause assertion in +--echo # bool MDL_context::try_acquire_lock(MDL_request*) +--echo # + +--disable_warnings +DROP TABLE IF EXISTS t1; +--enable_warnings + +connect(con51355, localhost, root); + +--echo # Connection default +connection default; +CREATE TABLE t1(id INT, KEY id(id)); +HANDLER t1 OPEN; + +--echo # Connection con51355 +connection con51355; +--echo # Sending: +--send DROP TABLE t1 + +--echo # Connection default +connection default; +--echo # This I_S query will cause the handler table to be closed and +--echo # the metadata lock to be released. This will allow DROP TABLE +--echo # to proceed. Waiting for the table to be removed. +let $wait_condition= + SELECT COUNT(*) = 0 FROM information_schema.tables WHERE table_name = "t1"; +--source include/wait_condition.inc + +--echo # Connection con51355 +connection con51355; +--echo # Reaping: DROP TABLE t1 +--reap + +--echo # Connection default +connection default; +--error ER_NO_SUCH_TABLE +HANDLER t1 READ id NEXT; +# This caused an assertion +--error ER_NO_SUCH_TABLE +HANDLER t1 READ id NEXT; + +HANDLER t1 CLOSE; +--echo # Connection con51355 +connection con51355; +disconnect con51355; +--source include/wait_until_disconnected.inc +--echo # Connection default +connection default; + diff --git a/mysql-test/include/mtr_warnings.sql b/mysql-test/include/mtr_warnings.sql index 9378329353b..dc21410c435 100644 --- a/mysql-test/include/mtr_warnings.sql +++ b/mysql-test/include/mtr_warnings.sql @@ -201,6 +201,8 @@ INSERT INTO global_suppressions VALUES ("==[0-9]*== For more details"), /* This comes with innodb plugin tests */ ("==[0-9]*== Warning: set address range perms: large range"), + /* valgrind-3.5.0 dumps this */ + ("==[0-9]*== Command: "), /* valgrind warnings: invalid file descriptor -1 in syscall write()/read(). Bug #50414 */ diff --git a/mysql-test/r/errors.result b/mysql-test/r/errors.result index 79474b960f5..a3a8fe0b147 100644 --- a/mysql-test/r/errors.result +++ b/mysql-test/r/errors.result @@ -61,10 +61,10 @@ create table t1 (a int unique); create table t2 (a int); drop function if exists f1; Warnings: -Note 1305 FUNCTION f1 does not exist +Note 1305 FUNCTION test.f1 does not exist drop function if exists f2; Warnings: -Note 1305 FUNCTION f2 does not exist +Note 1305 FUNCTION test.f2 does not exist create function f1() returns int begin insert into t1 (a) values (1); diff --git a/mysql-test/r/grant.result b/mysql-test/r/grant.result index 542a056c68c..b182ee5656c 100644 --- a/mysql-test/r/grant.result +++ b/mysql-test/r/grant.result @@ -1231,7 +1231,7 @@ Warnings: Note 1051 Unknown table 'test' drop function if exists test_function; Warnings: -Note 1305 FUNCTION test_function does not exist +Note 1305 FUNCTION test.test_function does not exist drop view if exists v1; Warnings: Note 1051 Unknown table 'test.v1' diff --git a/mysql-test/r/handler_innodb.result b/mysql-test/r/handler_innodb.result index 58083194b83..08d2fc58e8a 100644 --- a/mysql-test/r/handler_innodb.result +++ b/mysql-test/r/handler_innodb.result @@ -1685,3 +1685,28 @@ unlock tables; # already released by commit. handler t1 close; drop tables t1, t2; +# +# Bug#51355 handler stmt cause assertion in +# bool MDL_context::try_acquire_lock(MDL_request*) +# +DROP TABLE IF EXISTS t1; +# Connection default +CREATE TABLE t1(id INT, KEY id(id)); +HANDLER t1 OPEN; +# Connection con51355 +# Sending: +DROP TABLE t1; +# Connection default +# This I_S query will cause the handler table to be closed and +# the metadata lock to be released. This will allow DROP TABLE +# to proceed. Waiting for the table to be removed. +# Connection con51355 +# Reaping: DROP TABLE t1 +# Connection default +HANDLER t1 READ id NEXT; +ERROR 42S02: Table 'test.t1' doesn't exist +HANDLER t1 READ id NEXT; +ERROR 42S02: Table 'test.t1' doesn't exist +HANDLER t1 CLOSE; +# Connection con51355 +# Connection default diff --git a/mysql-test/r/handler_myisam.result b/mysql-test/r/handler_myisam.result index dd199e40574..2625222ec1a 100644 --- a/mysql-test/r/handler_myisam.result +++ b/mysql-test/r/handler_myisam.result @@ -1682,6 +1682,31 @@ unlock tables; handler t1 close; drop tables t1, t2; # +# Bug#51355 handler stmt cause assertion in +# bool MDL_context::try_acquire_lock(MDL_request*) +# +DROP TABLE IF EXISTS t1; +# Connection default +CREATE TABLE t1(id INT, KEY id(id)); +HANDLER t1 OPEN; +# Connection con51355 +# Sending: +DROP TABLE t1; +# Connection default +# This I_S query will cause the handler table to be closed and +# the metadata lock to be released. This will allow DROP TABLE +# to proceed. Waiting for the table to be removed. +# Connection con51355 +# Reaping: DROP TABLE t1 +# Connection default +HANDLER t1 READ id NEXT; +ERROR 42S02: Table 'test.t1' doesn't exist +HANDLER t1 READ id NEXT; +ERROR 42S02: Table 'test.t1' doesn't exist +HANDLER t1 CLOSE; +# Connection con51355 +# Connection default +# # BUG #46456: HANDLER OPEN + TRUNCATE + DROP (temporary) TABLE, crash # CREATE TABLE t1 AS SELECT 1 AS f1; diff --git a/mysql-test/r/implicit_commit.result b/mysql-test/r/implicit_commit.result index 8c330550a3b..d568d05e7b7 100644 --- a/mysql-test/r/implicit_commit.result +++ b/mysql-test/r/implicit_commit.result @@ -658,6 +658,11 @@ YES # # SQLCOM_RESET # +INSERT INTO db1.trans (a) VALUES (1); +reset query cache; +CALL db1.test_if_commit(); +IMPLICIT COMMIT +YES # # SQLCOM_PURGE # diff --git a/mysql-test/r/innodb_mysql.result b/mysql-test/r/innodb_mysql.result index bccb5caf7d4..085e5440712 100644 --- a/mysql-test/r/innodb_mysql.result +++ b/mysql-test/r/innodb_mysql.result @@ -2297,3 +2297,28 @@ t2 CREATE TABLE `t2` ( CONSTRAINT `x` FOREIGN KEY (`fk`) REFERENCES `t1` (`pk`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 drop table t2, t1; +# +# Bug#44613 SELECT statement inside FUNCTION takes a shared lock +# +DROP TABLE IF EXISTS t1; +DROP FUNCTION IF EXISTS f1; +CREATE TABLE t1(x INT PRIMARY KEY, y INT) ENGINE=innodb; +INSERT INTO t1 VALUES (1, 0), (2, 0); +CREATE FUNCTION f1(z INT) RETURNS INT READS SQL DATA +RETURN (SELECT x FROM t1 WHERE x = z); +# Connection default +START TRANSACTION; +SELECT f1(1); +f1(1) +1 +# Connection con2 +START TRANSACTION; +SELECT f1(1); +f1(1) +1 +UPDATE t1 SET y = 1 WHERE x = 1; +COMMIT; +# Connection default +COMMIT; +DROP TABLE t1; +DROP FUNCTION f1; diff --git a/mysql-test/r/lock_multi.result b/mysql-test/r/lock_multi.result index c440dafb228..99e1f54e762 100644 --- a/mysql-test/r/lock_multi.result +++ b/mysql-test/r/lock_multi.result @@ -462,3 +462,17 @@ ERROR 70100: Query execution was interrupted unlock tables; # Switching to connection 'default' drop table t3; +# +# Test for the bug where upgradable metadata locks was acquired +# even if the table to altered was temporary. +# Bug found while working on the related bug #51240. +# +DROP TABLE IF EXISTS t1; +CREATE TABLE t1 (id INT); +LOCK TABLE t1 WRITE; +# Connection con1 +CREATE TEMPORARY TABLE t1 (id INT); +ALTER TABLE t1 ADD COLUMN j INT; +# Connection default +UNLOCK TABLES; +DROP TABLE t1; diff --git a/mysql-test/r/merge.result b/mysql-test/r/merge.result index 7a97ced5c1f..a77f3a75f16 100644 --- a/mysql-test/r/merge.result +++ b/mysql-test/r/merge.result @@ -2605,4 +2605,14 @@ ERROR 42000: FUNCTION test.f1 does not exist execute stmt; ERROR 42000: FUNCTION test.f1 does not exist drop table t4, t3, t2, t1; +# +# Bug#51240 ALTER TABLE of a locked MERGE table fails +# +DROP TABLE IF EXISTS m1, t1; +CREATE TABLE t1 (c1 INT); +CREATE TABLE m1 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1); +LOCK TABLE m1 WRITE; +ALTER TABLE m1 ADD INDEX (c1); +UNLOCK TABLES; +DROP TABLE m1, t1; End of 6.0 tests diff --git a/mysql-test/r/perror-win.result b/mysql-test/r/perror-win.result index 1d42235cc14..139b566757f 100644 --- a/mysql-test/r/perror-win.result +++ b/mysql-test/r/perror-win.result @@ -2,5 +2,6 @@ MySQL error code 150: Foreign key constraint is incorrectly formed Win32 error code 150: System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed. OS error code 23: Too many open files in system Win32 error code 23: Data error (cyclic redundancy check). +MySQL error code 1062 (ER_DUP_ENTRY): Duplicate entry '%-.192s' for key %d Win32 error code 1062: The service has not been started. Illegal error code: 30000 diff --git a/mysql-test/r/perror.result b/mysql-test/r/perror.result index 4946523bc42..74842b77ba1 100644 --- a/mysql-test/r/perror.result +++ b/mysql-test/r/perror.result @@ -1 +1,6 @@ Illegal error code: 10000 +MySQL error code 1062 (ER_DUP_ENTRY): Duplicate entry '%-.192s' for key %d +MySQL error code 1076 (ER_READY): %s: ready for connections. +Version: '%s' socket: '%s' port: %d +MySQL error code 1459 (ER_TABLE_NEEDS_UPGRADE): Table upgrade required. Please do "REPAIR TABLE `%-.32s`" or dump/reload to fix it! +MySQL error code 1461 (ER_MAX_PREPARED_STMT_COUNT_REACHED): Can't create more than max_prepared_stmt_count statements (current value: %lu) diff --git a/mysql-test/r/query_cache.result b/mysql-test/r/query_cache.result index eab0c51f974..112a86e0c88 100644 --- a/mysql-test/r/query_cache.result +++ b/mysql-test/r/query_cache.result @@ -1721,3 +1721,14 @@ SELECT SQL_CACHE * FROM t1 WHERE a IN ERROR 42S22: Unknown column 'SQL_NO_CACHE' in 'field list' DROP TABLE t1; End of 5.1 tests +# +# Bug#51336 Assert in reload_acl_and_cache during RESET QUERY CACHE +# +DROP TABLE IF EXISTS t1; +CREATE TABLE t1(id INT); +START TRANSACTION; +SELECT * FROM t1; +id +RESET QUERY CACHE; +COMMIT; +DROP TABLE t1; diff --git a/mysql-test/r/signal.result b/mysql-test/r/signal.result index 7fb09b87778..410abffcdf0 100644 --- a/mysql-test/r/signal.result +++ b/mysql-test/r/signal.result @@ -2181,7 +2181,7 @@ drop procedure peter_p1 $$ drop procedure peter_p2 $$ drop procedure if exists peter_p3 $$ Warnings: -Note 1305 PROCEDURE peter_p3 does not exist +Note 1305 PROCEDURE test.peter_p3 does not exist create procedure peter_p3() begin declare continue handler for sqlexception diff --git a/mysql-test/r/sp-error.result b/mysql-test/r/sp-error.result index 4cefee95903..0f658ee831e 100644 --- a/mysql-test/r/sp-error.result +++ b/mysql-test/r/sp-error.result @@ -46,7 +46,7 @@ call foo()| ERROR 42000: PROCEDURE test.foo does not exist drop procedure if exists foo| Warnings: -Note 1305 PROCEDURE foo does not exist +Note 1305 PROCEDURE test.foo does not exist show create procedure foo| ERROR 42000: PROCEDURE foo does not exist show create function foo| @@ -1028,7 +1028,7 @@ drop table t1| drop function bug_13627_f| drop function if exists bug12329; Warnings: -Note 1305 FUNCTION bug12329 does not exist +Note 1305 FUNCTION test.bug12329 does not exist create table t1 as select 1 a; create table t2 as select 1 a; create function bug12329() returns int return (select a from t1); diff --git a/mysql-test/r/sp-vars.result b/mysql-test/r/sp-vars.result index f167986e82c..6f5b6dfb224 100644 --- a/mysql-test/r/sp-vars.result +++ b/mysql-test/r/sp-vars.result @@ -394,10 +394,10 @@ CASE expression tests. DROP PROCEDURE IF EXISTS p1; Warnings: -Note 1305 PROCEDURE p1 does not exist +Note 1305 PROCEDURE test.p1 does not exist DROP PROCEDURE IF EXISTS p2; Warnings: -Note 1305 PROCEDURE p2 does not exist +Note 1305 PROCEDURE test.p2 does not exist DROP TABLE IF EXISTS t1; Warnings: Note 1051 Unknown table 't1' diff --git a/mysql-test/r/sp.result b/mysql-test/r/sp.result index b656680326b..cd7874be414 100644 --- a/mysql-test/r/sp.result +++ b/mysql-test/r/sp.result @@ -2695,10 +2695,10 @@ delete from t3| insert into t3 values(1)| drop procedure if exists bug7992_1| Warnings: -Note 1305 PROCEDURE bug7992_1 does not exist +Note 1305 PROCEDURE test.bug7992_1 does not exist drop procedure if exists bug7992_2| Warnings: -Note 1305 PROCEDURE bug7992_2 does not exist +Note 1305 PROCEDURE test.bug7992_2 does not exist create procedure bug7992_1() begin declare i int; diff --git a/mysql-test/r/sp_notembedded.result b/mysql-test/r/sp_notembedded.result index 228fe008447..931e66dba73 100644 --- a/mysql-test/r/sp_notembedded.result +++ b/mysql-test/r/sp_notembedded.result @@ -21,11 +21,11 @@ end| call bug4902_2()| show warnings| Level Code Message -Note 1305 PROCEDURE bug4902_2 does not exist +Note 1305 PROCEDURE test.bug4902_2 does not exist call bug4902_2()| show warnings| Level Code Message -Note 1305 PROCEDURE bug4902_2 does not exist +Note 1305 PROCEDURE test.bug4902_2 does not exist drop procedure bug4902_2| drop table if exists t1| create table t1 ( diff --git a/mysql-test/r/strict.result b/mysql-test/r/strict.result index fa4096cb424..a835f021d3a 100644 --- a/mysql-test/r/strict.result +++ b/mysql-test/r/strict.result @@ -1183,7 +1183,7 @@ drop table t1; create table t1 (col1 tinyint); drop procedure if exists t1; Warnings: -Note 1305 PROCEDURE t1 does not exist +Note 1305 PROCEDURE test.t1 does not exist create procedure t1 () begin declare exit handler for sqlexception select'a'; insert into t1 values (200); end;| call t1(); diff --git a/mysql-test/r/udf.result b/mysql-test/r/udf.result index fbf87b2e4cc..4ddf427df8c 100644 --- a/mysql-test/r/udf.result +++ b/mysql-test/r/udf.result @@ -392,6 +392,52 @@ a 4 DROP FUNCTION sequence; DROP TABLE t1,t2; +drop function if exists test.metaphon; +drop function if exists metaphon; +CREATE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB"; +select metaphon("Hello"); +metaphon("Hello") +HL +drop function if exists test.metaphon; +Warnings: +Note 1305 FUNCTION test.metaphon does not exist +select metaphon("Hello"); +metaphon("Hello") +HL +drop function metaphon; +CREATE FUNCTION test.metaphon(a TEXT) RETURNS TEXT return "This is a SF"; +create database db_31767; +use db_31767; +CREATE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB"; +use test; +select metaphon("Hello"); +metaphon("Hello") +HL +select test.metaphon("Hello"); +test.metaphon("Hello") +This is a SF +drop function metaphon; +select metaphon("Hello"); +metaphon("Hello") +This is a SF +drop function metaphon; +use db_31767; +drop database db_31767; +drop function if exists no_such_func; +Warnings: +Note 1305 FUNCTION (UDF) no_such_func does not exist +drop function no_such_func; +ERROR 42000: FUNCTION (UDF) no_such_func does not exist +drop function if exists test.no_such_func; +Warnings: +Note 1305 FUNCTION test.no_such_func does not exist +drop function test.no_such_func; +ERROR 42000: FUNCTION test.no_such_func does not exist +drop procedure if exists no_such_proc; +ERROR 3D000: No database selected +drop procedure no_such_proc; +ERROR 3D000: No database selected +use test; # # Bug#46259: 5.0.83 -> 5.1.36, query doesn't work # diff --git a/mysql-test/r/view.result b/mysql-test/r/view.result index 610f6ea2fd3..0e79446ba81 100644 --- a/mysql-test/r/view.result +++ b/mysql-test/r/view.result @@ -2086,7 +2086,7 @@ CREATE TABLE t1 ( bug_table_seq INTEGER NOT NULL); CREATE OR REPLACE VIEW v1 AS SELECT * from t1; DROP PROCEDURE IF EXISTS p1; Warnings: -Note 1305 PROCEDURE p1 does not exist +Note 1305 PROCEDURE test.p1 does not exist CREATE PROCEDURE p1 ( ) BEGIN DO (SELECT @next := IFNULL(max(bug_table_seq),0) + 1 FROM v1); @@ -4004,3 +4004,36 @@ CREATE VIEW t2 AS SELECT * FROM t1; ERROR HY000: Can't execute the query because you have a conflicting read lock UNLOCK TABLES; DROP TABLE t1, t2; +# +# Bug#48315 Metadata lock is not taken for merged views that +# use an INFORMATION_SCHEMA table +# +DROP TABLE IF EXISTS t1; +DROP VIEW IF EXISTS v1; +DROP PROCEDURE IF EXISTS p1; +# Connection default +CREATE VIEW v1 AS SELECT schema_name FROM information_schema.schemata; +CREATE TABLE t1 (str VARCHAR(50)); +CREATE PROCEDURE p1() INSERT INTO t1 SELECT * FROM v1; +# CALL p1() so the view is merged. +CALL p1(); +# Connection 3 +LOCK TABLE t1 READ; +# Connection default +# Try to CALL p1() again, this time it should block for t1. +# Sending: +CALL p1(); +# Connection 2 +# ... then try to drop the view. This should block. +# Sending: +DROP VIEW v1; +# Connection 3 +# Now allow CALL p1() to complete +UNLOCK TABLES; +# Connection default +# Reaping: CALL p1() +# Connection 2 +# Reaping: DROP VIEW v1 +# Connection default +DROP PROCEDURE p1; +DROP TABLE t1; diff --git a/mysql-test/r/warnings.result b/mysql-test/r/warnings.result index 8e70ea8b53d..70b54ffceaf 100644 --- a/mysql-test/r/warnings.result +++ b/mysql-test/r/warnings.result @@ -228,13 +228,13 @@ INSERT INTO t2 VALUES ( 'a`', 'a`' ); INSERT INTO t3 VALUES ( 'a`', 'a`', '1000-01-1' ); DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE test.sp1 does not exist DROP PROCEDURE IF EXISTS sp2; Warnings: -Note 1305 PROCEDURE sp2 does not exist +Note 1305 PROCEDURE test.sp2 does not exist DROP PROCEDURE IF EXISTS sp3; Warnings: -Note 1305 PROCEDURE sp3 does not exist +Note 1305 PROCEDURE test.sp3 does not exist CREATE PROCEDURE sp1() BEGIN DECLARE x NUMERIC ZEROFILL; diff --git a/mysql-test/suite/funcs_1/r/storedproc.result b/mysql-test/suite/funcs_1/r/storedproc.result index a077af27733..1b18298d2f3 100644 --- a/mysql-test/suite/funcs_1/r/storedproc.result +++ b/mysql-test/suite/funcs_1/r/storedproc.result @@ -145,7 +145,7 @@ END// ERROR 42000: Too big precision 256 specified for column ''. Maximum is 65. DROP PROCEDURE IF EXISTS sp1// Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( f1 DECIMAL(66, 30) ) LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple' BEGIN @@ -155,7 +155,7 @@ END// ERROR 42000: Too big precision 66 specified for column ''. Maximum is 65. DROP PROCEDURE IF EXISTS sp1// Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist DROP TABLE IF EXISTS t1_aux; DROP PROCEDURE IF EXISTS sproc_1; DROP FUNCTION IF EXISTS func_1; @@ -1826,7 +1826,7 @@ Note 1051 Unknown table 't1' create table mysql.t1( f1 char ); DROP PROCEDURE IF EXISTS sp11; Warnings: -Note 1305 PROCEDURE sp11 does not exist +Note 1305 PROCEDURE db_storedproc.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 @@ -1893,7 +1893,7 @@ alter proc -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp11; Warnings: -Note 1305 PROCEDURE sp11 does not exist +Note 1305 PROCEDURE db_storedproc.sp11 does not exist CREATE PROCEDURE sp11() SELECT * from t1; SELECT comment from mysql.proc where specific_name='sp11'; @@ -1911,7 +1911,7 @@ alter function -------------------------------------------------------------------------------- DROP FUNCTION IF EXISTS fn12; Warnings: -Note 1305 FUNCTION fn12 does not exist +Note 1305 FUNCTION db_storedproc.fn12 does not exist CREATE FUNCTION fn12() returns int return 100; SELECT comment from mysql.proc where specific_name='fn12'; @@ -3115,7 +3115,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp return f' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(f1 char ) returns char return f1; DROP FUNCTION IF EXISTS fn1; @@ -3124,7 +3124,7 @@ return f1; ERROR 42000: This version of MySQL doesn't yet support 'return value collation' DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(f1 char ascii ) returns char ascii return f1; DROP FUNCTION IF EXISTS fn1; @@ -3134,21 +3134,21 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp return f1' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(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 'not null ) returns char binary not null return f1' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(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 'not null ) returns char ascii not null return f1' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(f1 tinytext ) returns tinytext return f1; DROP FUNCTION IF EXISTS fn1; @@ -3167,28 +3167,28 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp return f1' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(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 ) returns text not null return f1' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(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 'not null ) returns mediumtext not null return f1' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(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 'not null ) returns longtext not null return f1' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(f1 tinyblob ) returns tinyblob return f1; DROP FUNCTION IF EXISTS fn1; @@ -3207,28 +3207,28 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp return f1' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(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 'not null ) returns blob not null return f1' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(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 'not null ) returns mediumblob not null return f1' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(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 'not null ) returns longblob not null return f1' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(f1 binary ) returns binary return f1; DROP FUNCTION IF EXISTS fn1; @@ -3238,7 +3238,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp return f1' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(f1 tinyint ) returns tinyint return f1; DROP FUNCTION IF EXISTS fn1; @@ -3383,21 +3383,21 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp return f1' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(f1 year(f1 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 'f1 4) ) returns year(4) return f1' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(f1 enum(f1 "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 'f1 "1enum", "2enum") ) returns enum("1enum", "2enum") return f1' at line 1 DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(f1 set(f1 "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 'f1 "1set", "2set") ) returns set("1set", "2set") @@ -3410,7 +3410,7 @@ appropriate error message -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp16; Warnings: -Note 1305 PROCEDURE sp16 does not exist +Note 1305 PROCEDURE db_storedproc.sp16 does not exist CALL sp16( 'xyz' ); ERROR 42000: PROCEDURE db_storedproc.sp16 does not exist CREATE DATABASE db1; @@ -3434,10 +3434,10 @@ 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 +Note 1305 FUNCTION db_storedproc.sp1 does not exist DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1 () BEGIN declare x enum( 'db1', 'test' ) default 'test'; @@ -3481,10 +3481,10 @@ 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 +Note 1305 PROCEDURE db_storedproc.sp1 does not exist DROP FUNCTION IF EXISTS sp1; Warnings: -Note 1305 FUNCTION sp1 does not exist +Note 1305 FUNCTION db_storedproc.sp1 does not exist set @x=null; set @y=null; CREATE PROCEDURE sp1() @@ -3557,16 +3557,16 @@ SET @x = NULL; SET @y = NULL; DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist DROP FUNCTION IF EXISTS sp1; Warnings: -Note 1305 FUNCTION sp1 does not exist +Note 1305 FUNCTION db_storedproc.sp1 does not exist DROP PROCEDURE IF EXISTS db_storedproc_3122.sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc_3122.sp1 does not exist DROP FUNCTION IF EXISTS db_storedproc_3122.sp1; Warnings: -Note 1305 FUNCTION sp1 does not exist +Note 1305 FUNCTION db_storedproc_3122.sp1 does not exist CREATE PROCEDURE sp1() BEGIN SET @x = 1; @@ -3666,7 +3666,7 @@ DROP DATABASE IF EXISTS db1; CREATE DATABASE db1; DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1 () set @x=1; CREATE PROCEDURE sp1 () set @x=2; ERROR 42000: PROCEDURE sp1 already exists @@ -3705,7 +3705,7 @@ 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 +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1 () returns int return 1; CREATE FUNCTION fn1 () returns int return 2; ERROR 42000: FUNCTION fn1 already exists @@ -3739,7 +3739,7 @@ set @x=null; set @y=null; DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1 () set @x= 1; DROP DATABASE IF EXISTS test3124; Warnings: @@ -3768,7 +3768,7 @@ providing each resides in different databases. USE db_storedproc; DROP FUNCTION IF EXISTS f1; Warnings: -Note 1305 FUNCTION f1 does not exist +Note 1305 FUNCTION db_storedproc.f1 does not exist CREATE FUNCTION f1 () returns int return 1; DROP DATABASE IF EXISTS test3125; Warnings: @@ -8699,7 +8699,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare require char; @@ -8708,7 +8708,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare restrict char; @@ -8717,7 +8717,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare return char; @@ -8726,7 +8726,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare revoke char; @@ -8735,7 +8735,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare right char; @@ -8744,7 +8744,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare rlike char; @@ -8753,7 +8753,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare schema char; @@ -8762,7 +8762,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare schemas char; @@ -8771,7 +8771,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare second_microsecond char; @@ -8780,7 +8780,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare SELECT char; @@ -8789,7 +8789,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare sensitive char; @@ -8798,7 +8798,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare separator char; @@ -8807,7 +8807,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare set char; @@ -8816,7 +8816,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare show char; @@ -8825,7 +8825,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare smallint char; @@ -8834,7 +8834,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare spatial char; @@ -8843,7 +8843,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare specific char; @@ -8852,7 +8852,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare sql char; @@ -8861,7 +8861,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare sqlexception char; @@ -8870,7 +8870,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare sqlstate char; @@ -8879,7 +8879,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare sqlwarning char; @@ -8888,7 +8888,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare sql_big_result char; @@ -8897,7 +8897,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare sql_calc_found_rows char; @@ -8906,7 +8906,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare sql_small_result char; @@ -8915,7 +8915,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare ssl char; @@ -8924,7 +8924,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare starting char; @@ -8933,7 +8933,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare straight_join char; @@ -8942,7 +8942,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare table char; @@ -8951,7 +8951,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare terminated char; @@ -8960,7 +8960,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare then char; @@ -8969,7 +8969,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare tinyblob char; @@ -8978,7 +8978,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare tinyint char; @@ -8987,7 +8987,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare tinytext char; @@ -8996,7 +8996,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare to char; @@ -9005,7 +9005,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare trailing char; @@ -9014,7 +9014,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare trigger char; @@ -9023,7 +9023,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare true char; @@ -9032,7 +9032,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare undo char; @@ -9041,7 +9041,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare union char; @@ -9050,7 +9050,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare unique char; @@ -9059,7 +9059,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare unlock char; @@ -9068,7 +9068,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare unsigned char; @@ -9077,7 +9077,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare update char; @@ -9086,7 +9086,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare usage char; @@ -9095,7 +9095,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare use char; @@ -9104,7 +9104,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare using char; @@ -9113,7 +9113,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare utc_date char; @@ -9122,7 +9122,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare utc_time char; @@ -9131,7 +9131,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare utc_timestamp char; @@ -9140,7 +9140,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare values char; @@ -9149,7 +9149,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare varbinary char; @@ -9158,7 +9158,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare varchar char; @@ -9167,7 +9167,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare varcharacter char; @@ -9176,7 +9176,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare varying char; @@ -9185,7 +9185,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare when char; @@ -9194,7 +9194,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare where char; @@ -9203,7 +9203,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare while char; @@ -9212,7 +9212,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare with char; @@ -9221,7 +9221,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare write char; @@ -9230,7 +9230,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare xor char; @@ -9239,7 +9239,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare year_month char; @@ -9248,7 +9248,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare zerofill char; @@ -9263,7 +9263,7 @@ Ensure that every possible type of condition may be declared for a stored proced -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare cond1 condition for sqlstate 'HY000'; @@ -9328,7 +9328,7 @@ CALL sp1(); DROP PROCEDURE sp1; DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare @x char; @@ -9337,7 +9337,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare x char1; @@ -9346,7 +9346,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare accessible condition for sqlstate '02000'; @@ -9356,7 +9356,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for add set @var' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare add condition for sqlstate '02000'; @@ -9367,7 +9367,7 @@ declare exit handler for add set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare all condition for sqlstate '02000'; @@ -9378,7 +9378,7 @@ declare exit handler for all set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare alter condition for sqlstate '02000'; @@ -9388,7 +9388,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for alter set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare analyze condition for sqlstate '02000'; @@ -9398,7 +9398,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for analyze set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare and condition for sqlstate '02000'; @@ -9409,7 +9409,7 @@ declare exit handler for and set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare as condition for sqlstate '02000'; @@ -9420,7 +9420,7 @@ 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 +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare asc condition for sqlstate '02000'; @@ -9431,7 +9431,7 @@ declare exit handler for asc set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare asensitive condition for sqlstate '02000'; @@ -9441,7 +9441,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for asensitive s' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare before condition for sqlstate '02000'; @@ -9451,7 +9451,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for before set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare between condition for sqlstate '02000'; @@ -9461,7 +9461,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for between set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare bigint condition for sqlstate '02000'; @@ -9471,7 +9471,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for bigint set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare binary condition for sqlstate '02000'; @@ -9481,7 +9481,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for binary set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare blob condition for sqlstate '02000'; @@ -9491,7 +9491,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for blob set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare both condition for sqlstate '02000'; @@ -9501,7 +9501,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for both set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare by condition for sqlstate '02000'; @@ -9512,7 +9512,7 @@ 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 +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare call condition for sqlstate '02000'; @@ -9522,7 +9522,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for CALL set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare cascade condition for sqlstate '02000'; @@ -9532,7 +9532,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for cascade set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare case condition for sqlstate '02000'; @@ -9542,7 +9542,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for case set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare change condition for sqlstate '02000'; @@ -9552,7 +9552,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for change set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare char condition for sqlstate '02000'; @@ -9562,7 +9562,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for char set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare character condition for sqlstate '02000'; @@ -9572,7 +9572,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for character set' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare check condition for sqlstate '02000'; @@ -9582,7 +9582,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for check set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare collate condition for sqlstate '02000'; @@ -9592,7 +9592,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for collate set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare column condition for sqlstate '02000'; @@ -9602,7 +9602,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for column set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare condition condition for sqlstate '02000'; @@ -9612,7 +9612,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for condition set' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare connection condition for sqlstate '02000'; @@ -9628,7 +9628,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for constraint s' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare continue condition for sqlstate '02000'; @@ -9638,7 +9638,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for continue set @var2 = 1;' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare convert condition for sqlstate '02000'; @@ -9648,7 +9648,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for convert set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare create condition for sqlstate '02000'; @@ -9658,7 +9658,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for create set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare cross condition for sqlstate '02000'; @@ -9668,7 +9668,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for cross set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare current_date condition for sqlstate '02000'; @@ -9678,7 +9678,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for current_da' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare current_time condition for sqlstate '02000'; @@ -9688,7 +9688,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for current_ti' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare current_timestamp condition for sqlstate '02000'; @@ -9698,7 +9698,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for curre' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare current_user condition for sqlstate '02000'; @@ -9708,7 +9708,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for current_us' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare cursor condition for sqlstate '02000'; @@ -9718,7 +9718,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for cursor set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare database condition for sqlstate '02000'; @@ -9728,7 +9728,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for database set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare databases condition for sqlstate '02000'; @@ -9738,7 +9738,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for databases set' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare day_hour condition for sqlstate '02000'; @@ -9748,7 +9748,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for day_hour set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare day_microsecond condition for sqlstate '02000'; @@ -9758,7 +9758,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for day_mic' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare day_minute condition for sqlstate '02000'; @@ -9768,7 +9768,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for day_minute s' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare day_second condition for sqlstate '02000'; @@ -9778,7 +9778,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for day_second s' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare dec condition for sqlstate '02000'; @@ -9789,7 +9789,7 @@ declare exit handler for dec set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare decimal condition for sqlstate '02000'; @@ -9799,7 +9799,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for decimal set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare declare condition for sqlstate '02000'; @@ -9809,7 +9809,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for declare set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare default condition for sqlstate '02000'; @@ -9819,7 +9819,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for default set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare delayed condition for sqlstate '02000'; @@ -9829,7 +9829,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for delayed set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare delete condition for sqlstate '02000'; @@ -9839,7 +9839,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for delete set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare desc condition for sqlstate '02000'; @@ -9849,7 +9849,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for desc set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare describe condition for sqlstate '02000'; @@ -9859,7 +9859,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for describe set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare deterministic condition for sqlstate '02000'; @@ -9869,7 +9869,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for determini' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare distinct condition for sqlstate '02000'; @@ -9879,7 +9879,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for distinct set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare distinctrow condition for sqlstate '02000'; @@ -9889,7 +9889,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for distinctrow' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare div condition for sqlstate '02000'; @@ -9900,7 +9900,7 @@ declare exit handler for div set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare double condition for sqlstate '02000'; @@ -9910,7 +9910,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for double set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare drop condition for sqlstate '02000'; @@ -9920,7 +9920,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for drop set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare dual condition for sqlstate '02000'; @@ -9930,7 +9930,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for dual set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare each condition for sqlstate '02000'; @@ -9940,7 +9940,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for each set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare else condition for sqlstate '02000'; @@ -9950,7 +9950,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for else set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare elseif condition for sqlstate '02000'; @@ -9960,7 +9960,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for elseif set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare enclosed condition for sqlstate '02000'; @@ -9970,7 +9970,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for enclosed set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare escaped condition for sqlstate '02000'; @@ -9980,7 +9980,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for escaped set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare exists condition for sqlstate '02000'; @@ -9990,7 +9990,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for exists set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare exit condition for sqlstate '02000'; @@ -10001,7 +10001,7 @@ 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 +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare explain condition for sqlstate '02000'; @@ -10011,7 +10011,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for explain set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare false condition for sqlstate '02000'; @@ -10021,7 +10021,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for false set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare fetch condition for sqlstate '02000'; @@ -10031,7 +10031,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for fetch set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare float condition for sqlstate '02000'; @@ -10041,7 +10041,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for float set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare float4 condition for sqlstate '02000'; @@ -10051,7 +10051,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for add set @var2 = ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare float8 condition for sqlstate '02000'; @@ -10061,7 +10061,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for add set @var2 = ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare for condition for sqlstate '02000'; @@ -10072,7 +10072,7 @@ declare exit handler for for set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare force condition for sqlstate '02000'; @@ -10082,7 +10082,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for force set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare foreign condition for sqlstate '02000'; @@ -10092,7 +10092,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for foreign set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare from condition for sqlstate '02000'; @@ -10102,7 +10102,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for from set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare fulltext condition for sqlstate '02000'; @@ -10112,7 +10112,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for fulltext set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare grant condition for sqlstate '02000'; @@ -10122,7 +10122,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for grant set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare group condition for sqlstate '02000'; @@ -10132,7 +10132,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for group set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare having condition for sqlstate '02000'; @@ -10142,7 +10142,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for having set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare high_priority condition for sqlstate '02000'; @@ -10152,7 +10152,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for high_prio' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare hour_microsecond condition for sqlstate '02000'; @@ -10162,7 +10162,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for hour_m' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare hour_minute condition for sqlstate '02000'; @@ -10172,7 +10172,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for hour_minute' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare hour_second condition for sqlstate '02000'; @@ -10182,7 +10182,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for hour_second' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare if condition for sqlstate '02000'; @@ -10193,7 +10193,7 @@ 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 +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare ignore condition for sqlstate '02000'; @@ -10203,7 +10203,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for ignore set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare in condition for sqlstate '02000'; @@ -10214,7 +10214,7 @@ 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 +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare index condition for sqlstate '02000'; @@ -10224,7 +10224,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for index set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare infile condition for sqlstate '02000'; @@ -10234,7 +10234,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for infile set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare inner condition for sqlstate '02000'; @@ -10244,7 +10244,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for inner set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare inout condition for sqlstate '02000'; @@ -10254,7 +10254,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for inout set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare insensitive condition for sqlstate '02000'; @@ -10264,7 +10264,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for insensitive' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare insert condition for sqlstate '02000'; @@ -10274,7 +10274,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for insert set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare int condition for sqlstate '02000'; @@ -10285,7 +10285,7 @@ declare exit handler for int set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare int1 condition for sqlstate '02000'; @@ -10295,7 +10295,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for int set @var2 = 1;' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare int2 condition for sqlstate '02000'; @@ -10305,7 +10305,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for int set @var2 = 1;' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare int3 condition for sqlstate '02000'; @@ -10315,7 +10315,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for int set @var2 = 1;' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare int4 condition for sqlstate '02000'; @@ -10325,7 +10325,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for int set @var2 = 1;' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare int8 condition for sqlstate '02000'; @@ -10335,7 +10335,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for int set @var2 = 1;' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare integer condition for sqlstate '02000'; @@ -10345,7 +10345,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for integer set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare interval condition for sqlstate '02000'; @@ -10355,7 +10355,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for interval set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare into condition for sqlstate '02000'; @@ -10365,7 +10365,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for into set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare is condition for sqlstate '02000'; @@ -10376,7 +10376,7 @@ 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 +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare iterate condition for sqlstate '02000'; @@ -10386,7 +10386,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for iterate set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare join condition for sqlstate '02000'; @@ -10396,7 +10396,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for join set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare key condition for sqlstate '02000'; @@ -10407,7 +10407,7 @@ declare exit handler for key set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare keys condition for sqlstate '02000'; @@ -10417,7 +10417,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for keys set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare kill condition for sqlstate '02000'; @@ -10427,7 +10427,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for kill set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare leading condition for sqlstate '02000'; @@ -10437,7 +10437,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for leading set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare leave condition for sqlstate '02000'; @@ -10447,7 +10447,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for leave set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare left condition for sqlstate '02000'; @@ -10457,7 +10457,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for left set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare like condition for sqlstate '02000'; @@ -10467,7 +10467,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for like set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare limit condition for sqlstate '02000'; @@ -10477,7 +10477,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for limit set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare linear condition for sqlstate '02000'; @@ -10487,7 +10487,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for int set @var2 = ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare lines condition for sqlstate '02000'; @@ -10497,7 +10497,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for lines set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare load condition for sqlstate '02000'; @@ -10507,7 +10507,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for load set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare localtime condition for sqlstate '02000'; @@ -10517,7 +10517,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for localtime set' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare localtimestamp condition for sqlstate '02000'; @@ -10527,7 +10527,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for localtim' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare lock condition for sqlstate '02000'; @@ -10537,7 +10537,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for lock set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare long condition for sqlstate '02000'; @@ -10547,7 +10547,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for long set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare longblob condition for sqlstate '02000'; @@ -10557,7 +10557,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for longblob set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare longtext condition for sqlstate '02000'; @@ -10567,7 +10567,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for longtext set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare loop condition for sqlstate '02000'; @@ -10577,7 +10577,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for loop set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare low_priority condition for sqlstate '02000'; @@ -10587,7 +10587,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for low_priori' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare master_ssl_verify_server_cert condition for sqlstate '02000'; @@ -10597,7 +10597,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handl' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare match condition for sqlstate '02000'; @@ -10607,7 +10607,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for match set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare mediumblob condition for sqlstate '02000'; @@ -10617,7 +10617,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for mediumblob s' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare mediumint condition for sqlstate '02000'; @@ -10627,7 +10627,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for mediumint set' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare mediumtext condition for sqlstate '02000'; @@ -10637,7 +10637,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for mediumtext s' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare middleint condition for sqlstate '02000'; @@ -10647,7 +10647,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for middleint set' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare minute_microsecond condition for sqlstate '02000'; @@ -10657,7 +10657,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for minu' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare minute_second condition for sqlstate '02000'; @@ -10667,7 +10667,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for minute_se' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare mod condition for sqlstate '02000'; @@ -10678,7 +10678,7 @@ declare exit handler for mod set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare modifies condition for sqlstate '02000'; @@ -10688,7 +10688,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for modifies set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare natural condition for sqlstate '02000'; @@ -10698,7 +10698,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for natural set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare not condition for sqlstate '02000'; @@ -10709,7 +10709,7 @@ declare exit handler for not set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare no_write_to_binlog condition for sqlstate '02000'; @@ -10719,7 +10719,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for no_w' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare null condition for sqlstate '02000'; @@ -10729,7 +10729,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for null set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare numeric condition for sqlstate '02000'; @@ -10739,7 +10739,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for numeric set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare on condition for sqlstate '02000'; @@ -10750,7 +10750,7 @@ 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 +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare optimize condition for sqlstate '02000'; @@ -10760,7 +10760,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for optimize set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare option condition for sqlstate '02000'; @@ -10770,7 +10770,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for option set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare optionally condition for sqlstate '02000'; @@ -10780,7 +10780,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for optionally s' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare or condition for sqlstate '02000'; @@ -10791,7 +10791,7 @@ 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 +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare order condition for sqlstate '02000'; @@ -10801,7 +10801,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for order set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare out condition for sqlstate '02000'; @@ -10812,7 +10812,7 @@ declare exit handler for out set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare outer condition for sqlstate '02000'; @@ -10822,7 +10822,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for outer set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare outfile condition for sqlstate '02000'; @@ -10832,7 +10832,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for outfile set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare precision condition for sqlstate '02000'; @@ -10842,7 +10842,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for precision set' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare primary condition for sqlstate '02000'; @@ -10852,7 +10852,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for primary set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare procedure condition for sqlstate '02000'; @@ -10862,7 +10862,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for procedure set' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare purge condition for sqlstate '02000'; @@ -10872,7 +10872,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for purge set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare range condition for sqlstate '02000'; @@ -10882,7 +10882,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for int set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare read condition for sqlstate '02000'; @@ -10892,7 +10892,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for read set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare reads condition for sqlstate '02000'; @@ -10902,7 +10902,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for reads set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare read_only condition for sqlstate '02000'; @@ -10912,7 +10912,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 4 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare read_write condition for sqlstate '02000'; @@ -10922,7 +10922,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for int set @var' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare real condition for sqlstate '02000'; @@ -10932,7 +10932,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for real set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare references condition for sqlstate '02000'; @@ -10942,7 +10942,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for references s' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare regexp condition for sqlstate '02000'; @@ -10952,7 +10952,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for regexp set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare release condition for sqlstate '02000'; @@ -10962,7 +10962,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for int set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare rename condition for sqlstate '02000'; @@ -10972,7 +10972,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for rename set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare repeat condition for sqlstate '02000'; @@ -10982,7 +10982,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for repeat set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare replace condition for sqlstate '02000'; @@ -10992,7 +10992,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for replace set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare require condition for sqlstate '02000'; @@ -11002,7 +11002,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for require set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare restrict condition for sqlstate '02000'; @@ -11012,7 +11012,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for restrict set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare return condition for sqlstate '02000'; @@ -11022,7 +11022,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for return set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare revoke condition for sqlstate '02000'; @@ -11032,7 +11032,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for revoke set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare right condition for sqlstate '02000'; @@ -11042,7 +11042,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for right set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare rlike condition for sqlstate '02000'; @@ -11052,7 +11052,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for rlike set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare schema condition for sqlstate '02000'; @@ -11062,7 +11062,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for schema set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare schemas condition for sqlstate '02000'; @@ -11072,7 +11072,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for schemas set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare second_microsecond condition for sqlstate '02000'; @@ -11082,7 +11082,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for seco' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare select condition for sqlstate '02000'; @@ -11092,7 +11092,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for SELECT set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sensitive condition for sqlstate '02000'; @@ -11102,7 +11102,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for sensitive set' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare separator condition for sqlstate '02000'; @@ -11112,7 +11112,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for separator set' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare set condition for sqlstate '02000'; @@ -11123,7 +11123,7 @@ declare exit handler for set set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare show condition for sqlstate '02000'; @@ -11133,7 +11133,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for show set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare smallint condition for sqlstate '02000'; @@ -11143,7 +11143,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for smallint set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare spatial condition for sqlstate '02000'; @@ -11153,7 +11153,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for spatial set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare specific condition for sqlstate '02000'; @@ -11163,7 +11163,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for specific set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sql condition for sqlstate '02000'; @@ -11174,7 +11174,7 @@ declare exit handler for sql set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sqlexception condition for sqlstate '02000'; @@ -11184,7 +11184,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for sqlexcepti' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sqlstate condition for sqlstate '02000'; @@ -11194,7 +11194,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for sqlstate set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sqlwarning condition for sqlstate '02000'; @@ -11204,7 +11204,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for sqlwarning s' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sql_big_result condition for sqlstate '02000'; @@ -11214,7 +11214,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for sql_big_' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sql_calc_found_rows condition for sqlstate '02000'; @@ -11224,7 +11224,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for sql' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sql_small_result condition for sqlstate '02000'; @@ -11234,7 +11234,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for sql_sm' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare ssl condition for sqlstate '02000'; @@ -11245,7 +11245,7 @@ declare exit handler for ssl set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare starting condition for sqlstate '02000'; @@ -11255,7 +11255,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for starting set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare straight_join condition for sqlstate '02000'; @@ -11265,7 +11265,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for straight_' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare table condition for sqlstate '02000'; @@ -11275,7 +11275,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for table set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare terminated condition for sqlstate '02000'; @@ -11285,7 +11285,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for terminated s' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare then condition for sqlstate '02000'; @@ -11295,7 +11295,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for then set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare tinyblob condition for sqlstate '02000'; @@ -11305,7 +11305,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for tinyblob set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare tinyint condition for sqlstate '02000'; @@ -11315,7 +11315,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for tinyint set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare tinytext condition for sqlstate '02000'; @@ -11325,7 +11325,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for tinytext set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare to condition for sqlstate '02000'; @@ -11336,7 +11336,7 @@ 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 +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare trailing condition for sqlstate '02000'; @@ -11346,7 +11346,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for trailing set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare trigger condition for sqlstate '02000'; @@ -11356,7 +11356,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for trigger set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare true condition for sqlstate '02000'; @@ -11366,7 +11366,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for true set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare undo condition for sqlstate '02000'; @@ -11376,7 +11376,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for undo set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare union condition for sqlstate '02000'; @@ -11386,7 +11386,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for union set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare unique condition for sqlstate '02000'; @@ -11396,7 +11396,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for unique set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare unlock condition for sqlstate '02000'; @@ -11406,7 +11406,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for unlock set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare unsigned condition for sqlstate '02000'; @@ -11416,7 +11416,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for unsigned set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare update condition for sqlstate '02000'; @@ -11426,7 +11426,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for update set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare usage condition for sqlstate '02000'; @@ -11436,7 +11436,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for usage set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare use condition for sqlstate '02000'; @@ -11447,7 +11447,7 @@ declare exit handler for USE set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare using condition for sqlstate '02000'; @@ -11457,7 +11457,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for using set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare utc_date condition for sqlstate '02000'; @@ -11467,7 +11467,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for utc_date set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare utc_time condition for sqlstate '02000'; @@ -11477,7 +11477,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for utc_time set @' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare utc_timestamp condition for sqlstate '02000'; @@ -11487,7 +11487,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for utc_times' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare values condition for sqlstate '02000'; @@ -11497,7 +11497,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for values set @var2' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare varbinary condition for sqlstate '02000'; @@ -11507,7 +11507,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for varbinary set' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare varchar condition for sqlstate '02000'; @@ -11517,7 +11517,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for varchar set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare varcharacter condition for sqlstate '02000'; @@ -11527,7 +11527,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for varcharact' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare varying condition for sqlstate '02000'; @@ -11537,7 +11537,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for varying set @va' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare when condition for sqlstate '02000'; @@ -11547,7 +11547,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for when set @var2 = 1' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare where condition for sqlstate '02000'; @@ -11557,7 +11557,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for where set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare while condition for sqlstate '02000'; @@ -11567,7 +11567,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for while set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare with condition for sqlstate '02000'; @@ -11578,7 +11578,7 @@ declare exit handler for with set @var2 = 1; END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare write condition for sqlstate '02000'; @@ -11588,7 +11588,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for write set @var2 =' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare xor condition for sqlstate '02000'; @@ -11599,7 +11599,7 @@ declare exit handler for xor set @var2 = 1; ' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare year_month condition for sqlstate '02000'; @@ -11609,7 +11609,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp declare exit handler for year_month s' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare zerofill condition for sqlstate '02000'; @@ -11625,7 +11625,7 @@ a stored procedure (continue- handler_type ). -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare continue handler for sqlstate '23000' set @x2 = 1; @@ -11639,7 +11639,7 @@ CALL sp1(); DROP PROCEDURE sp1; DROP PROCEDURE IF EXISTS handler1; Warnings: -Note 1305 PROCEDURE handler1 does not exist +Note 1305 PROCEDURE db_storedproc.handler1 does not exist CREATE PROCEDURE handler1() BEGIN declare undo handler for sqlstate '23000' set @x2 = 1; @@ -11654,7 +11654,7 @@ set @x = 1; insert into t values ' at line 3 DROP PROCEDURE IF EXISTS handler1; Warnings: -Note 1305 PROCEDURE handler1 does not exist +Note 1305 PROCEDURE db_storedproc.handler1 does not exist CREATE PROCEDURE handler1() BEGIN declare continueinv handler for sqlstate '2300' set @x2 = 1; @@ -11670,7 +11670,7 @@ insert into t values (1); s' at line 3 DROP PROCEDURE IF EXISTS handler1; Warnings: -Note 1305 PROCEDURE handler1 does not exist +Note 1305 PROCEDURE db_storedproc.handler1 does not exist CREATE PROCEDURE handler1() BEGIN declare undoinv handler for sqlstate '2300' set @x2 = 1; @@ -11686,7 +11686,7 @@ insert into t values (1); s' at line 3 DROP PROCEDURE IF EXISTS handler1; Warnings: -Note 1305 PROCEDURE handler1 does not exist +Note 1305 PROCEDURE db_storedproc.handler1 does not exist CREATE PROCEDURE handler1 () BEGIN declare exitinv handler for sqlstate '2300' set @x2 = 1; @@ -11702,7 +11702,7 @@ insert into t values (1); s' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare accessible handler for sqlstate '02000' set @var2 = 1; @@ -11711,7 +11711,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare add handler for sqlstate '02000' set @var2 = 1; @@ -11720,7 +11720,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare all handler for sqlstate '02000' set @var2 = 1; @@ -11729,7 +11729,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare alter handler for sqlstate '02000' set @var2 = 1; @@ -11738,7 +11738,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare analyze handler for sqlstate '02000' set @var2 = 1; @@ -11747,7 +11747,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare and handler for sqlstate '02000' set @var2 = 1; @@ -11756,7 +11756,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare as handler for sqlstate '02000' set @var2 = 1; @@ -11765,7 +11765,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare asc handler for sqlstate '02000' set @var2 = 1; @@ -11774,7 +11774,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare asensitive handler for sqlstate '02000' set @var2 = 1; @@ -11783,7 +11783,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare before handler for sqlstate '02000' set @var2 = 1; @@ -11792,7 +11792,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare between handler for sqlstate '02000' set @var2 = 1; @@ -11801,7 +11801,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare bigint handler for sqlstate '02000' set @var2 = 1; @@ -11810,7 +11810,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare binary handler for sqlstate '02000' set @var2 = 1; @@ -11819,7 +11819,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare blob handler for sqlstate '02000' set @var2 = 1; @@ -11828,7 +11828,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare both handler for sqlstate '02000' set @var2 = 1; @@ -11837,7 +11837,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare by handler for sqlstate '02000' set @var2 = 1; @@ -11846,7 +11846,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare call handler for sqlstate '02000' set @var2 = 1; @@ -11855,7 +11855,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare cascade handler for sqlstate '02000' set @var2 = 1; @@ -11864,7 +11864,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare case handler for sqlstate '02000' set @var2 = 1; @@ -11873,7 +11873,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare change handler for sqlstate '02000' set @var2 = 1; @@ -11882,7 +11882,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare char handler for sqlstate '02000' set @var2 = 1; @@ -11891,7 +11891,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare character handler for sqlstate '02000' set @var2 = 1; @@ -11900,7 +11900,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare check handler for sqlstate '02000' set @var2 = 1; @@ -11909,7 +11909,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare collate handler for sqlstate '02000' set @var2 = 1; @@ -11918,7 +11918,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare column handler for sqlstate '02000' set @var2 = 1; @@ -11927,7 +11927,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare condition handler for sqlstate '02000' set @var2 = 1; @@ -11936,7 +11936,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare constraint handler for sqlstate '02000' set @var2 = 1; @@ -11945,7 +11945,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare continue handler for sqlstate '02000' set @var2 = 1; @@ -11959,7 +11959,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare create handler for sqlstate '02000' set @var2 = 1; @@ -11968,7 +11968,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare cross handler for sqlstate '02000' set @var2 = 1; @@ -11977,7 +11977,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare current_date handler for sqlstate '02000' set @var2 = 1; @@ -11986,7 +11986,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare current_time handler for sqlstate '02000' set @var2 = 1; @@ -11995,7 +11995,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare current_timestamp handler for sqlstate '02000' set @var2 = 1; @@ -12004,7 +12004,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare current_user handler for sqlstate '02000' set @var2 = 1; @@ -12013,7 +12013,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare cursor handler for sqlstate '02000' set @var2 = 1; @@ -12022,7 +12022,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare database handler for sqlstate '02000' set @var2 = 1; @@ -12031,7 +12031,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare databases handler for sqlstate '02000' set @var2 = 1; @@ -12040,7 +12040,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare day_hour handler for sqlstate '02000' set @var2 = 1; @@ -12049,7 +12049,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare day_microsecond handler for sqlstate '02000' set @var2 = 1; @@ -12058,7 +12058,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare day_minute handler for sqlstate '02000' set @var2 = 1; @@ -12067,7 +12067,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare day_second handler for sqlstate '02000' set @var2 = 1; @@ -12076,7 +12076,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare dec handler for sqlstate '02000' set @var2 = 1; @@ -12085,7 +12085,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare decimal handler for sqlstate '02000' set @var2 = 1; @@ -12094,7 +12094,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare declare handler for sqlstate '02000' set @var2 = 1; @@ -12103,7 +12103,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare default handler for sqlstate '02000' set @var2 = 1; @@ -12112,7 +12112,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare delayed handler for sqlstate '02000' set @var2 = 1; @@ -12121,7 +12121,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare delete handler for sqlstate '02000' set @var2 = 1; @@ -12130,7 +12130,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare desc handler for sqlstate '02000' set @var2 = 1; @@ -12139,7 +12139,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare describe handler for sqlstate '02000' set @var2 = 1; @@ -12148,7 +12148,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare deterministic handler for sqlstate '02000' set @var2 = 1; @@ -12157,7 +12157,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare distinct handler for sqlstate '02000' set @var2 = 1; @@ -12166,7 +12166,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare distinctrow handler for sqlstate '02000' set @var2 = 1; @@ -12175,7 +12175,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare div handler for sqlstate '02000' set @var2 = 1; @@ -12184,7 +12184,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare double handler for sqlstate '02000' set @var2 = 1; @@ -12193,7 +12193,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare drop handler for sqlstate '02000' set @var2 = 1; @@ -12202,7 +12202,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare dual handler for sqlstate '02000' set @var2 = 1; @@ -12211,7 +12211,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare each handler for sqlstate '02000' set @var2 = 1; @@ -12220,7 +12220,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare else handler for sqlstate '02000' set @var2 = 1; @@ -12229,7 +12229,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare elseif handler for sqlstate '02000' set @var2 = 1; @@ -12238,7 +12238,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare enclosed handler for sqlstate '02000' set @var2 = 1; @@ -12247,7 +12247,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare escaped handler for sqlstate '02000' set @var2 = 1; @@ -12256,7 +12256,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare exists handler for sqlstate '02000' set @var2 = 1; @@ -12265,7 +12265,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare exit handler for sqlstate '02000' set @var2 = 1; @@ -12279,7 +12279,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare false handler for sqlstate '02000' set @var2 = 1; @@ -12288,7 +12288,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare fetch handler for sqlstate '02000' set @var2 = 1; @@ -12297,7 +12297,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare float handler for sqlstate '02000' set @var2 = 1; @@ -12306,7 +12306,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare float4 handler for sqlstate '02000' set @var2 = 1; @@ -12315,7 +12315,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare float8 handler for sqlstate '02000' set @var2 = 1; @@ -12324,7 +12324,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare for handler for sqlstate '02000' set @var2 = 1; @@ -12333,7 +12333,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare force handler for sqlstate '02000' set @var2 = 1; @@ -12342,7 +12342,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare foreign handler for sqlstate '02000' set @var2 = 1; @@ -12351,7 +12351,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare from handler for sqlstate '02000' set @var2 = 1; @@ -12360,7 +12360,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare fulltext handler for sqlstate '02000' set @var2 = 1; @@ -12369,7 +12369,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare grant handler for sqlstate '02000' set @var2 = 1; @@ -12378,7 +12378,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare group handler for sqlstate '02000' set @var2 = 1; @@ -12387,7 +12387,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare having handler for sqlstate '02000' set @var2 = 1; @@ -12396,7 +12396,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare high_priority handler for sqlstate '02000' set @var2 = 1; @@ -12405,7 +12405,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare hour_microsecond handler for sqlstate '02000' set @var2 = 1; @@ -12414,7 +12414,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare hour_minute handler for sqlstate '02000' set @var2 = 1; @@ -12423,7 +12423,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare hour_second handler for sqlstate '02000' set @var2 = 1; @@ -12432,7 +12432,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare if handler for sqlstate '02000' set @var2 = 1; @@ -12441,7 +12441,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare ignore handler for sqlstate '02000' set @var2 = 1; @@ -12450,7 +12450,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare in handler for sqlstate '02000' set @var2 = 1; @@ -12459,7 +12459,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare index handler for sqlstate '02000' set @var2 = 1; @@ -12468,7 +12468,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare infile handler for sqlstate '02000' set @var2 = 1; @@ -12477,7 +12477,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare inner handler for sqlstate '02000' set @var2 = 1; @@ -12486,7 +12486,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare inout handler for sqlstate '02000' set @var2 = 1; @@ -12495,7 +12495,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare insensitive handler for sqlstate '02000' set @var2 = 1; @@ -12504,7 +12504,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare insert handler for sqlstate '02000' set @var2 = 1; @@ -12513,7 +12513,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare int handler for sqlstate '02000' set @var2 = 1; @@ -12522,7 +12522,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare int1 handler for sqlstate '02000' set @var2 = 1; @@ -12531,7 +12531,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare int2 handler for sqlstate '02000' set @var2 = 1; @@ -12540,7 +12540,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare int3 handler for sqlstate '02000' set @var2 = 1; @@ -12549,7 +12549,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare int4 handler for sqlstate '02000' set @var2 = 1; @@ -12558,7 +12558,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare int8 handler for sqlstate '02000' set @var2 = 1; @@ -12567,7 +12567,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare integer handler for sqlstate '02000' set @var2 = 1; @@ -12576,7 +12576,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare interval handler for sqlstate '02000' set @var2 = 1; @@ -12585,7 +12585,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare into handler for sqlstate '02000' set @var2 = 1; @@ -12594,7 +12594,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare is handler for sqlstate '02000' set @var2 = 1; @@ -12603,7 +12603,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare iterate handler for sqlstate '02000' set @var2 = 1; @@ -12612,7 +12612,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare join handler for sqlstate '02000' set @var2 = 1; @@ -12621,7 +12621,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare key handler for sqlstate '02000' set @var2 = 1; @@ -12630,7 +12630,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare keys handler for sqlstate '02000' set @var2 = 1; @@ -12639,7 +12639,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare kill handler for sqlstate '02000' set @var2 = 1; @@ -12648,7 +12648,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare leading handler for sqlstate '02000' set @var2 = 1; @@ -12657,7 +12657,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare leave handler for sqlstate '02000' set @var2 = 1; @@ -12666,7 +12666,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare left handler for sqlstate '02000' set @var2 = 1; @@ -12675,7 +12675,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare like handler for sqlstate '02000' set @var2 = 1; @@ -12684,7 +12684,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare limit handler for sqlstate '02000' set @var2 = 1; @@ -12693,7 +12693,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare linear handler for sqlstate '02000' set @var2 = 1; @@ -12702,7 +12702,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare lines handler for sqlstate '02000' set @var2 = 1; @@ -12711,7 +12711,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare load handler for sqlstate '02000' set @var2 = 1; @@ -12720,7 +12720,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare localtime handler for sqlstate '02000' set @var2 = 1; @@ -12729,7 +12729,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare localtimestamp handler for sqlstate '02000' set @var2 = 1; @@ -12738,7 +12738,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare lock handler for sqlstate '02000' set @var2 = 1; @@ -12747,7 +12747,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare long handler for sqlstate '02000' set @var2 = 1; @@ -12756,7 +12756,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare longblob handler for sqlstate '02000' set @var2 = 1; @@ -12765,7 +12765,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare longtext handler for sqlstate '02000' set @var2 = 1; @@ -12774,7 +12774,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare loop handler for sqlstate '02000' set @var2 = 1; @@ -12783,7 +12783,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare low_priority handler for sqlstate '02000' set @var2 = 1; @@ -12792,7 +12792,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare master_ssl_verify_server_cert handler for sqlstate '02000' set @var2 = 1; @@ -12801,7 +12801,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare match handler for sqlstate '02000' set @var2 = 1; @@ -12810,7 +12810,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare mediumblob handler for sqlstate '02000' set @var2 = 1; @@ -12819,7 +12819,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare mediumint handler for sqlstate '02000' set @var2 = 1; @@ -12828,7 +12828,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare mediumtext handler for sqlstate '02000' set @var2 = 1; @@ -12837,7 +12837,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare middleint handler for sqlstate '02000' set @var2 = 1; @@ -12846,7 +12846,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare minute_microsecond handler for sqlstate '02000' set @var2 = 1; @@ -12855,7 +12855,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare minute_second handler for sqlstate '02000' set @var2 = 1; @@ -12864,7 +12864,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare mod handler for sqlstate '02000' set @var2 = 1; @@ -12873,7 +12873,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare modifies handler for sqlstate '02000' set @var2 = 1; @@ -12882,7 +12882,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare natural handler for sqlstate '02000' set @var2 = 1; @@ -12891,7 +12891,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare not handler for sqlstate '02000' set @var2 = 1; @@ -12900,7 +12900,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare no_write_to_binlog handler for sqlstate '02000' set @var2 = 1; @@ -12909,7 +12909,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare null handler for sqlstate '02000' set @var2 = 1; @@ -12918,7 +12918,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare numeric handler for sqlstate '02000' set @var2 = 1; @@ -12927,7 +12927,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare on handler for sqlstate '02000' set @var2 = 1; @@ -12936,7 +12936,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare optimize handler for sqlstate '02000' set @var2 = 1; @@ -12945,7 +12945,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare option handler for sqlstate '02000' set @var2 = 1; @@ -12954,7 +12954,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare optionally handler for sqlstate '02000' set @var2 = 1; @@ -12963,7 +12963,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare or handler for sqlstate '02000' set @var2 = 1; @@ -12972,7 +12972,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare order handler for sqlstate '02000' set @var2 = 1; @@ -12981,7 +12981,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare out handler for sqlstate '02000' set @var2 = 1; @@ -12990,7 +12990,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare outer handler for sqlstate '02000' set @var2 = 1; @@ -12999,7 +12999,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare outfile handler for sqlstate '02000' set @var2 = 1; @@ -13008,7 +13008,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare precision handler for sqlstate '02000' set @var2 = 1; @@ -13017,7 +13017,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare primary handler for sqlstate '02000' set @var2 = 1; @@ -13026,7 +13026,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare privileges handler for sqlstate '02000' set @var2 = 1; @@ -13035,7 +13035,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare procedure handler for sqlstate '02000' set @var2 = 1; @@ -13044,7 +13044,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare purge handler for sqlstate '02000' set @var2 = 1; @@ -13053,7 +13053,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare range handler for sqlstate '02000' set @var2 = 1; @@ -13062,7 +13062,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare read handler for sqlstate '02000' set @var2 = 1; @@ -13071,7 +13071,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare reads handler for sqlstate '02000' set @var2 = 1; @@ -13080,7 +13080,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare read_only handler for sqlstate '02000' set @var2 = 1; @@ -13089,7 +13089,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare read_write handler for sqlstate '02000' set @var2 = 1; @@ -13098,7 +13098,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare real handler for sqlstate '02000' set @var2 = 1; @@ -13107,7 +13107,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare references handler for sqlstate '02000' set @var2 = 1; @@ -13116,7 +13116,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare regexp handler for sqlstate '02000' set @var2 = 1; @@ -13125,7 +13125,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare release handler for sqlstate '02000' set @var2 = 1; @@ -13134,7 +13134,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare rename handler for sqlstate '02000' set @var2 = 1; @@ -13143,7 +13143,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare repeat handler for sqlstate '02000' set @var2 = 1; @@ -13152,7 +13152,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare replace handler for sqlstate '02000' set @var2 = 1; @@ -13161,7 +13161,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare require handler for sqlstate '02000' set @var2 = 1; @@ -13170,7 +13170,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare restrict handler for sqlstate '02000' set @var2 = 1; @@ -13179,7 +13179,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare return handler for sqlstate '02000' set @var2 = 1; @@ -13188,7 +13188,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare revoke handler for sqlstate '02000' set @var2 = 1; @@ -13197,7 +13197,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare right handler for sqlstate '02000' set @var2 = 1; @@ -13206,7 +13206,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare rlike handler for sqlstate '02000' set @var2 = 1; @@ -13215,7 +13215,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare schema handler for sqlstate '02000' set @var2 = 1; @@ -13224,7 +13224,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare schemas handler for sqlstate '02000' set @var2 = 1; @@ -13233,7 +13233,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare second_microsecond handler for sqlstate '02000' set @var2 = 1; @@ -13242,7 +13242,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare select handler for sqlstate '02000' set @var2 = 1; @@ -13251,7 +13251,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sensitive handler for sqlstate '02000' set @var2 = 1; @@ -13260,7 +13260,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare separator handler for sqlstate '02000' set @var2 = 1; @@ -13269,7 +13269,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare set handler for sqlstate '02000' set @var2 = 1; @@ -13278,7 +13278,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare show handler for sqlstate '02000' set @var2 = 1; @@ -13287,7 +13287,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare smallint handler for sqlstate '02000' set @var2 = 1; @@ -13296,7 +13296,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare spatial handler for sqlstate '02000' set @var2 = 1; @@ -13305,7 +13305,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare specific handler for sqlstate '02000' set @var2 = 1; @@ -13314,7 +13314,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sql handler for sqlstate '02000' set @var2 = 1; @@ -13323,7 +13323,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sqlexception handler for sqlstate '02000' set @var2 = 1; @@ -13332,7 +13332,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sqlstate handler for sqlstate '02000' set @var2 = 1; @@ -13341,7 +13341,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sqlwarning handler for sqlstate '02000' set @var2 = 1; @@ -13350,7 +13350,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sql_big_result handler for sqlstate '02000' set @var2 = 1; @@ -13359,7 +13359,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sql_calc_found_rows handler for sqlstate '02000' set @var2 = 1; @@ -13368,7 +13368,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare sql_small_result handler for sqlstate '02000' set @var2 = 1; @@ -13377,7 +13377,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare ssl handler for sqlstate '02000' set @var2 = 1; @@ -13386,7 +13386,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare starting handler for sqlstate '02000' set @var2 = 1; @@ -13395,7 +13395,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare straight_join handler for sqlstate '02000' set @var2 = 1; @@ -13404,7 +13404,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare table handler for sqlstate '02000' set @var2 = 1; @@ -13413,7 +13413,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare terminated handler for sqlstate '02000' set @var2 = 1; @@ -13422,7 +13422,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare then handler for sqlstate '02000' set @var2 = 1; @@ -13431,7 +13431,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare tinyblob handler for sqlstate '02000' set @var2 = 1; @@ -13440,7 +13440,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare tinyint handler for sqlstate '02000' set @var2 = 1; @@ -13449,7 +13449,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare tinytext handler for sqlstate '02000' set @var2 = 1; @@ -13458,7 +13458,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare to handler for sqlstate '02000' set @var2 = 1; @@ -13467,7 +13467,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare trailing handler for sqlstate '02000' set @var2 = 1; @@ -13476,7 +13476,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare trigger handler for sqlstate '02000' set @var2 = 1; @@ -13485,7 +13485,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare true handler for sqlstate '02000' set @var2 = 1; @@ -13494,7 +13494,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare undo handler for sqlstate '02000' set @var2 = 1; @@ -13503,7 +13503,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare union handler for sqlstate '02000' set @var2 = 1; @@ -13512,7 +13512,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare unique handler for sqlstate '02000' set @var2 = 1; @@ -13521,7 +13521,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare unlock handler for sqlstate '02000' set @var2 = 1; @@ -13530,7 +13530,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare unsigned handler for sqlstate '02000' set @var2 = 1; @@ -13539,7 +13539,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare update handler for sqlstate '02000' set @var2 = 1; @@ -13548,7 +13548,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare usage handler for sqlstate '02000' set @var2 = 1; @@ -13557,7 +13557,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare use handler for sqlstate '02000' set @var2 = 1; @@ -13566,7 +13566,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare using handler for sqlstate '02000' set @var2 = 1; @@ -13575,7 +13575,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare utc_date handler for sqlstate '02000' set @var2 = 1; @@ -13584,7 +13584,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare utc_time handler for sqlstate '02000' set @var2 = 1; @@ -13593,7 +13593,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare utc_timestamp handler for sqlstate '02000' set @var2 = 1; @@ -13602,7 +13602,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare values handler for sqlstate '02000' set @var2 = 1; @@ -13611,7 +13611,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare varbinary handler for sqlstate '02000' set @var2 = 1; @@ -13620,7 +13620,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare varchar handler for sqlstate '02000' set @var2 = 1; @@ -13629,7 +13629,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare varcharacter handler for sqlstate '02000' set @var2 = 1; @@ -13638,7 +13638,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare varying handler for sqlstate '02000' set @var2 = 1; @@ -13647,7 +13647,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare when handler for sqlstate '02000' set @var2 = 1; @@ -13656,7 +13656,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare where handler for sqlstate '02000' set @var2 = 1; @@ -13665,7 +13665,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare while handler for sqlstate '02000' set @var2 = 1; @@ -13674,7 +13674,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare with handler for sqlstate '02000' set @var2 = 1; @@ -13683,7 +13683,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare write handler for sqlstate '02000' set @var2 = 1; @@ -13692,7 +13692,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare xor handler for sqlstate '02000' set @var2 = 1; @@ -13701,7 +13701,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare year_month handler for sqlstate '02000' set @var2 = 1; @@ -13710,7 +13710,7 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp END' at line 3 DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare zerofill handler for sqlstate '02000' set @var2 = 1; @@ -13765,7 +13765,7 @@ SET @x = 0; SET @y = 0; DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist SET @start_global_value = @@GLOBAL.sort_buffer_size; CREATE PROCEDURE sp1() BEGIN @@ -13813,7 +13813,7 @@ Testcase 4.2.30: set @xx=0; DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare xx int; @@ -13844,7 +13844,7 @@ Testcase 4.2.31 - a: set @xx=0; DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare xx char; @@ -13863,7 +13863,7 @@ Testcase 4.2.31 - b: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare xx float; @@ -13891,7 +13891,7 @@ Testcase 4.2.31 - c: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare xx datetime; @@ -13919,7 +13919,7 @@ Testcase 4.2.31 - d: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare xx varchar(20); @@ -13935,7 +13935,7 @@ Testcase 4.2.31 - e: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare xx tinyint; @@ -13963,7 +13963,7 @@ Testcase 4.2.37: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare x integer; declare y integer; @@ -14365,7 +14365,7 @@ Testcase 4.2.38: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare notable condition for sqlstate '42S02'; @@ -14383,7 +14383,7 @@ Testcase 4.2.39: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare cond1 condition for sqlstate '42000'; @@ -14397,7 +14397,7 @@ Testcase 4.2.41: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare cond1 condition for sqlstate '1'; @@ -14536,7 +14536,7 @@ END// ERROR 42000: Duplicate handler declared in the same block DROP PROCEDURE IF EXISTS handler1; Warnings: -Note 1305 PROCEDURE handler1 does not exist +Note 1305 PROCEDURE db_storedproc.handler1 does not exist CREATE PROCEDURE handler1 () BEGIN declare mycondition condition for sqlstate '23000'; @@ -14742,7 +14742,7 @@ Testcase 4.2.57: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare done int default 0; @@ -14772,7 +14772,7 @@ Testcase 4.2.59: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare done int default 0; @@ -14827,7 +14827,7 @@ Testcase 4.2.60: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare done int default 0; @@ -14877,7 +14877,7 @@ Testcase 4.2.62: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare done int default 0; @@ -14944,7 +14944,7 @@ Testcase 4.2.63: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1() BEGIN declare done int default 0; @@ -14993,7 +14993,7 @@ Testcase 4.2.64: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare done int default 0; @@ -15019,7 +15019,7 @@ Testcase 4.2.65: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare done int default 0; @@ -15045,7 +15045,7 @@ Testcase 4.2.66: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare done int default 0; @@ -15075,7 +15075,7 @@ Testcase 4.2.67: -------------------------------------------------------------------------------- DROP PROCEDURE IF EXISTS sp1; Warnings: -Note 1305 PROCEDURE sp1 does not exist +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare done int default 0; @@ -15105,7 +15105,7 @@ 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 +Note 1305 PROCEDURE db_storedproc.sp1 does not exist CREATE PROCEDURE sp1( ) BEGIN declare done int default 0; @@ -22636,7 +22636,7 @@ Testcase 4.9.6: -------------------------------------------------------------------------------- DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1(i1 longtext) returns longtext BEGIN SELECT * from t9 limit 0, 100; @@ -22645,7 +22645,7 @@ END// ERROR 0A000: Not allowed to return a result set from a function DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist drop table IF EXISTS res_t9; Warnings: Note 1051 Unknown table 'res_t9' @@ -22660,7 +22660,7 @@ END// ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger. DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist drop table IF EXISTS res_t9; CREATE FUNCTION fn1(i1 longtext) returns longtext BEGIN @@ -22671,7 +22671,7 @@ END// ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger. DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist drop table IF EXISTS res_t9; Warnings: Note 1051 Unknown table 'res_t9' @@ -22685,7 +22685,7 @@ END// ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger. DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist drop table IF EXISTS res_t9; create table res_t9 (f1 int, f2 char(25), f3 int); insert into res_t9 values (10, 'abc', 20); @@ -22699,7 +22699,7 @@ ERROR HY000: Explicit or implicit commit is not allowed in stored function or tr drop table res_t9; DROP FUNCTION IF EXISTS fn1; Warnings: -Note 1305 FUNCTION fn1 does not exist +Note 1305 FUNCTION db_storedproc.fn1 does not exist Testcase 4.9.7: -------------------------------------------------------------------------------- diff --git a/mysql-test/suite/ndb/r/ndb_basic.result b/mysql-test/suite/ndb/r/ndb_basic.result index 08da3d599e8..8cb86fb4c2b 100644 --- a/mysql-test/suite/ndb/r/ndb_basic.result +++ b/mysql-test/suite/ndb/r/ndb_basic.result @@ -787,6 +787,7 @@ f1 f2 f3 222222 bbbbbb 2 drop table t1; Illegal ndb error code: 1186 +MySQL error code 1186 (ER_FLUSH_MASTER_BINLOG_CLOSED): Binlog closed, cannot RESET MASTER CREATE TABLE t1 ( a VARBINARY(40) NOT NULL, b VARCHAR (256) CHARACTER SET UTF8 NOT NULL, diff --git a/mysql-test/suite/rpl/t/rpl_semi_sync.test b/mysql-test/suite/rpl/t/rpl_semi_sync.test index b04541aba21..c6c4096f0fc 100644 --- a/mysql-test/suite/rpl/t/rpl_semi_sync.test +++ b/mysql-test/suite/rpl/t/rpl_semi_sync.test @@ -3,6 +3,10 @@ source include/not_embedded.inc; source include/have_innodb.inc; source include/master-slave.inc; +# -- [DISABLED Bug#49557] +# This test case fails on Windows due to Bug#49557. +source include/not_windows.inc; + let $engine_type= InnoDB; #let $engine_type= MyISAM; diff --git a/mysql-test/suite/sys_vars/r/max_prepared_stmt_count_func.result b/mysql-test/suite/sys_vars/r/max_prepared_stmt_count_func.result index 562ef63f811..d71bdc0984f 100644 --- a/mysql-test/suite/sys_vars/r/max_prepared_stmt_count_func.result +++ b/mysql-test/suite/sys_vars/r/max_prepared_stmt_count_func.result @@ -66,7 +66,7 @@ SET GLOBAL max_prepared_stmt_count=3; ** Creating procedure ** DROP PROCEDURE IF EXISTS sp_checkstmts; Warnings: -Note 1305 PROCEDURE sp_checkstmts does not exist +Note 1305 PROCEDURE test.sp_checkstmts does not exist CREATE PROCEDURE sp_checkstmts () BEGIN PREPARE newstmt from "SELECT * FROM information_schema.CHARACTER_SETS C"; diff --git a/mysql-test/t/implicit_commit.test b/mysql-test/t/implicit_commit.test index d8ffd6e9452..b10788bd891 100644 --- a/mysql-test/t/implicit_commit.test +++ b/mysql-test/t/implicit_commit.test @@ -697,6 +697,10 @@ source include/implicit_commit_helper.inc; --echo # SQLCOM_RESET --echo # +let $statement= + reset query cache; +source include/implicit_commit_helper.inc; + --echo # --echo # SQLCOM_PURGE --echo # diff --git a/mysql-test/t/innodb_mysql.test b/mysql-test/t/innodb_mysql.test index 3cd7b40f4ab..d7a255a7f39 100644 --- a/mysql-test/t/innodb_mysql.test +++ b/mysql-test/t/innodb_mysql.test @@ -555,3 +555,42 @@ create table t2 (fk int, key x (fk), constraint x foreign key (FK) references t1 (PK)) engine=InnoDB; show create table t2; drop table t2, t1; + + +--echo # +--echo # Bug#44613 SELECT statement inside FUNCTION takes a shared lock +--echo # + +--disable_warnings +DROP TABLE IF EXISTS t1; +DROP FUNCTION IF EXISTS f1; +--enable_warnings + +CREATE TABLE t1(x INT PRIMARY KEY, y INT) ENGINE=innodb; +INSERT INTO t1 VALUES (1, 0), (2, 0); + +CREATE FUNCTION f1(z INT) RETURNS INT READS SQL DATA + RETURN (SELECT x FROM t1 WHERE x = z); + +--echo # Connection default +START TRANSACTION; +SELECT f1(1); + +--echo # Connection con2 +--disable_query_log +connect (con2, localhost, root); +--enable_query_log +START TRANSACTION; +SELECT f1(1); +# This next statement used to block. +UPDATE t1 SET y = 1 WHERE x = 1; + +COMMIT; + +disconnect con2; +--source include/wait_until_disconnected.inc +--echo # Connection default +connection default; +COMMIT; +DROP TABLE t1; +DROP FUNCTION f1; diff --git a/mysql-test/t/lock_multi.test b/mysql-test/t/lock_multi.test index c34dcb05dd4..6983947d1c4 100644 --- a/mysql-test/t/lock_multi.test +++ b/mysql-test/t/lock_multi.test @@ -1092,5 +1092,31 @@ disconnect con2; drop table t3; +--echo # +--echo # Test for the bug where upgradable metadata locks was acquired +--echo # even if the table to altered was temporary. +--echo # Bug found while working on the related bug #51240. +--echo # + +--disable_warnings +DROP TABLE IF EXISTS t1; +--enable_warnings + +CREATE TABLE t1 (id INT); +LOCK TABLE t1 WRITE; + +--echo # Connection con1 +connect (con1, localhost, root); +CREATE TEMPORARY TABLE t1 (id INT); +# This alter should not block and timeout. +ALTER TABLE t1 ADD COLUMN j INT; + +--echo # Connection default +connection default; +disconnect con1; +UNLOCK TABLES; +DROP TABLE t1; + + # Wait till all disconnects are completed --source include/wait_until_count_sessions.inc diff --git a/mysql-test/t/merge.test b/mysql-test/t/merge.test index f0d8960322e..4035752b72d 100644 --- a/mysql-test/t/merge.test +++ b/mysql-test/t/merge.test @@ -2089,5 +2089,24 @@ execute stmt; execute stmt; drop table t4, t3, t2, t1; + +--echo # +--echo # Bug#51240 ALTER TABLE of a locked MERGE table fails +--echo # + +--disable_warnings +DROP TABLE IF EXISTS m1, t1; +--enable_warnings + +CREATE TABLE t1 (c1 INT); +CREATE TABLE m1 (c1 INT) ENGINE=MRG_MyISAM UNION=(t1); +LOCK TABLE m1 WRITE; +# This used to cause an error. +ALTER TABLE m1 ADD INDEX (c1); + +UNLOCK TABLES; +DROP TABLE m1, t1; + + --echo End of 6.0 tests diff --git a/mysql-test/t/perror.test b/mysql-test/t/perror.test index a4b99d8aa22..2b9907c0542 100644 --- a/mysql-test/t/perror.test +++ b/mysql-test/t/perror.test @@ -1,3 +1,4 @@ +--source include/not_windows.inc # # Check if the variable MY_PERROR is set # @@ -17,3 +18,17 @@ enable_query_log; # As there is no error code defined for 10000, expect error --error 1 --exec $MY_PERROR 10000 2>&1 + +# +# Bug#10143 (Perror not showing error description) +# + +# test reported case +--exec $MY_PERROR 1062 2>&1 + +# test errors that contain characters to escape in the text. +--exec $MY_PERROR 1076 2>&1 +--exec $MY_PERROR 1459 2>&1 +--exec $MY_PERROR 1461 2>&1 + + diff --git a/mysql-test/t/query_cache.test b/mysql-test/t/query_cache.test index 993f231759b..ce49ca89eca 100644 --- a/mysql-test/t/query_cache.test +++ b/mysql-test/t/query_cache.test @@ -1363,3 +1363,22 @@ SELECT SQL_CACHE * FROM t1 WHERE a IN DROP TABLE t1; --echo End of 5.1 tests + + +--echo # +--echo # Bug#51336 Assert in reload_acl_and_cache during RESET QUERY CACHE +--echo # + +--disable_warnings +DROP TABLE IF EXISTS t1; +--enable_warnings + +CREATE TABLE t1(id INT); + +START TRANSACTION; +SELECT * FROM t1; +# This caused an assert +RESET QUERY CACHE; + +COMMIT; +DROP TABLE t1; diff --git a/mysql-test/t/udf.test b/mysql-test/t/udf.test index 7e383ce69fa..9bf872fa466 100644 --- a/mysql-test/t/udf.test +++ b/mysql-test/t/udf.test @@ -436,6 +436,75 @@ SELECT * FROM t2 WHERE a = sequence(); DROP FUNCTION sequence; DROP TABLE t1,t2; +# +# Bug#31767 (DROP FUNCTION name resolution) +# + +--disable_warnings +drop function if exists test.metaphon; +drop function if exists metaphon; +--enable_warnings + +--replace_result $UDF_EXAMPLE_LIB UDF_EXAMPLE_LIB +eval CREATE FUNCTION metaphon RETURNS STRING SONAME "$UDF_EXAMPLE_LIB"; + +select metaphon("Hello"); + +# The UDF should not be dropped +drop function if exists test.metaphon; + +select metaphon("Hello"); + +drop function metaphon; + +CREATE FUNCTION test.metaphon(a TEXT) RETURNS TEXT return "This is a SF"; + +create database db_31767; +use db_31767; + +--replace_result $UDF_EXAMPLE_LIB UDF_EXAMPLE_LIB +eval CREATE FUNCTION metaphon RETURNS STRING SONAME "$UDF_EXAMPLE_LIB"; + +use test; + +# Uses the UDF +select metaphon("Hello"); + +# Uses the SF +select test.metaphon("Hello"); + +# Should drop the UDF, resolving the name the same way select does. +drop function metaphon; + +# Should call the SF +select metaphon("Hello"); + +# Drop the SF +drop function metaphon; + +# Change the current database to none. +use db_31767; +drop database db_31767; + +drop function if exists no_such_func; + +--error ER_SP_DOES_NOT_EXIST +drop function no_such_func; + +drop function if exists test.no_such_func; + +--error ER_SP_DOES_NOT_EXIST +drop function test.no_such_func; + +--error ER_NO_DB_ERROR +drop procedure if exists no_such_proc; + +--error ER_NO_DB_ERROR +drop procedure no_such_proc; + +use test; + + --echo # --echo # Bug#46259: 5.0.83 -> 5.1.36, query doesn't work --echo # diff --git a/mysql-test/t/view.test b/mysql-test/t/view.test index 8297013611f..2cca4ccd186 100644 --- a/mysql-test/t/view.test +++ b/mysql-test/t/view.test @@ -6,6 +6,9 @@ drop database if exists mysqltest; --enable_warnings use test; +# Save the initial number of concurrent sessions. +--source include/count_sessions.inc + # # some basic test of views and its functionality # @@ -3975,3 +3978,79 @@ CREATE VIEW t2 AS SELECT * FROM t1; UNLOCK TABLES; DROP TABLE t1, t2; + + +--echo # +--echo # Bug#48315 Metadata lock is not taken for merged views that +--echo # use an INFORMATION_SCHEMA table +--echo # + +--disable_warnings +DROP TABLE IF EXISTS t1; +DROP VIEW IF EXISTS v1; +DROP PROCEDURE IF EXISTS p1; +--enable_warnings + +connect (con2, localhost, root); +connect (con3, localhost, root); + +--echo # Connection default +connection default; + +CREATE VIEW v1 AS SELECT schema_name FROM information_schema.schemata; +CREATE TABLE t1 (str VARCHAR(50)); +CREATE PROCEDURE p1() INSERT INTO t1 SELECT * FROM v1; + +--echo # CALL p1() so the view is merged. +CALL p1(); + +--echo # Connection 3 +connection con3; +LOCK TABLE t1 READ; + +--echo # Connection default +connection default; +--echo # Try to CALL p1() again, this time it should block for t1. +--echo # Sending: +--send CALL p1() + +--echo # Connection 2 +connection con2; +let $wait_condition= + SELECT COUNT(*) = 1 from information_schema.processlist + WHERE state = "Table lock" AND info = "INSERT INTO t1 SELECT * FROM v1"; +--source include/wait_condition.inc +--echo # ... then try to drop the view. This should block. +--echo # Sending: +--send DROP VIEW v1 + +--echo # Connection 3 +connection con3; +let $wait_condition= + SELECT COUNT(*) = 1 from information_schema.processlist + WHERE state = "Waiting for table" AND info = "DROP VIEW v1"; +--source include/wait_condition.inc +--echo # Now allow CALL p1() to complete +UNLOCK TABLES; + +--echo # Connection default +connection default; +--echo # Reaping: CALL p1() +--reap + +--echo # Connection 2 +connection con2; +--echo # Reaping: DROP VIEW v1 +--reap + +--echo # Connection default +connection default; +DROP PROCEDURE p1; +DROP TABLE t1; +disconnect con2; +disconnect con3; + + +# Check that all connections opened by test cases in this file are really +# gone so execution of other tests won't be affected by their presence. +--source include/wait_until_count_sessions.inc diff --git a/plugin/semisync/CMakeLists.txt b/plugin/semisync/CMakeLists.txt index 0d48ad55382..2ebd67292f3 100644 --- a/plugin/semisync/CMakeLists.txt +++ b/plugin/semisync/CMakeLists.txt @@ -11,7 +11,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02 +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 92cba86fc8a..f838d27a241 100755 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -103,9 +103,9 @@ ENDIF() IF(NOT FIND_PROC) # BSD style EXECUTE_PROCESS(COMMAND ps -uaxww OUTPUT_QUIET ERROR_QUIET RESULT_VARIABLE result) - IF(result MATCHES 0) + IF(result MATCHES 0) SET( FIND_PROC - "ps -uaxww | grep -v \" grep\" | grep -v mysqld_safe | grep -- "\$MYSQLD\" | grep \" $PID \" > /dev/null") + "ps -uaxww | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"$MYSQLD\" | grep \" $PID \" > /dev/null") ENDIF() ENDIF() @@ -113,20 +113,15 @@ IF(NOT FIND_PROC) # SysV style EXECUTE_PROCESS(COMMAND ps -ef OUTPUT_QUIET ERROR_QUIET RESULT_VARIABLE result) IF(result MATCHES 0) - SET( FIND_PROC "ps -ef | grep -v \" grep\" | grep -v mysqld_safe | grep -- "\$MYSQLD\" | grep \" $PID \" > /dev/null") + SET( FIND_PROC "ps -ef | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"$MYSQLD\" | grep \" $PID \" > /dev/null") ENDIF() ENDIF() -EXECUTE_PROCESS(COMMAND sh -c "kill -0 $$" OUTPUT_QUIET ERROR_QUIET RESULT_VARIABLE result2) -IF(result3 MATCHES 0) +EXECUTE_PROCESS(COMMAND sh -c "kill -0 $$" OUTPUT_QUIET ERROR_QUIET RESULT_VARIABLE result) +IF(result MATCHES 0) SET(CHECK_PID "kill -0 $PID > /dev/null 2> /dev/null") ELSE() - EXECUTE_PROCESS(COMMAND sh -c "kill -s 0 $$" OUTPUT_QUIET ERROR_QUIET RESULT_VARIABLE result3) - IF(result4 MATCHES 0) - SET(CHECK_PID "kill -s 0 $PID > /dev/null 2> /dev/null") - ELSE() - SET(CHECK_PID "kill -s SIGCONT $PID > /dev/null 2> /dev/null") - ENDIF() + SET(CHECK_PID "kill -s SIGCONT $PID > /dev/null 2> /dev/null") ENDIF() ENDIF(UNIX) diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt index 28a9d321455..8399b0c7219 100755 --- a/sql/CMakeLists.txt +++ b/sql/CMakeLists.txt @@ -191,7 +191,14 @@ ADD_CUSTOM_COMMAND( COMMAND ${CMAKE_COMMAND} -E remove -f lex_hash.h.tmp WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/gen_lex_hash.cc) - + +MYSQL_ADD_EXECUTABLE(mysql_tzinfo_to_sql tztime.cc) +SET_TARGET_PROPERTIES(mysql_tzinfo_to_sql PROPERTIES COMPILE_FLAGS "-DTZINFO2SQL") +TARGET_LINK_LIBRARIES(mysql_tzinfo_to_sql ${MYSQLD_STATIC_PLUGIN_LIBS} + mysys dbug strings vio regex + ${LIBWRAP} ${LIBCRYPT} ${LIBDL} + ${SSL_LIBRARIES}) + ADD_CUSTOM_TARGET( GenServerSource DEPENDS ${GEN_SOURCES} diff --git a/sql/event_db_repository.cc b/sql/event_db_repository.cc index e9bcecc459d..0696652deb1 100644 --- a/sql/event_db_repository.cc +++ b/sql/event_db_repository.cc @@ -574,7 +574,7 @@ Event_db_repository::open_event_table(THD *thd, enum thr_lock_type lock_type, tables.init_one_table("mysql", 5, "event", 5, "event", lock_type); - if (simple_open_n_lock_tables(thd, &tables)) + if (open_and_lock_tables(thd, &tables, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT)) { close_thread_tables(thd); DBUG_RETURN(TRUE); @@ -1129,11 +1129,10 @@ Event_db_repository::check_system_tables(THD *thd) DBUG_ENTER("Event_db_repository::check_system_tables"); DBUG_PRINT("enter", ("thd: 0x%lx", (long) thd)); - /* Check mysql.db */ tables.init_one_table("mysql", 5, "db", 2, "db", TL_READ); - if (simple_open_n_lock_tables(thd, &tables)) + if (open_and_lock_tables(thd, &tables, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT)) { ret= 1; sql_print_error("Cannot open mysql.db"); @@ -1148,7 +1147,7 @@ Event_db_repository::check_system_tables(THD *thd) /* Check mysql.user */ tables.init_one_table("mysql", 5, "user", 4, "user", TL_READ); - if (simple_open_n_lock_tables(thd, &tables)) + if (open_and_lock_tables(thd, &tables, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT)) { ret= 1; sql_print_error("Cannot open mysql.user"); @@ -1168,7 +1167,7 @@ Event_db_repository::check_system_tables(THD *thd) /* Check mysql.event */ tables.init_one_table("mysql", 5, "event", 5, "event", TL_READ); - if (simple_open_n_lock_tables(thd, &tables)) + if (open_and_lock_tables(thd, &tables, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT)) { ret= 1; sql_print_error("Cannot open mysql.event"); diff --git a/sql/event_scheduler.cc b/sql/event_scheduler.cc index 733f2a7167f..3ceb1597a41 100755 --- a/sql/event_scheduler.cc +++ b/sql/event_scheduler.cc @@ -203,6 +203,9 @@ pre_init_event_thread(THD* thd) thd->version= refresh_version; thd->set_time(); + /* Do not use user-supplied timeout value for system threads. */ + thd->variables.lock_wait_timeout= LONG_TIMEOUT; + DBUG_VOID_RETURN; } diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index b0276e14ebf..05a42220caf 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -9504,6 +9504,8 @@ pthread_handler_t ndb_util_thread_func(void *arg __attribute__((unused))) my_net_init(&thd->net, 0); thd->main_security_ctx.master_access= ~0; thd->main_security_ctx.priv_user = 0; + /* Do not use user-supplied timeout value for system threads. */ + thd->variables.lock_wait_timeout= LONG_TIMEOUT; CHARSET_INFO *charset_connection; charset_connection= get_charset_by_csname("utf8", diff --git a/sql/ha_ndbcluster_binlog.cc b/sql/ha_ndbcluster_binlog.cc index ed2bdfbbe71..279d5b4c242 100644 --- a/sql/ha_ndbcluster_binlog.cc +++ b/sql/ha_ndbcluster_binlog.cc @@ -2348,7 +2348,7 @@ static int open_ndb_binlog_index(THD *thd, TABLE **ndb_binlog_index) tables->required_type= FRMTYPE_TABLE; uint counter; thd->clear_error(); - if (simple_open_n_lock_tables(thd, tables)) + if (open_and_lock_tables(thd, tables, FALSE, 0)) { if (thd->killed) sql_print_error("NDB Binlog: Opening ndb_binlog_index: killed"); @@ -3675,6 +3675,8 @@ pthread_handler_t ndb_binlog_thread_func(void *arg) my_net_init(&thd->net, 0); thd->main_security_ctx.master_access= ~0; thd->main_security_ctx.priv_user= 0; + /* Do not use user-supplied timeout value for system threads. */ + thd->variables.lock_wait_timeout= LONG_TIMEOUT; /* Set up ndb binlog diff --git a/sql/lock.cc b/sql/lock.cc index fa58e43f6bb..3ff131bb828 100644 --- a/sql/lock.cc +++ b/sql/lock.cc @@ -251,6 +251,7 @@ static void reset_lock_data_and_free(MYSQL_LOCK **mysql_lock) MYSQL_LOCK_IGNORE_GLOBAL_READ_LOCK Ignore a global read lock MYSQL_LOCK_IGNORE_GLOBAL_READ_ONLY Ignore SET GLOBAL READ_ONLY MYSQL_LOCK_IGNORE_FLUSH Ignore a flush tables. + MYSQL_LOCK_IGNORE_TIMEOUT Use maximum timeout value. @param need_reopen Out parameter, TRUE if some tables were altered or deleted and should be reopened by caller. @@ -277,6 +278,9 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd, TABLE **tables, uint count, if (mysql_lock_tables_check(thd, tables, count, flags)) DBUG_RETURN (NULL); + ulong timeout= (flags & MYSQL_LOCK_IGNORE_TIMEOUT) ? + LONG_TIMEOUT : thd->variables.lock_wait_timeout; + for (;;) { if (! (sql_lock= get_lock_data(thd, tables, count, GET_LOCK_STORE_LOCKS, @@ -336,8 +340,7 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd, TABLE **tables, uint count, rc= thr_lock_errno_to_mysql[(int) thr_multi_lock(sql_lock->locks + sql_lock->lock_count, sql_lock->lock_count, - thd->lock_id, - thd->variables.lock_wait_timeout)]; + thd->lock_id, timeout)]; if (rc > 1) /* a timeout or a deadlock */ { if (sql_lock->table_count) diff --git a/sql/log_event.cc b/sql/log_event.cc index b0deee62fd7..87ac577d7b2 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -2521,6 +2521,7 @@ Query_log_event::Query_log_event(THD* thd_arg, const char* query_arg, case SQLCOM_ASSIGN_TO_KEYCACHE: case SQLCOM_PRELOAD_KEYS: case SQLCOM_FLUSH: + case SQLCOM_RESET: case SQLCOM_CHECK: implicit_commit= TRUE; break; @@ -7480,7 +7481,7 @@ int Rows_log_event::do_apply_event(Relay_log_info const *rli) /* A small test to verify that objects have consistent types */ DBUG_ASSERT(sizeof(thd->variables.option_bits) == sizeof(OPTION_RELAXED_UNIQUE_CHECKS)); - if (simple_open_n_lock_tables(thd, rli->tables_to_lock)) + if (open_and_lock_tables(thd, rli->tables_to_lock, FALSE, 0)) { uint actual_error= thd->stmt_da->sql_errno(); if (thd->is_slave_error || thd->is_fatal_error) diff --git a/sql/log_event_old.cc b/sql/log_event_old.cc index caa69269e28..2d559804534 100644 --- a/sql/log_event_old.cc +++ b/sql/log_event_old.cc @@ -73,7 +73,7 @@ Old_rows_log_event::do_apply_event(Old_rows_log_event *ev, const Relay_log_info */ thd->lex->set_stmt_row_injection(); - if (simple_open_n_lock_tables(thd, rli->tables_to_lock)) + if (open_and_lock_tables(thd, rli->tables_to_lock, FALSE, 0)) { uint actual_error= thd->stmt_da->sql_errno(); if (thd->is_slave_error || thd->is_fatal_error) diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h index a006d2a07ff..20720d50194 100644 --- a/sql/mysql_priv.h +++ b/sql/mysql_priv.h @@ -1562,26 +1562,16 @@ open_tables(THD *thd, TABLE_LIST **tables, uint *counter, uint flags) return open_tables(thd, tables, counter, flags, &prelocking_strategy); } /* open_and_lock_tables with optional derived handling */ -bool open_and_lock_tables_derived(THD *thd, TABLE_LIST *tables, - bool derived, uint flags, - Prelocking_strategy *prelocking_strategy); -inline bool open_and_lock_tables_derived(THD *thd, TABLE_LIST *tables, - bool derived, uint flags) +bool open_and_lock_tables(THD *thd, TABLE_LIST *tables, + bool derived, uint flags, + Prelocking_strategy *prelocking_strategy); +inline bool open_and_lock_tables(THD *thd, TABLE_LIST *tables, + bool derived, uint flags) { DML_prelocking_strategy prelocking_strategy; - return open_and_lock_tables_derived(thd, tables, derived, flags, - &prelocking_strategy); -} -/* simple open_and_lock_tables without derived handling */ -inline bool simple_open_n_lock_tables(THD *thd, TABLE_LIST *tables) -{ - return open_and_lock_tables_derived(thd, tables, FALSE, 0); -} -/* open_and_lock_tables with derived handling */ -inline bool open_and_lock_tables(THD *thd, TABLE_LIST *tables) -{ - return open_and_lock_tables_derived(thd, tables, TRUE, 0); + return open_and_lock_tables(thd, tables, derived, flags, + &prelocking_strategy); } /* simple open_and_lock_tables without derived handling for single table */ TABLE *open_n_lock_single_table(THD *thd, TABLE_LIST *table_l, @@ -2171,11 +2161,17 @@ MYSQL_LOCK *mysql_lock_tables(THD *thd, TABLE **table, uint count, in parser. */ #define MYSQL_OPEN_FORCE_SHARED_HIGH_PRIO_MDL 0x0800 +/** + When opening or locking the table, use the maximum timeout + (LONG_TIMEOUT = 1 year) rather than the user-supplied timeout value. +*/ +#define MYSQL_LOCK_IGNORE_TIMEOUT 0x1000 /** Please refer to the internals manual. */ #define MYSQL_OPEN_REOPEN (MYSQL_LOCK_IGNORE_FLUSH |\ MYSQL_LOCK_IGNORE_GLOBAL_READ_LOCK |\ MYSQL_LOCK_IGNORE_GLOBAL_READ_ONLY |\ + MYSQL_LOCK_IGNORE_TIMEOUT |\ MYSQL_OPEN_GET_NEW_TABLE |\ MYSQL_OPEN_SKIP_TEMPORARY |\ MYSQL_OPEN_HAS_MDL_LOCK) diff --git a/sql/share/CMakeLists.txt b/sql/share/CMakeLists.txt index 944120cfc24..1868200f038 100644 --- a/sql/share/CMakeLists.txt +++ b/sql/share/CMakeLists.txt @@ -47,6 +47,8 @@ FOREACH (dir ${dirs}) INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${dir} DESTINATION ${INSTALL_MYSQLSHAREDIR}) ENDFOREACH() -INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/charsets DESTINATION ${INSTALL_MYSQLSHAREDIR}) +INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/charsets DESTINATION ${INSTALL_MYSQLSHAREDIR} + PATTERN "languages.html" EXCLUDE +) INSTALL(FILES ${files} DESTINATION ${INSTALL_MYSQLSHAREDIR}) diff --git a/sql/slave.cc b/sql/slave.cc index 45c73a3e190..2f06d468d64 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -2030,6 +2030,8 @@ static int init_slave_thread(THD* thd, SLAVE_THD_TYPE thd_type) thd_proc_info(thd, "Waiting for master update"); thd->version=refresh_version; thd->set_time(); + /* Do not use user-supplied timeout value for system threads. */ + thd->variables.lock_wait_timeout= LONG_TIMEOUT; DBUG_RETURN(0); } diff --git a/sql/sp_head.cc b/sql/sp_head.cc index e50aa208798..d2ac5d638d7 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -2825,7 +2825,7 @@ int sp_instr::exec_open_and_lock_tables(THD *thd, TABLE_LIST *tables) and open and lock them before executing instructions core function. */ if (check_table_access(thd, SELECT_ACL, tables, FALSE, UINT_MAX, FALSE) - || open_and_lock_tables(thd, tables)) + || open_and_lock_tables(thd, tables, TRUE, 0)) result= -1; else result= 0; diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index fb257a6e5ec..86f62d9bf72 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -675,7 +675,7 @@ my_bool acl_reload(THD *thd) tables[0].open_type= tables[1].open_type= tables[2].open_type= OT_BASE_ONLY; init_mdl_requests(tables); - if (simple_open_n_lock_tables(thd, tables)) + if (open_and_lock_tables(thd, tables, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT)) { /* Execution might have been interrupted; only print the error message @@ -1602,7 +1602,7 @@ bool change_password(THD *thd, const char *host, const char *user, } #endif - if (!(table= open_ltable(thd, &tables, TL_WRITE, 0))) + if (!(table= open_ltable(thd, &tables, TL_WRITE, MYSQL_LOCK_IGNORE_TIMEOUT))) DBUG_RETURN(1); mysql_mutex_lock(&acl_cache->lock); @@ -3040,7 +3040,7 @@ int mysql_table_grant(THD *thd, TABLE_LIST *table_list, class LEX_COLUMN *column; List_iterator column_iter(columns); - if (open_and_lock_tables(thd, table_list)) + if (open_and_lock_tables(thd, table_list, TRUE, 0)) DBUG_RETURN(TRUE); while ((column = column_iter++)) @@ -3146,7 +3146,7 @@ int mysql_table_grant(THD *thd, TABLE_LIST *table_list, */ Query_tables_list backup; thd->lex->reset_n_backup_query_tables_list(&backup); - if (simple_open_n_lock_tables(thd,tables)) + if (open_and_lock_tables(thd, tables, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT)) { // Should never happen close_thread_tables(thd); /* purecov: deadcode */ /* Restore the state of binlog format */ @@ -3374,7 +3374,7 @@ bool mysql_routine_grant(THD *thd, TABLE_LIST *table_list, bool is_proc, } #endif - if (simple_open_n_lock_tables(thd,tables)) + if (open_and_lock_tables(thd, tables, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT)) { // Should never happen close_thread_tables(thd); /* Restore the state of binlog format */ @@ -3531,7 +3531,7 @@ bool mysql_grant(THD *thd, const char *db, List &list, } #endif - if (simple_open_n_lock_tables(thd,tables)) + if (open_and_lock_tables(thd, tables, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT)) { // This should never happen close_thread_tables(thd); /* purecov: deadcode */ /* Restore the state of binlog format */ @@ -3853,7 +3853,7 @@ static my_bool grant_reload_procs_priv(THD *thd) TL_READ); table.open_type= OT_BASE_ONLY; - if (simple_open_n_lock_tables(thd, &table)) + if (open_and_lock_tables(thd, &table, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT)) { close_thread_tables(thd); DBUG_RETURN(TRUE); @@ -3924,7 +3924,7 @@ my_bool grant_reload(THD *thd) To avoid deadlocks we should obtain table locks before obtaining LOCK_grant rwlock. */ - if (simple_open_n_lock_tables(thd, tables)) + if (open_and_lock_tables(thd, tables, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT)) goto end; mysql_rwlock_wrlock(&LOCK_grant); @@ -5227,7 +5227,7 @@ int open_grant_tables(THD *thd, TABLE_LIST *tables) } #endif - if (simple_open_n_lock_tables(thd, tables)) + if (open_and_lock_tables(thd, tables, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT)) { // This should never happen close_thread_tables(thd); DBUG_RETURN(-1); diff --git a/sql/sql_base.cc b/sql/sql_base.cc index 6ff7085f740..0dcfafed882 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -122,7 +122,8 @@ static bool open_table_entry_fini(THD *thd, TABLE_SHARE *share, TABLE *entry); static bool auto_repair_table(THD *thd, TABLE_LIST *table_list); static void free_cache_entry(TABLE *entry); static bool tdc_wait_for_old_versions(THD *thd, - MDL_request_list *mdl_requests); + MDL_request_list *mdl_requests, + ulong timeout); static bool has_write_table_with_auto_increment(TABLE_LIST *tables); @@ -2363,8 +2364,7 @@ open_table_get_mdl_lock(THD *thd, TABLE_LIST *table_list, mdl_requests.push_front(mdl_request); mdl_requests.push_front(global_request); - if (thd->mdl_context.acquire_locks(&mdl_requests, - thd->variables.lock_wait_timeout)) + if (thd->mdl_context.acquire_locks(&mdl_requests, ot_ctx->get_timeout())) return 1; } else @@ -2555,16 +2555,6 @@ bool open_table(THD *thd, TABLE_LIST *table_list, MEM_ROOT *mem_root, int distance= ((int) table->reginfo.lock_type - (int) table_list->lock_type); - /* - If we are performing DDL operation we also should ensure - that we will find TABLE instance with upgradable metadata - lock, - */ - if ((flags & MYSQL_OPEN_TAKE_UPGRADABLE_MDL) && - table_list->lock_type >= TL_WRITE_ALLOW_WRITE && - ! table->mdl_ticket->is_upgradable_or_exclusive()) - distance= -1; - /* Find a table that either has the exact lock type requested, or has the best suitable lock. In case there is no locked @@ -2598,13 +2588,6 @@ bool open_table(THD *thd, TABLE_LIST *table_list, MEM_ROOT *mem_root, } if (best_table) { - if ((flags & MYSQL_OPEN_TAKE_UPGRADABLE_MDL) && - table_list->lock_type >= TL_WRITE_ALLOW_WRITE && - ! best_table->mdl_ticket->is_upgradable_or_exclusive()) - { - my_error(ER_TABLE_NOT_LOCKED_FOR_WRITE, MYF(0), alias); - DBUG_RETURN(TRUE); - } table= best_table; table->query_id= thd->query_id; DBUG_PRINT("info",("Using locked table")); @@ -3308,7 +3291,7 @@ unlink_all_closed_tables(THD *thd, MYSQL_LOCK *lock, size_t reopen_count) bool Locked_tables_list::reopen_tables(THD *thd) { - Open_table_context ot_ctx_unused(thd); + Open_table_context ot_ctx_unused(thd, LONG_TIMEOUT); bool lt_refresh_unused; size_t reopen_count= 0; MYSQL_LOCK *lock; @@ -3744,13 +3727,14 @@ end_with_lock_open: /** Open_table_context */ -Open_table_context::Open_table_context(THD *thd) +Open_table_context::Open_table_context(THD *thd, ulong timeout) :m_action(OT_NO_ACTION), m_start_of_statement_svp(thd->mdl_context.mdl_savepoint()), m_has_locks((thd->in_multi_stmt_transaction() && thd->mdl_context.has_locks()) || thd->mdl_context.trans_sentinel()), - m_global_mdl_request(NULL) + m_global_mdl_request(NULL), + m_timeout(timeout) {} @@ -3845,11 +3829,10 @@ recover_from_failed_open(THD *thd, MDL_request *mdl_request, switch (m_action) { case OT_WAIT_MDL_LOCK: - result= thd->mdl_context.wait_for_lock(mdl_request, - thd->variables.lock_wait_timeout); + result= thd->mdl_context.wait_for_lock(mdl_request, get_timeout()); break; case OT_WAIT_TDC: - result= tdc_wait_for_old_versions(thd, &m_mdl_requests); + result= tdc_wait_for_old_versions(thd, &m_mdl_requests, get_timeout()); DBUG_ASSERT(thd->mysys_var->current_mutex == NULL); break; case OT_DISCOVER: @@ -3866,8 +3849,7 @@ recover_from_failed_open(THD *thd, MDL_request *mdl_request, mdl_requests.push_front(&mdl_global_request); if ((result= - thd->mdl_context.acquire_locks(&mdl_requests, - thd->variables.lock_wait_timeout))) + thd->mdl_context.acquire_locks(&mdl_requests, get_timeout()))) break; DBUG_ASSERT(mdl_request->key.mdl_namespace() == MDL_key::TABLE); @@ -3899,8 +3881,7 @@ recover_from_failed_open(THD *thd, MDL_request *mdl_request, mdl_requests.push_front(&mdl_global_request); if ((result= - thd->mdl_context.acquire_locks(&mdl_requests, - thd->variables.lock_wait_timeout))) + thd->mdl_context.acquire_locks(&mdl_requests, get_timeout()))) break; DBUG_ASSERT(mdl_request->key.mdl_namespace() == MDL_key::TABLE); @@ -4168,9 +4149,18 @@ open_and_process_table(THD *thd, LEX *lex, TABLE_LIST *tables, TABLE_LIST is processed. This code works only during re-execution. */ if (tables->view) - goto process_view_routines; - if (!mysql_schema_table(thd, lex, tables) && - !check_and_update_table_version(thd, tables, tables->table->s)) + { + /* + We still need to take a MDL lock on the merged view to protect + it from concurrent changes. + */ + if (!open_table_get_mdl_lock(thd, tables, &tables->mdl_request, + ot_ctx, flags)) + goto process_view_routines; + /* Fall-through to return error. */ + } + else if (!mysql_schema_table(thd, lex, tables) && + !check_and_update_table_version(thd, tables, tables->table->s)) { goto end; } @@ -4347,7 +4337,8 @@ end: /** Acquire upgradable (SNW, SNRW) metadata locks on tables to be opened - for LOCK TABLES or a DDL statement. + for LOCK TABLES or a DDL statement. Under LOCK TABLES, we can't take + new locks, so use open_tables_check_upgradable_mdl() instead. @param thd Thread context. @param tables_start Start of list of tables on which upgradable locks @@ -4367,10 +4358,15 @@ open_tables_acquire_upgradable_mdl(THD *thd, TABLE_LIST *tables_start, MDL_request_list mdl_requests; TABLE_LIST *table; + DBUG_ASSERT(!thd->locked_tables_mode); + for (table= tables_start; table && table != tables_end; table= table->next_global) { - if (table->lock_type >= TL_WRITE_ALLOW_WRITE) + if (table->lock_type >= TL_WRITE_ALLOW_WRITE && + !(table->open_type == OT_TEMPORARY_ONLY || + (table->open_type != OT_BASE_ONLY && + find_temporary_table(thd, table)))) { table->mdl_request.set_type(table->lock_type > TL_WRITE_ALLOW_READ ? MDL_SHARED_NO_READ_WRITE : @@ -4388,8 +4384,7 @@ open_tables_acquire_upgradable_mdl(THD *thd, TABLE_LIST *tables_start, mdl_requests.push_front(global_request); } - if (thd->mdl_context.acquire_locks(&mdl_requests, - thd->variables.lock_wait_timeout)) + if (thd->mdl_context.acquire_locks(&mdl_requests, ot_ctx->get_timeout())) return TRUE; for (table= tables_start; table && table != tables_end; @@ -4406,6 +4401,58 @@ open_tables_acquire_upgradable_mdl(THD *thd, TABLE_LIST *tables_start, } +/** + Check for upgradable (SNW, SNRW) metadata locks on tables to be opened + for a DDL statement. Under LOCK TABLES, we can't take new locks, so we + must check if appropriate locks were pre-acquired. + + @param thd Thread context. + @param tables_start Start of list of tables on which upgradable locks + should be searched for. + @param tables_end End of list of tables. + + @retval FALSE Success. + @retval TRUE Failure (e.g. connection was killed) +*/ + +static bool +open_tables_check_upgradable_mdl(THD *thd, TABLE_LIST *tables_start, + TABLE_LIST *tables_end) +{ + TABLE_LIST *table; + + DBUG_ASSERT(thd->locked_tables_mode); + + for (table= tables_start; table && table != tables_end; + table= table->next_global) + { + if (table->lock_type >= TL_WRITE_ALLOW_WRITE && + !(table->open_type == OT_TEMPORARY_ONLY || + (table->open_type != OT_BASE_ONLY && + find_temporary_table(thd, table)))) + { + /* + We don't need to do anything about the found TABLE instance as it + will be handled later in open_tables(), we only need to check that + an upgradable lock is already acquired. When we enter LOCK TABLES + mode, SNRW locks are acquired before all other locks. So if under + LOCK TABLES we find that there is TABLE instance with upgradeable + lock, all other instances of TABLE for the same table will have the + same ticket. + + Note that find_table_for_mdl_upgrade() will report an error if a + ticket is not found. + */ + if (!find_table_for_mdl_upgrade(thd->open_tables, table->db, + table->table_name, FALSE)) + return TRUE; + } + } + + return FALSE; +} + + /** Open all tables in list @@ -4448,7 +4495,8 @@ bool open_tables(THD *thd, TABLE_LIST **start, uint *counter, uint flags, TABLE_LIST **table_to_open; Sroutine_hash_entry **sroutine_to_open; TABLE_LIST *tables; - Open_table_context ot_ctx(thd); + Open_table_context ot_ctx(thd, (flags & MYSQL_LOCK_IGNORE_TIMEOUT) ? + LONG_TIMEOUT : thd->variables.lock_wait_timeout); bool error= FALSE; MEM_ROOT new_frm_mem; bool has_prelocking_list; @@ -4491,12 +4539,31 @@ restart: lock will be reused (thanks to the fact that in recursive case metadata locks are acquired without waiting). */ - if ((flags & MYSQL_OPEN_TAKE_UPGRADABLE_MDL) && - ! thd->locked_tables_mode) + if (flags & MYSQL_OPEN_TAKE_UPGRADABLE_MDL) { - if (open_tables_acquire_upgradable_mdl(thd, *start, - thd->lex->first_not_own_table(), - &ot_ctx)) + /* + open_tables_acquire_upgradable_mdl() does not currenly handle + these two flags. At this point, that does not matter as they + are not used together with MYSQL_OPEN_TAKE_UPGRADABLE_MDL. + */ + DBUG_ASSERT(!(flags & (MYSQL_OPEN_SKIP_TEMPORARY | + MYSQL_OPEN_TEMPORARY_ONLY))); + if (thd->locked_tables_mode) + { + /* + Under LOCK TABLES, we can't acquire new locks, so we instead + need to check if appropriate locks were pre-acquired. + */ + if (open_tables_check_upgradable_mdl(thd, *start, + thd->lex->first_not_own_table())) + { + error= TRUE; + goto err; + } + } + else if (open_tables_acquire_upgradable_mdl(thd, *start, + thd->lex->first_not_own_table(), + &ot_ctx)) { error= TRUE; goto err; @@ -4952,7 +5019,7 @@ TABLE *open_n_lock_single_table(THD *thd, TABLE_LIST *table_l, table_l->required_type= FRMTYPE_TABLE; /* Open the table. */ - if (open_and_lock_tables_derived(thd, table_l, FALSE, flags)) + if (open_and_lock_tables(thd, table_l, FALSE, flags)) table_l->table= NULL; /* Just to be sure. */ /* Restore list. */ @@ -4990,7 +5057,8 @@ TABLE *open_ltable(THD *thd, TABLE_LIST *table_list, thr_lock_type lock_type, uint lock_flags) { TABLE *table; - Open_table_context ot_ctx(thd); + Open_table_context ot_ctx(thd, (lock_flags & MYSQL_LOCK_IGNORE_TIMEOUT) ? + LONG_TIMEOUT : thd->variables.lock_wait_timeout); bool refresh; bool error; DBUG_ENTER("open_ltable"); @@ -5089,20 +5157,13 @@ end: @note The lock will automaticaly be freed by close_thread_tables() - @note - There are several convenience functions, e.g. : - - simple_open_n_lock_tables(thd, tables) without derived handling - - open_and_lock_tables(thd, tables) with derived handling - Both inline functions call open_and_lock_tables_derived() with - the third argument set appropriately. - @retval FALSE OK. @retval TRUE Error */ -bool open_and_lock_tables_derived(THD *thd, TABLE_LIST *tables, - bool derived, uint flags, - Prelocking_strategy *prelocking_strategy) +bool open_and_lock_tables(THD *thd, TABLE_LIST *tables, + bool derived, uint flags, + Prelocking_strategy *prelocking_strategy) { uint counter; bool need_reopen; @@ -5116,7 +5177,7 @@ bool open_and_lock_tables_derived(THD *thd, TABLE_LIST *tables, statement. */ MDL_ticket *start_of_statement_svp= thd->mdl_context.mdl_savepoint(); - DBUG_ENTER("open_and_lock_tables_derived"); + DBUG_ENTER("open_and_lock_tables"); DBUG_PRINT("enter", ("derived handling: %d", derived)); for ( ; ; ) @@ -8527,16 +8588,18 @@ void tdc_remove_table(THD *thd, enum_tdc_remove_table_type remove_type, @param thd Thread context @param context Metadata locking context with locks. + @param timeout Seconds to wait before reporting ER_LOCK_WAIT_TIMEOUT. */ static bool -tdc_wait_for_old_versions(THD *thd, MDL_request_list *mdl_requests) +tdc_wait_for_old_versions(THD *thd, MDL_request_list *mdl_requests, + ulong timeout) { TABLE_SHARE *share; const char *old_msg; MDL_request *mdl_request; struct timespec abstime; - set_timespec(abstime, thd->variables.lock_wait_timeout); + set_timespec(abstime, timeout); int wait_result= 0; while (!thd->killed) @@ -8803,8 +8866,9 @@ open_system_tables_for_read(THD *thd, TABLE_LIST *table_list, lex->reset_n_backup_query_tables_list(&query_tables_list_backup); thd->reset_n_backup_open_tables_state(backup); - if (open_and_lock_tables_derived(thd, table_list, FALSE, - MYSQL_LOCK_IGNORE_FLUSH)) + if (open_and_lock_tables(thd, table_list, FALSE, + MYSQL_LOCK_IGNORE_FLUSH | + MYSQL_LOCK_IGNORE_TIMEOUT)) { lex->restore_backup_query_tables_list(&query_tables_list_backup); goto error; @@ -8866,7 +8930,8 @@ open_system_table_for_update(THD *thd, TABLE_LIST *one_table) { DBUG_ENTER("open_system_table_for_update"); - TABLE *table= open_ltable(thd, one_table, one_table->lock_type, 0); + TABLE *table= open_ltable(thd, one_table, one_table->lock_type, + MYSQL_LOCK_IGNORE_TIMEOUT); if (table) { DBUG_ASSERT(table->s->table_category == TABLE_CATEGORY_SYSTEM); @@ -8893,6 +8958,7 @@ open_log_table(THD *thd, TABLE_LIST *one_table, Open_tables_backup *backup) uint flags= ( MYSQL_LOCK_IGNORE_GLOBAL_READ_LOCK | MYSQL_LOCK_IGNORE_GLOBAL_READ_ONLY | MYSQL_LOCK_IGNORE_FLUSH | + MYSQL_LOCK_IGNORE_TIMEOUT | MYSQL_LOCK_PERF_SCHEMA); TABLE *table; /* Save value that is changed in mysql_lock_tables() */ diff --git a/sql/sql_class.h b/sql/sql_class.h index 2efff63354a..617c13a0a08 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -1280,7 +1280,7 @@ public: OT_DISCOVER, OT_REPAIR }; - Open_table_context(THD *thd); + Open_table_context(THD *thd, ulong timeout); bool recover_from_failed_open(THD *thd, MDL_request *mdl_request, TABLE_LIST *table); @@ -1305,6 +1305,11 @@ public: MDL_request *get_global_mdl_request(THD *thd); + inline ulong get_timeout() const + { + return m_timeout; + } + private: /** List of requests for all locks taken so far. Used for waiting on locks. */ MDL_request_list m_mdl_requests; @@ -1322,6 +1327,11 @@ private: opening tables for statements which take upgradable shared metadata locks. */ MDL_request *m_global_mdl_request; + /** + Lock timeout in seconds. Initialized to LONG_TIMEOUT when opening system + tables or to the "lock_wait_timeout" system variable for regular tables. + */ + uint m_timeout; }; diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc index ea466da8ea1..2c3242c10cd 100644 --- a/sql/sql_delete.cc +++ b/sql/sql_delete.cc @@ -57,7 +57,7 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds, THD::STMT_QUERY_TYPE : THD::ROW_QUERY_TYPE; - if (open_and_lock_tables(thd, table_list)) + if (open_and_lock_tables(thd, table_list, TRUE, 0)) DBUG_RETURN(TRUE); if (!(table= table_list->table)) { diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc index 4a69b46ddb7..3afeb4164bd 100644 --- a/sql/sql_handler.cc +++ b/sql/sql_handler.cc @@ -311,7 +311,11 @@ bool mysql_ha_open(THD *thd, TABLE_LIST *tables, bool reopen) if (!reopen) my_hash_delete(&thd->handler_tables_hash, (uchar*) hash_tables); else + { hash_tables->table= NULL; + /* Safety, cleanup the pointer to satisfy MDL assertions. */ + hash_tables->mdl_request.ticket= NULL; + } DBUG_PRINT("exit",("ERROR")); DBUG_RETURN(TRUE); } diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 45c9c0363dd..ddf7dcb22d0 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -545,7 +545,7 @@ bool open_and_lock_for_insert_delayed(THD *thd, TABLE_LIST *table_list) Open tables used for sub-selects or in stored functions, will also cache these functions. */ - if (open_and_lock_tables(thd, table_list->next_global)) + if (open_and_lock_tables(thd, table_list->next_global, TRUE, 0)) { end_delayed_insert(thd); DBUG_RETURN(TRUE); @@ -569,7 +569,7 @@ bool open_and_lock_for_insert_delayed(THD *thd, TABLE_LIST *table_list) Use a normal insert. */ table_list->lock_type= TL_WRITE; - DBUG_RETURN(open_and_lock_tables(thd, table_list)); + DBUG_RETURN(open_and_lock_tables(thd, table_list, TRUE, 0)); } @@ -646,7 +646,7 @@ bool mysql_insert(THD *thd,TABLE_LIST *table_list, } else { - if (open_and_lock_tables(thd, table_list)) + if (open_and_lock_tables(thd, table_list, TRUE, 0)) DBUG_RETURN(TRUE); } lock_type= table_list->lock_type; @@ -3619,7 +3619,7 @@ static TABLE *create_table_from_items(THD *thd, HA_CREATE_INFO *create_info, if (!(create_info->options & HA_LEX_CREATE_TMP_TABLE)) { - Open_table_context ot_ctx_unused(thd); + Open_table_context ot_ctx_unused(thd, LONG_TIMEOUT); /* Here we open the destination table, on which we already have an exclusive metadata lock. @@ -3638,7 +3638,7 @@ static TABLE *create_table_from_items(THD *thd, HA_CREATE_INFO *create_info, } else { - Open_table_context ot_ctx_unused(thd); + Open_table_context ot_ctx_unused(thd, LONG_TIMEOUT); if (open_table(thd, create_table, thd->mem_root, &ot_ctx_unused, MYSQL_OPEN_TEMPORARY_ONLY)) { diff --git a/sql/sql_load.cc b/sql/sql_load.cc index 1eabce0b474..3f49543c69d 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -195,7 +195,7 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list, ER(WARN_NON_ASCII_SEPARATOR_NOT_IMPLEMENTED)); } - if (open_and_lock_tables(thd, table_list)) + if (open_and_lock_tables(thd, table_list, TRUE, 0)) DBUG_RETURN(TRUE); if (setup_tables_and_check_access(thd, &thd->lex->select_lex.context, &thd->lex->select_lex.top_join_list, diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index c7e1be2237b..e66f2756c54 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -325,6 +325,7 @@ void init_update_queries(void) sql_command_flags[SQLCOM_PRELOAD_KEYS]= CF_AUTO_COMMIT_TRANS; sql_command_flags[SQLCOM_FLUSH]= CF_AUTO_COMMIT_TRANS; + sql_command_flags[SQLCOM_RESET]= CF_AUTO_COMMIT_TRANS; sql_command_flags[SQLCOM_CHECK]= CF_AUTO_COMMIT_TRANS; } @@ -2077,7 +2078,7 @@ case SQLCOM_PREPARE: } case SQLCOM_DO: if (check_table_access(thd, SELECT_ACL, all_tables, FALSE, UINT_MAX, FALSE) - || open_and_lock_tables(thd, all_tables)) + || open_and_lock_tables(thd, all_tables, TRUE, 0)) goto error; res= mysql_do(thd, *lex->insert_list); @@ -2414,7 +2415,7 @@ case SQLCOM_PREPARE: create_table->open_type= OT_BASE_ONLY; } - if (!(res= open_and_lock_tables_derived(thd, lex->query_tables, TRUE, 0))) + if (!(res= open_and_lock_tables(thd, lex->query_tables, TRUE, 0))) { /* Is table which we are changing used somewhere in other parts @@ -3007,7 +3008,7 @@ end_with_restore_list: unit->set_limit(select_lex); - if (!(res= open_and_lock_tables(thd, all_tables))) + if (!(res= open_and_lock_tables(thd, all_tables, TRUE, 0))) { MYSQL_INSERT_SELECT_START(thd->query()); /* Skip first table, which is the table we are inserting in */ @@ -3109,7 +3110,7 @@ end_with_restore_list: goto error; thd_proc_info(thd, "init"); - if ((res= open_and_lock_tables(thd, all_tables))) + if ((res= open_and_lock_tables(thd, all_tables, TRUE, 0))) break; MYSQL_MULTI_DELETE_START(thd->query()); @@ -3237,7 +3238,7 @@ end_with_restore_list: List *lex_var_list= &lex->var_list; if ((check_table_access(thd, SELECT_ACL, all_tables, FALSE, UINT_MAX, FALSE) - || open_and_lock_tables(thd, all_tables))) + || open_and_lock_tables(thd, all_tables, TRUE, 0))) goto error; if (!(res= sql_set_variables(thd, lex_var_list))) { @@ -3303,9 +3304,9 @@ end_with_restore_list: { Lock_tables_prelocking_strategy lock_tables_prelocking_strategy; - res= (open_and_lock_tables_derived(thd, all_tables, FALSE, - MYSQL_OPEN_TAKE_UPGRADABLE_MDL, - &lock_tables_prelocking_strategy) || + res= (open_and_lock_tables(thd, all_tables, FALSE, + MYSQL_OPEN_TAKE_UPGRADABLE_MDL, + &lock_tables_prelocking_strategy) || thd->locked_tables_list.init_locked_tables(thd)); } @@ -4008,7 +4009,7 @@ create_sp_error: */ if (check_table_access(thd, SELECT_ACL, all_tables, FALSE, UINT_MAX, FALSE) || - open_and_lock_tables(thd, all_tables)) + open_and_lock_tables(thd, all_tables, TRUE, 0)) goto error; /* @@ -4132,6 +4133,47 @@ create_sp_error: case SQLCOM_DROP_PROCEDURE: case SQLCOM_DROP_FUNCTION: { +#ifdef HAVE_DLOPEN + if (lex->sql_command == SQLCOM_DROP_FUNCTION && + ! lex->spname->m_explicit_name) + { + /* DROP FUNCTION */ + udf_func *udf = find_udf(lex->spname->m_name.str, + lex->spname->m_name.length); + if (udf) + { + if (check_access(thd, DELETE_ACL, "mysql", NULL, NULL, 1, 0)) + goto error; + + if (!(res = mysql_drop_function(thd, &lex->spname->m_name))) + { + my_ok(thd); + break; + } + my_error(ER_SP_DROP_FAILED, MYF(0), + "FUNCTION (UDF)", lex->spname->m_name.str); + goto error; + } + + if (lex->spname->m_db.str == NULL) + { + if (lex->drop_if_exists) + { + push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_NOTE, + ER_SP_DOES_NOT_EXIST, ER(ER_SP_DOES_NOT_EXIST), + "FUNCTION (UDF)", lex->spname->m_name.str); + res= FALSE; + my_ok(thd); + break; + } + my_error(ER_SP_DOES_NOT_EXIST, MYF(0), + "FUNCTION (UDF)", lex->spname->m_name.str); + goto error; + } + /* Fall thought to test for a stored function */ + } +#endif + int sp_result; int type= (lex->sql_command == SQLCOM_DROP_PROCEDURE ? TYPE_ENUM_PROCEDURE : TYPE_ENUM_FUNCTION); @@ -4178,34 +4220,6 @@ create_sp_error: } #endif } - else - { -#ifdef HAVE_DLOPEN - if (lex->sql_command == SQLCOM_DROP_FUNCTION) - { - udf_func *udf = find_udf(lex->spname->m_name.str, - lex->spname->m_name.length); - if (udf) - { - if (check_access(thd, DELETE_ACL, "mysql", NULL, NULL, 1, 0)) - goto error; - - if (!(res = mysql_drop_function(thd, &lex->spname->m_name))) - { - my_ok(thd); - break; - } - } - } -#endif - if (lex->spname->m_db.str) - sp_result= SP_KEY_NOT_FOUND; - else - { - my_message(ER_NO_DB_ERROR, ER(ER_NO_DB_ERROR), MYF(0)); - goto error; - } - } res= sp_result; switch (sp_result) { case SP_OK: @@ -4217,7 +4231,7 @@ create_sp_error: res= write_bin_log(thd, TRUE, thd->query(), thd->query_length()); push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_NOTE, ER_SP_DOES_NOT_EXIST, ER(ER_SP_DOES_NOT_EXIST), - SP_COM_STRING(lex), lex->spname->m_name.str); + SP_COM_STRING(lex), lex->spname->m_qname.str); if (!res) my_ok(thd); break; @@ -4510,7 +4524,7 @@ static bool execute_sqlcom_select(THD *thd, TABLE_LIST *all_tables) param->select_limit= new Item_int((ulonglong) thd->variables.select_limit); } - if (!(res= open_and_lock_tables(thd, all_tables))) + if (!(res= open_and_lock_tables(thd, all_tables, TRUE, 0))) { if (lex->describe) { diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc index f0d9560dff4..3d1380d46f3 100644 --- a/sql/sql_plugin.cc +++ b/sql/sql_plugin.cc @@ -1469,7 +1469,7 @@ static void plugin_load(MEM_ROOT *tmp_root, int *argc, char **argv) goto end; #endif /* EMBEDDED_LIBRARY */ - if (simple_open_n_lock_tables(new_thd, &tables)) + if (open_and_lock_tables(new_thd, &tables, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT)) { DBUG_PRINT("error",("Can't open plugin table")); sql_print_error("Can't open the mysql.plugin table. Please " @@ -1746,7 +1746,8 @@ bool mysql_install_plugin(THD *thd, const LEX_STRING *name, const LEX_STRING *dl DBUG_RETURN(TRUE); /* need to open before acquiring LOCK_plugin or it will deadlock */ - if (! (table = open_ltable(thd, &tables, TL_WRITE, 0))) + if (! (table = open_ltable(thd, &tables, TL_WRITE, + MYSQL_LOCK_IGNORE_TIMEOUT))) DBUG_RETURN(TRUE); mysql_mutex_lock(&LOCK_plugin); @@ -1817,7 +1818,7 @@ bool mysql_uninstall_plugin(THD *thd, const LEX_STRING *name) tables.init_one_table("mysql", 5, "plugin", 6, "plugin", TL_WRITE); /* need to open before acquiring LOCK_plugin or it will deadlock */ - if (! (table= open_ltable(thd, &tables, TL_WRITE, 0))) + if (! (table= open_ltable(thd, &tables, TL_WRITE, MYSQL_LOCK_IGNORE_TIMEOUT))) DBUG_RETURN(TRUE); mysql_mutex_lock(&LOCK_plugin); diff --git a/sql/sql_servers.cc b/sql/sql_servers.cc index 0af076d6102..0bf38639ff7 100644 --- a/sql/sql_servers.cc +++ b/sql/sql_servers.cc @@ -253,7 +253,7 @@ bool servers_reload(THD *thd) tables[0].init_one_table("mysql", 5, "servers", 7, "servers", TL_READ); - if (simple_open_n_lock_tables(thd, tables)) + if (open_and_lock_tables(thd, tables, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT)) { /* Execution might have been interrupted; only print the error message @@ -390,7 +390,7 @@ insert_server(THD *thd, FOREIGN_SERVER *server) tables.init_one_table("mysql", 5, "servers", 7, "servers", TL_WRITE); /* need to open before acquiring THR_LOCK_plugin or it will deadlock */ - if (! (table= open_ltable(thd, &tables, TL_WRITE, 0))) + if (! (table= open_ltable(thd, &tables, TL_WRITE, MYSQL_LOCK_IGNORE_TIMEOUT))) goto end; /* insert the server into the table */ @@ -611,7 +611,7 @@ int drop_server(THD *thd, LEX_SERVER_OPTIONS *server_options) if ((error= delete_server_record_in_cache(server_options))) goto end; - if (! (table= open_ltable(thd, &tables, TL_WRITE, 0))) + if (! (table= open_ltable(thd, &tables, TL_WRITE, MYSQL_LOCK_IGNORE_TIMEOUT))) { error= my_errno; goto end; @@ -728,7 +728,7 @@ int update_server(THD *thd, FOREIGN_SERVER *existing, FOREIGN_SERVER *altered) tables.init_one_table("mysql", 5, "servers", 7, "servers", TL_WRITE); - if (!(table= open_ltable(thd, &tables, TL_WRITE, 0))) + if (!(table= open_ltable(thd, &tables, TL_WRITE, MYSQL_LOCK_IGNORE_TIMEOUT))) { error= my_errno; goto end; diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 9acbc37fd9a..4bf56c7f8c8 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -4227,8 +4227,7 @@ bool mysql_create_table(THD *thd, TABLE_LIST *create_table, /* Open or obtain an exclusive metadata lock on table being created. */ - if (open_and_lock_tables_derived(thd, thd->lex->query_tables, FALSE, - 0)) + if (open_and_lock_tables(thd, thd->lex->query_tables, FALSE, 0)) { result= TRUE; goto unlock; @@ -4427,7 +4426,7 @@ static int prepare_for_repair(THD *thd, TABLE_LIST *table_list, char from[FN_REFLEN],tmp[FN_REFLEN+32]; const char **ext; MY_STAT stat_info; - Open_table_context ot_ctx_unused(thd); + Open_table_context ot_ctx_unused(thd, LONG_TIMEOUT); DBUG_ENTER("prepare_for_repair"); uint reopen_for_repair_flags= (MYSQL_LOCK_IGNORE_FLUSH | MYSQL_OPEN_HAS_MDL_LOCK); @@ -4679,8 +4678,8 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables, if (view_operator_func == NULL) table->required_type=FRMTYPE_TABLE; - open_error= open_and_lock_tables_derived(thd, table, TRUE, - MYSQL_OPEN_TAKE_UPGRADABLE_MDL); + open_error= open_and_lock_tables(thd, table, TRUE, + MYSQL_OPEN_TAKE_UPGRADABLE_MDL); thd->no_warnings_for_error= 0; table->next_global= save_next_global; table->next_local= save_next_local; @@ -5349,7 +5348,7 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table, TABLE_LIST* src_table, char buf[2048]; String query(buf, sizeof(buf), system_charset_info); query.length(0); // Have to zero it since constructor doesn't - Open_table_context ot_ctx_unused(thd); + Open_table_context ot_ctx_unused(thd, LONG_TIMEOUT); /* The condition avoids a crash as described in BUG#48506. Other @@ -6558,9 +6557,9 @@ view_err: Alter_table_prelocking_strategy alter_prelocking_strategy(alter_info); - error= open_and_lock_tables_derived(thd, table_list, FALSE, - MYSQL_OPEN_TAKE_UPGRADABLE_MDL, - &alter_prelocking_strategy); + error= open_and_lock_tables(thd, table_list, FALSE, + MYSQL_OPEN_TAKE_UPGRADABLE_MDL, + &alter_prelocking_strategy); if (error) { @@ -7148,7 +7147,7 @@ view_err: { if (table->s->tmp_table) { - Open_table_context ot_ctx_unused(thd); + Open_table_context ot_ctx_unused(thd, LONG_TIMEOUT); TABLE_LIST tbl; bzero((void*) &tbl, sizeof(tbl)); tbl.db= new_db; @@ -7433,7 +7432,7 @@ view_err: To do this we need to obtain a handler object for it. NO need to tamper with MERGE tables. The real open is done later. */ - Open_table_context ot_ctx_unused(thd); + Open_table_context ot_ctx_unused(thd, LONG_TIMEOUT); TABLE *t_table; if (new_name != table_name || new_db != db) { diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc index 3bead5217f0..7dfcf9f6b2e 100644 --- a/sql/sql_udf.cc +++ b/sql/sql_udf.cc @@ -163,7 +163,7 @@ void udf_init() tables.init_one_table(db, sizeof(db)-1, "func", 4, "func", TL_READ); - if (simple_open_n_lock_tables(new_thd, &tables)) + if (open_and_lock_tables(new_thd, &tables, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT)) { DBUG_PRINT("error",("Can't open udf table")); sql_print_error("Can't open the mysql.func table. Please " @@ -505,7 +505,7 @@ int mysql_create_function(THD *thd,udf_func *udf) tables.init_one_table("mysql", 5, "func", 4, "func", TL_WRITE); /* Allow creation of functions even if we can't open func table */ - if (!(table = open_ltable(thd, &tables, TL_WRITE, 0))) + if (!(table = open_ltable(thd, &tables, TL_WRITE, MYSQL_LOCK_IGNORE_TIMEOUT))) goto err; table->use_all_columns(); restore_record(table, s->default_values); // Default values for fields @@ -596,7 +596,7 @@ int mysql_drop_function(THD *thd,const LEX_STRING *udf_name) tables.init_one_table("mysql", 5, "func", 4, "func", TL_WRITE); - if (!(table = open_ltable(thd, &tables, TL_WRITE, 0))) + if (!(table = open_ltable(thd, &tables, TL_WRITE, MYSQL_LOCK_IGNORE_TIMEOUT))) goto err; table->use_all_columns(); table->field[0]->store(exact_name_str, exact_name_len, &my_charset_bin); diff --git a/sql/sql_view.cc b/sql/sql_view.cc index b9eb6a63552..5f61adb392d 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -396,7 +396,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views, view->lock_strategy= TABLE_LIST::EXCLUSIVE_MDL; view->open_type= OT_BASE_ONLY; - if (open_and_lock_tables(thd, lex->query_tables)) + if (open_and_lock_tables(thd, lex->query_tables, TRUE, 0)) { view= lex->unlink_first_table(&link_to_local); res= TRUE; diff --git a/sql/tztime.cc b/sql/tztime.cc index 01450c9bae3..632dca1ce44 100644 --- a/sql/tztime.cc +++ b/sql/tztime.cc @@ -1667,8 +1667,8 @@ my_tz_init(THD *org_thd, const char *default_tzname, my_bool bootstrap) We need to open only mysql.time_zone_leap_second, but we try to open all time zone tables to see if they exist. */ - if (open_and_lock_tables_derived(thd, tz_tables, FALSE, - MYSQL_LOCK_IGNORE_FLUSH)) + if (open_and_lock_tables(thd, tz_tables, FALSE, + MYSQL_LOCK_IGNORE_FLUSH | MYSQL_LOCK_IGNORE_TIMEOUT)) { sql_print_warning("Can't open and lock time zone table: %s " "trying to live without them", thd->stmt_da->message()); diff --git a/storage/innobase/CMakeLists.txt b/storage/innobase/CMakeLists.txt index 81a73513806..a11007c8472 100644 --- a/storage/innobase/CMakeLists.txt +++ b/storage/innobase/CMakeLists.txt @@ -78,8 +78,8 @@ IF(NOT CMAKE_CROSSCOMPILING) ) ENDIF() -IF(HAVE_IBGCC_ATOMIC_BUILTINS) - ADD_DEFINITIONS(-DHAVE_IBGCCC_ATOMIC_BUILTINS=1) +IF(HAVE_IB_GCC_ATOMIC_BUILTINS) + ADD_DEFINITIONS(-DHAVE_IB_GCC_ATOMIC_BUILTINS=1) ENDIF() # either define HAVE_IB_ATOMIC_PTHREAD_T_GCC or not diff --git a/storage/perfschema/pfs_engine_table.cc b/storage/perfschema/pfs_engine_table.cc index c824b93093e..d0f5315ff36 100644 --- a/storage/perfschema/pfs_engine_table.cc +++ b/storage/perfschema/pfs_engine_table.cc @@ -128,7 +128,7 @@ void PFS_engine_table_share::check_one_table(THD *thd) thd->lex= &dummy_lex; lex_start(thd); - if (! simple_open_n_lock_tables(thd, &tables)) + if (! open_and_lock_tables(thd, &tables, FALSE, MYSQL_LOCK_IGNORE_TIMEOUT)) { PFS_check_intact checker;