You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not use mysql_use_result() when throwing away unfetched result sets.
Documentation for this function says:
When using mysql_use_result(), you must execute mysql_fetch_row() until a
NULL value is returned, otherwise, the unfetched rows are returned as part
of the result set for your next query. The C API gives the error Commands
out of sync; you can't run this command now if you forget to do this!
So use mysql_store_result() instead which is safe as it does not require to
call mysql_fetch_row() for each row in result set.
Also correctly check for errors returned by mysql_store_result() and
rethrow them to DBI.
0 commit comments