mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Follow-up for bug#7990
libmysql/libmysql.c: And now put it to the proper place and make it work (Bug#7990) tests/mysql_client_test.c: Enable the test for bug#7990
This commit is contained in:
@ -4518,17 +4518,17 @@ my_bool STDCALL mysql_stmt_close(MYSQL_STMT *stmt)
|
|||||||
if (mysql)
|
if (mysql)
|
||||||
{
|
{
|
||||||
mysql->stmts= list_delete(mysql->stmts, &stmt->list);
|
mysql->stmts= list_delete(mysql->stmts, &stmt->list);
|
||||||
|
/*
|
||||||
|
Clear NET error state: if the following commands come through
|
||||||
|
successfully, connection will still be usable for other commands.
|
||||||
|
*/
|
||||||
|
net_clear_error(&mysql->net);
|
||||||
if ((int) stmt->state > (int) MYSQL_STMT_INIT_DONE)
|
if ((int) stmt->state > (int) MYSQL_STMT_INIT_DONE)
|
||||||
{
|
{
|
||||||
char buff[MYSQL_STMT_HEADER]; /* 4 bytes - stmt id */
|
char buff[MYSQL_STMT_HEADER]; /* 4 bytes - stmt id */
|
||||||
|
|
||||||
if (mysql->unbuffered_fetch_owner == &stmt->unbuffered_fetch_cancelled)
|
if (mysql->unbuffered_fetch_owner == &stmt->unbuffered_fetch_cancelled)
|
||||||
mysql->unbuffered_fetch_owner= 0;
|
mysql->unbuffered_fetch_owner= 0;
|
||||||
/*
|
|
||||||
Clear NET error state: if the following commands come through
|
|
||||||
successfully, connection will still be usable for other commands.
|
|
||||||
*/
|
|
||||||
net_clear_error(&mysql->net);
|
|
||||||
if (mysql->status != MYSQL_STATUS_READY)
|
if (mysql->status != MYSQL_STATUS_READY)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
@ -11813,6 +11813,7 @@ static struct my_tests_st my_tests[]= {
|
|||||||
{ "test_rewind", test_rewind },
|
{ "test_rewind", test_rewind },
|
||||||
{ "test_bug6761", test_bug6761 },
|
{ "test_bug6761", test_bug6761 },
|
||||||
{ "test_bug8330", test_bug8330 },
|
{ "test_bug8330", test_bug8330 },
|
||||||
|
{ "test_bug7990", test_bug7990 },
|
||||||
{ 0, 0 }
|
{ 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user