mirror of
https://github.com/MariaDB/server.git
synced 2025-07-11 15:22:09 +03:00
SCRUM
embedded library some fixes - cleanup procedure changed for embedded library - deletion of embedded mysql->thd
This commit is contained in:
@ -210,6 +210,14 @@ int STDCALL emb_unbuffered_fetch(MYSQL *mysql, char **row)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void STDCALL emb_free_embedded_thd(MYSQL *mysql)
|
||||
{
|
||||
THD *thd= (THD*)mysql->thd;
|
||||
if (thd->data)
|
||||
free_rows(thd->data);
|
||||
delete thd;
|
||||
}
|
||||
|
||||
MYSQL_METHODS embedded_methods=
|
||||
{
|
||||
emb_mysql_read_query_result,
|
||||
@ -221,7 +229,8 @@ MYSQL_METHODS embedded_methods=
|
||||
emb_read_prepare_result,
|
||||
emb_stmt_execute,
|
||||
emb_read_binary_rows,
|
||||
emb_unbuffered_fetch
|
||||
emb_unbuffered_fetch,
|
||||
emb_free_embedded_thd
|
||||
};
|
||||
|
||||
C_MODE_END
|
||||
@ -493,16 +502,6 @@ err:
|
||||
}
|
||||
#endif
|
||||
|
||||
void free_embedded_thd(MYSQL *mysql)
|
||||
{
|
||||
THD *thd= (THD*)mysql->thd;
|
||||
if (!thd)
|
||||
return;
|
||||
if (thd->data)
|
||||
free_rows(thd->data);
|
||||
delete thd;
|
||||
}
|
||||
|
||||
C_MODE_END
|
||||
|
||||
bool Protocol::send_fields(List<Item> *list, uint flag)
|
||||
|
Reference in New Issue
Block a user