mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Added test cases for the following bugs that have been fixed by recent changes:
BUG#1863: CREATE TABLE in Stored Procedure sometimes crashes on repeated calls. BUG#2656: select with join in stored procedure: erroneous result on 2nd call. BUG#3426: IF x IS NULL in stored procedure fails on second call within connection. BUG#3448: Stored Procedures with inner joins possible bug. BUG#3734: Stored procedure returns wrong rows with fulltext parameter. BUG#3863: Stored procedure crash when incrementing variable in a loop. (And corrected the row count output to the client after CALL) mysql-test/r/sp.result: New test case results for fixed bugs. mysql-test/t/sp.test: New test cases for fixed bugs. sql/sql_parse.cc: Corrected the row_count output to the client.
This commit is contained in:
@@ -3489,7 +3489,7 @@ unsent_create_error:
|
||||
}
|
||||
|
||||
if (res == 0)
|
||||
send_ok(thd, thd->row_count_func);
|
||||
send_ok(thd, (thd->row_count_func < 0 ? 0 : thd->row_count_func));
|
||||
else
|
||||
goto error; // Substatement should already have sent error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user