Fix GH-282: Mysql's fetch_row() is broken

Fix both MySQL and PostgreSQL drivers to return an error when
fetch_row() is called after retrieving all rows in the result set.
This commit is contained in:
Alexey Kopytov
2018-12-16 17:21:39 +03:00
parent bb8c3b04c5
commit b017a998ef
5 changed files with 56 additions and 2 deletions

View File

@ -108,6 +108,9 @@ SQL Lua API + PostgreSQL tests
}
*/api_sql.lua:*: SQL error, errno = 0, state = '42P01': table "t" does not exist (glob)
--
########################################################################
# Multiple connections test
########################################################################
1
2
3
@ -118,6 +121,17 @@ SQL Lua API + PostgreSQL tests
8
9
10
########################################################################
# Incorrect bulk API usage
########################################################################
ALERT: attempt to call bulk_insert_next() before bulk_insert_init()
*/api_sql.lua:*: db_bulk_insert_next() failed (glob)
########################################################################
# query_row() with an empty result set
########################################################################
nil
########################################################################
# GH-282: Mysql's fetch_row() is broken
########################################################################
1
2