2700 Marc Alff 2008-08-29
Fixed error message wording, per discussion with architecture & documentation.
modified:
mysql-test/r/signal.result
sql/share/errmsg.txt
2699 Marc Alff 2008-08-28
Fixed build warning
modified:
sql/sp_rcontext.cc
2698 Marc Alff 2008-08-27
WL#2110 (SIGNAL)
WL#2265 (RESIGNAL)
Bug#11661 (Raising Exceptions from within stored procedures:
Support for SIGNAL statement)
added:
mysql-test/r/signal.result
mysql-test/r/signal_code.result
mysql-test/r/signal_demo1.result
mysql-test/r/signal_demo2.result
mysql-test/r/signal_demo3.result
mysql-test/r/signal_sqlmode.result
mysql-test/r/signal_utf32.result
mysql-test/t/signal.test
mysql-test/t/signal_code.test
mysql-test/t/signal_demo1.test
mysql-test/t/signal_demo2.test
mysql-test/t/signal_demo3.test
mysql-test/t/signal_sqlmode.test
mysql-test/t/signal_utf32.test
sql/sql_fixstring.cc
sql/sql_fixstring.h
sql/sql_signal.cc
sql/sql_signal.h
modified:
.bzrignore
libmysqld/CMakeLists.txt
libmysqld/Makefile.am
libmysqld/lib_sql.cc
mysql-test/r/backup_security.result
mysql-test/r/maria3.result
mysql-test/r/myisam.result
mysql-test/r/partition_not_windows.result
mysql-test/r/partition_symlink.result
mysql-test/r/partition_windows.result
mysql-test/r/symlink.result
mysql-test/r/windows.result
sql/CMakeLists.txt
sql/Makefile.am
sql/backup/logger.cc
sql/derror.cc
sql/event_scheduler.cc
sql/ha_ndbcluster_binlog.cc
sql/handler.cc
sql/lex.h
sql/log.cc
sql/log_event.cc
sql/mysql_priv.h
sql/mysqld.cc
sql/protocol.cc
sql/protocol.h
sql/set_var.cc
sql/share/errmsg.txt
sql/slave.cc
sql/sp.cc
sql/sp_head.cc
sql/sp_pcontext.h
sql/sp_rcontext.cc
sql/sp_rcontext.h
sql/sql_acl.cc
sql/sql_base.cc
sql/sql_class.cc
sql/sql_class.h
sql/sql_error.cc
sql/sql_insert.cc
sql/sql_lex.h
sql/sql_parse.cc
sql/sql_table.cc
sql/sql_view.cc
sql/sql_yacc.yy
sql/table.cc
sql/thr_malloc.cc
sql/unireg.cc
=== modified file 'mysql-test/r/signal.result'
--- a/mysql-test/r/signal.result 2008-08-27 22:14:03 +0000
+++ b/mysql-test/r/signal.result 2008-08-29 16:38:18 +0000
@@ -551,13 +551,13 @@ SIGNAL foo;
ERROR 42000: Undefined CONDITION: foo
SIGNAL SQLSTATE '01000';
Warnings:
-Warning 1727 Unhandled user-defined warning
+Warning 1727 Unhandled user-defined warning condition
SIGNAL SQLSTATE '02000';
-ERROR 02000: Unhandled user-defined not found
+ERROR 02000: Unhandled user-defined not found condition
SIGNAL SQLSTATE '23000';
-ERROR 23000: Unhandled user-defined exception
+ERROR 23000: Unhandled user-defined exception condition
SIGNAL SQLSTATE VALUE '23000';
-ERROR 23000: Unhandled user-defined exception
+ERROR 23000: Unhandled user-defined exception condition
SIGNAL SQLSTATE 'HY000' SET MYSQL_ERRNO = 65536;
ERROR 42000: Variable 'MYSQL_ERRNO' can't be set to the value of '65536'
SIGNAL SQLSTATE 'HY000' SET MYSQL_ERRNO = 99999;
@@ -569,7 +569,7 @@ ERROR 42000: Variable 'MYSQL_ERRNO' can'
SIGNAL SQLSTATE 'HY000' SET MYSQL_ERRNO = -1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near '-1' at line 1
SIGNAL SQLSTATE 'HY000' SET MYSQL_ERRNO = 65535;
-ERROR HY000: Unhandled user-defined exception
+ERROR HY000: Unhandled user-defined exception condition
RESIGNAL;
ERROR 0K000: RESIGNAL when handler not active
RESIGNAL foo;
@@ -585,7 +585,7 @@ DECLARE foo CONDITION FOR SQLSTATE 'AABB
SIGNAL foo SET MYSQL_ERRNO = 65535;
end $$
call test_signal() $$
-ERROR AABBB: Unhandled user-defined exception
+ERROR AABBB: Unhandled user-defined exception condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -603,7 +603,7 @@ DECLARE foo CONDITION FOR SQLSTATE '9999
SIGNAL foo SET MYSQL_ERRNO = 9999;
end $$
call test_signal() $$
-ERROR 99999: Unhandled user-defined exception
+ERROR 99999: Unhandled user-defined exception condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -613,7 +613,7 @@ SIGNAL too_few_records SET MYSQL_ERRNO =
end $$
call test_signal() $$
Warnings:
-Warning 1261 Unhandled user-defined warning
+Warning 1261 Unhandled user-defined warning condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -622,7 +622,7 @@ DECLARE sp_fetch_no_data CONDITION FOR S
SIGNAL sp_fetch_no_data SET MYSQL_ERRNO = 1329;
end $$
call test_signal() $$
-ERROR 02000: Unhandled user-defined not found
+ERROR 02000: Unhandled user-defined not found condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -631,7 +631,7 @@ DECLARE sp_cursor_already_open CONDITION
SIGNAL sp_cursor_already_open SET MYSQL_ERRNO = 1325;
end $$
call test_signal() $$
-ERROR 24000: Unhandled user-defined exception
+ERROR 24000: Unhandled user-defined exception condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -640,7 +640,7 @@ DECLARE lock_deadlock CONDITION FOR SQLS
SIGNAL lock_deadlock SET MYSQL_ERRNO = 1213;
end $$
call test_signal() $$
-ERROR 40001: Unhandled user-defined exception
+ERROR 40001: Unhandled user-defined exception condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -649,7 +649,7 @@ DECLARE foo CONDITION FOR SQLSTATE "9999
SIGNAL foo;
end $$
call test_signal() $$
-ERROR 99999: Unhandled user-defined exception
+ERROR 99999: Unhandled user-defined exception condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -659,7 +659,7 @@ SIGNAL warn;
end $$
call test_signal() $$
Warnings:
-Warning 1727 Unhandled user-defined warning
+Warning 1727 Unhandled user-defined warning condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -669,7 +669,7 @@ SIGNAL warn;
end $$
call test_signal() $$
Warnings:
-Warning 1727 Unhandled user-defined warning
+Warning 1727 Unhandled user-defined warning condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -678,7 +678,7 @@ DECLARE not_found CONDITION FOR SQLSTATE
SIGNAL not_found;
end $$
call test_signal() $$
-ERROR 02000: Unhandled user-defined not found
+ERROR 02000: Unhandled user-defined not found condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -687,7 +687,7 @@ DECLARE not_found CONDITION FOR SQLSTATE
SIGNAL not_found;
end $$
call test_signal() $$
-ERROR 02XXX: Unhandled user-defined not found
+ERROR 02XXX: Unhandled user-defined not found condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -696,7 +696,7 @@ DECLARE error CONDITION FOR SQLSTATE "12
SIGNAL error;
end $$
call test_signal() $$
-ERROR 12000: Unhandled user-defined exception
+ERROR 12000: Unhandled user-defined exception condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -705,7 +705,7 @@ DECLARE error CONDITION FOR SQLSTATE "12
SIGNAL error;
end $$
call test_signal() $$
-ERROR 12ABC: Unhandled user-defined exception
+ERROR 12ABC: Unhandled user-defined exception condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -714,7 +714,7 @@ DECLARE error CONDITION FOR SQLSTATE "40
SIGNAL error;
end $$
call test_signal() $$
-ERROR 40000: Unhandled user-defined exception
+ERROR 40000: Unhandled user-defined exception condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -723,7 +723,7 @@ DECLARE error CONDITION FOR SQLSTATE "40
SIGNAL error;
end $$
call test_signal() $$
-ERROR 40001: Unhandled user-defined exception
+ERROR 40001: Unhandled user-defined exception condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -734,7 +734,7 @@ end;
SIGNAL foo SET MYSQL_ERRNO=9999; /* outer */
end $$
call test_signal() $$
-ERROR 99999: Unhandled user-defined exception
+ERROR 99999: Unhandled user-defined exception condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -745,7 +745,7 @@ SIGNAL foo SET MYSQL_ERRNO=8888; /* inne
end;
end $$
call test_signal() $$
-ERROR 88888: Unhandled user-defined exception
+ERROR 88888: Unhandled user-defined exception condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -753,7 +753,7 @@ DECLARE foo CONDITION FOR SQLSTATE '9999
SIGNAL foo SET MYSQL_ERRNO = 1111;
end $$
call test_signal() $$
-ERROR 99999: Unhandled user-defined exception
+ERROR 99999: Unhandled user-defined exception condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -762,7 +762,7 @@ SIGNAL warn SET MYSQL_ERRNO = 1111;
end $$
call test_signal() $$
Warnings:
-Warning 1111 Unhandled user-defined warning
+Warning 1111 Unhandled user-defined warning condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -770,7 +770,7 @@ DECLARE not_found CONDITION FOR SQLSTATE
SIGNAL not_found SET MYSQL_ERRNO = 1111;
end $$
call test_signal() $$
-ERROR 02000: Unhandled user-defined not found
+ERROR 02000: Unhandled user-defined not found condition
drop procedure test_signal $$
create procedure test_signal()
begin
@@ -778,7 +778,7 @@ DECLARE error CONDITION FOR SQLSTATE "55
SIGNAL error SET MYSQL_ERRNO = 1111;
end $$
call test_signal() $$
-ERROR 55000: Unhandled user-defined exception
+ERROR 55000: Unhandled user-defined exception condition
drop procedure test_signal $$
SIGNAL SQLSTATE '77777' SET MESSAGE_TEXT='' $$
ERROR 77777:
=== modified file 'sql/share/errmsg.txt'
--- a/sql/share/errmsg.txt 2008-08-27 22:14:03 +0000
+++ b/sql/share/errmsg.txt 2008-08-29 16:38:18 +0000
@@ -6379,13 +6379,13 @@ ER_DUP_SIGNAL_SET 42000
eng "Duplicate condition information item '%s'"
ER_SIGNAL_WARN 01000
- eng "Unhandled user-defined warning"
+ eng "Unhandled user-defined warning condition"
ER_SIGNAL_NOT_FOUND 02000
- eng "Unhandled user-defined not found"
+ eng "Unhandled user-defined not found condition"
ER_SIGNAL_EXCEPTION HY000
- eng "Unhandled user-defined exception"
+ eng "Unhandled user-defined exception condition"
ER_RESIGNAL_NO_HANDLER 0K000
eng "RESIGNAL when handler not active"
=== modified file 'sql/sp_rcontext.cc'
--- a/sql/sp_rcontext.cc 2008-08-27 22:14:03 +0000
+++ b/sql/sp_rcontext.cc 2008-08-29 00:13:27 +0000
@@ -278,7 +278,7 @@ sp_rcontext::find_handler(THD *thd, cons
SQL_condition *raised;
raised= SQL_condition::deep_copy(thd, m_cond_root, cond) ;
DBUG_ASSERT(m_hfound >= 0);
- DBUG_ASSERT(m_hfound < m_root_parsing_ctx->max_handler_index());
+ DBUG_ASSERT((uint) m_hfound < m_root_parsing_ctx->max_handler_index());
m_raised_conditions[m_hfound]= raised;
return TRUE;
| Thread |
|---|
| • bzr push into mysql-6.0-wl2110-review branch (marc.alff:2698 to 2700) | Marc Alff | 29 Aug |