Skip to content

Commit 8a0fc3c

Browse files
committed
Added row 'rewind' for 'mysql_fetch_rows'
1 parent 6e0a3f5 commit 8a0fc3c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

bin/unix/cod4x_mysql.so

0 Bytes
Binary file not shown.

script_functions.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,9 @@ void Scr_MySQL_Fetch_Rows_f()
402402

403403
unsigned int col_count = mysql_num_fields(g_mysql_res[handle]);
404404

405+
/* Just rewind it back to start */
406+
mysql_row_seek(g_mysql_res[handle], 0);
407+
405408
// do this no matter what.
406409
Plugin_Scr_MakeArray();
407410

0 commit comments

Comments
 (0)