1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00
Files
mariadb/sql
Dmitry Shulga 871f36357e Fixed bug#54375 - Error in stored procedure leaves connection
in different default schema.

In strict mode, when data truncation or conversion happens,
THD::killed is set to THD::KILL_BAD_DATA.

This is abuse of KILL mechanism to guarantee that execution
of statement is aborted.

The stored procedures execution, on the other hand,
upon detection that a connection was killed, would
terminate immediately, without trying to restore the caller's
context, in particular, restore the caller's current schema.

The fix is, when terminating a stored procedure execution,
to only bypass cleanup if the entire connection was killed,
not in case of other forms of KILL.


mysql-test/r/sp-bugs.result:
  Added result for a test case for bug#54375.
mysql-test/t/sp-bugs.test:
  Added test case for bug#54375.
sql/sp_head.cc:
  sp_head::execute modified: restore saved current db if
  connection is not killed.
2010-11-11 10:52:51 +06:00
..
2010-03-17 19:15:41 +01:00
2010-10-01 15:41:27 +02:00
2010-10-01 13:39:49 +02:00
2010-07-09 15:00:33 +02:00
2010-09-09 16:48:06 +04:00
2010-06-08 10:28:30 +04:00
2010-08-13 14:18:46 +03:00
2010-03-29 18:42:49 +05:00
2010-11-09 12:45:13 -02:00
2007-10-16 16:11:50 -04:00
2010-11-09 12:45:13 -02:00
2008-11-22 01:10:38 +01:00
2008-11-22 01:10:38 +01:00
2009-06-01 16:00:38 +04:00
2010-07-23 18:15:56 +07:00
2009-11-03 20:45:52 +03:00
2010-01-28 19:51:40 -02:00
2010-01-28 19:51:40 -02:00
2010-03-17 19:15:41 +01:00
2008-07-03 23:41:22 +04:00
2009-04-29 07:59:10 +05:00
2009-12-18 16:44:24 -02:00
2008-01-23 13:26:41 -07:00
2010-06-11 16:52:06 +04:00
2007-10-16 16:11:50 -04:00
2010-07-26 11:56:30 +02:00
2010-08-24 14:44:15 +04:00
2010-01-24 15:03:23 +08:00
2009-01-14 18:50:51 +04:00
2010-01-25 10:55:05 +08:00
2010-06-11 16:52:06 +04:00
2009-11-03 20:45:52 +03:00
2009-06-17 16:56:44 +02:00