1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

A fix for Bug#49972 "Crash in prepared statements":

The problem is introduced by WL#4435 "Support OUT-parameters in 
prepared statements".
When a statement that has out parameters was reprepared,
the reprepare request error was ignored, and an
attempt to send out parameters to the client was made.

Since the out parameter list was not initialized in case
of an error, this attempt led to a crash.

Don't try to send out parameters to the client
if an error occurred in statement execution.

sql/sql_prepare.cc:
  Don't try to send out parameters if error.
tests/mysql_client_test.c:
  Re-enable the test case for Bug#49972.
This commit is contained in:
Konstantin Osipov
2010-03-11 16:47:34 +03:00
parent baab8dd83c
commit ea70b6a20a
2 changed files with 2 additions and 3 deletions

View File

@ -19373,7 +19373,7 @@ static struct my_tests_st my_tests[]= {
#endif
{ "test_bug41078", test_bug41078 },
{ "test_bug44495", test_bug44495 },
/* XXX { "test_bug49972", test_bug49972 }, */
{ "test_bug49972", test_bug49972 },
{ 0, 0 }
};