mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
SCRUM
embedded library some fixes - cleanup procedure changed for embedded library - deletion of embedded mysql->thd include/mysql.h: free_embedded_thd added to the list of virtual methods libmysqld/embedded_priv.h: function deleted libmysqld/lib_sql.cc: function moved upper in file sql-common/client.c: call of free_embedded_thd added
This commit is contained in:
@@ -1409,7 +1409,8 @@ static MYSQL_METHODS client_methods=
|
||||
cli_read_prepare_result,
|
||||
cli_stmt_execute,
|
||||
cli_read_binary_rows,
|
||||
cli_unbuffered_fetch
|
||||
cli_unbuffered_fetch,
|
||||
NULL
|
||||
#endif
|
||||
};
|
||||
|
||||
@@ -2207,6 +2208,10 @@ void STDCALL mysql_close(MYSQL *mysql)
|
||||
#endif
|
||||
if (mysql != mysql->master)
|
||||
mysql_close(mysql->master);
|
||||
#ifndef MYSQL_SERVER
|
||||
if (mysql->thd)
|
||||
(*mysql->methods->free_embedded_thd)(mysql);
|
||||
#endif
|
||||
if (mysql->free_me)
|
||||
my_free((gptr) mysql,MYF(0));
|
||||
}
|
||||
|
Reference in New Issue
Block a user