mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Simplification: MYSQL_RES *result replaced with MYSQL_DATA result;
No need to check for result existence any more, store_result functions now are shorter. cli_read_binary_rows rewritten to handle MYSQL_DATA directly.
This commit is contained in:
@ -200,9 +200,14 @@ static int emb_stmt_execute(MYSQL_STMT *stmt)
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
|
||||
MYSQL_DATA *emb_read_binary_rows(MYSQL_STMT *stmt)
|
||||
int emb_read_binary_rows(MYSQL_STMT *stmt)
|
||||
{
|
||||
return emb_read_rows(stmt->mysql, 0, 0);
|
||||
MYSQL_DATA *data;
|
||||
if (!(data= emb_read_rows(stmt->mysql, 0, 0)))
|
||||
return 1;
|
||||
stmt->result= *data;
|
||||
my_free((char *) data, MYF(0));
|
||||
return 0;
|
||||
}
|
||||
|
||||
int emb_unbuffered_fetch(MYSQL *mysql, char **row)
|
||||
|
Reference in New Issue
Block a user