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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user