1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Fix for MDEV-12247:

If a statement with open (read only) cursor is executed there is no buffered
result set (result set rows will be fetched directly from server), so we need to skip reading unbuffered result sets if a cursor is open.
This commit is contained in:
Georg Richter
2017-03-21 17:26:19 +01:00
parent 6bec9204f0
commit 63e0897d43
5 changed files with 104 additions and 2 deletions

View File

@@ -402,6 +402,7 @@ static int bulk5(MYSQL *mysql)
res= mysql_store_result(mysql);
rows= (unsigned long)mysql_num_rows(res);
diag("rows: %d", rows);
mysql_free_result(res);
FAIL_IF(rows != 5, "expected 5 rows");