mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Fixed BUG#12379: PROCEDURE with HANDLER calling FUNCTION with error
get strange result according to Monty's suggestions, fixing the SELECT behaviour on errors with SP handlers. Note that some warnings from SELECT still shows up when the handler has caught - this is an effect of another known bug (BUG#7049). mysql-test/r/sp.result: New test cases for BUG#12379. mysql-test/t/sp.test: New test cases for BUG#12379. sql/sql_class.cc: Abort selects on errors more graceful with SP handlers. sql/sql_class.h: Abort selects on errors more graceful with SP handlers.
This commit is contained in:
@@ -1658,12 +1658,14 @@ public:
|
||||
|
||||
|
||||
class select_send :public select_result {
|
||||
int status;
|
||||
public:
|
||||
select_send() {}
|
||||
select_send() :status(0) {}
|
||||
bool send_fields(List<Item> &list, uint flags);
|
||||
bool send_data(List<Item> &items);
|
||||
bool send_eof();
|
||||
bool simple_select() { return 1; }
|
||||
void abort();
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user