summaryrefslogtreecommitdiff
path: root/libmysql/libmysql.c
diff options
context:
space:
mode:
authorholyfoot/hf@mysql.com/deer.(none) <>2006-07-18 16:43:39 +0500
committerholyfoot/hf@mysql.com/deer.(none) <>2006-07-18 16:43:39 +0500
commit00f56da9af79e19ec457a03044542117f222049e (patch)
treece08bf51020b326c89464a97bbda2af70a64ecc3 /libmysql/libmysql.c
parentbed7b69243cf04bfde409222285b563596c6f359 (diff)
downloadmariadb-git-00f56da9af79e19ec457a03044542117f222049e.tar.gz
merging
Diffstat (limited to 'libmysql/libmysql.c')
-rw-r--r--libmysql/libmysql.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index b1fc99ad60e..4efc3c2fd1c 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -2699,7 +2699,8 @@ stmt_read_row_from_cursor(MYSQL_STMT *stmt, unsigned char **row)
int4store(buff, stmt->stmt_id);
int4store(buff + 4, stmt->prefetch_rows); /* number of rows to fetch */
if ((*mysql->methods->advanced_command)(mysql, COM_STMT_FETCH,
- buff, sizeof(buff), NullS, 0, 1))
+ buff, sizeof(buff), NullS, 0,
+ 1, NULL))
{
set_stmt_errmsg(stmt, net->last_error, net->last_errno, net->sqlstate);
return 1;
@@ -4948,7 +4949,7 @@ static my_bool reset_stmt_handle(MYSQL_STMT *stmt, uint flags)
char buff[MYSQL_STMT_HEADER]; /* packet header: 4 bytes for stmt id */
int4store(buff, stmt->stmt_id);
if ((*mysql->methods->advanced_command)(mysql, COM_STMT_RESET, buff,
- sizeof(buff), 0, 0, 0))
+ sizeof(buff), 0, 0, 0, NULL))
{
set_stmt_errmsg(stmt, mysql->net.last_error, mysql->net.last_errno,
mysql->net.sqlstate);