diff options
author | Sinisa@sinisa.nasamreza.org <> | 2004-12-07 19:12:29 +0200 |
---|---|---|
committer | Sinisa@sinisa.nasamreza.org <> | 2004-12-07 19:12:29 +0200 |
commit | a90da35fe660495c9ccc607b4f6f51c3a7e433b5 (patch) | |
tree | d3cca00e8433c3fd7930e0b647643f5218e0ef3f /libmysql | |
parent | dededf09fa8cb1096549e74f543c84b81e413066 (diff) | |
download | mariadb-git-a90da35fe660495c9ccc607b4f6f51c3a7e433b5.tar.gz |
Fix for a bug #6996
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index cb20c5181a8..99fa0299de9 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -4413,6 +4413,12 @@ mysql_stmt_data_seek(MYSQL_STMT *stmt, my_ulonglong row) for (; tmp && row; --row, tmp= tmp->next) ; stmt->data_cursor= tmp; + if (!row && tmp) + { + /* Rewind the counter */ + stmt->read_row_func= stmt_read_row_buffered; + stmt->state= MYSQL_STMT_EXECUTE_DONE; + } DBUG_VOID_RETURN; } |