dbi_free_result()
If I do a query and the result is empty or fails. Should I still use dbi_free_result() to free the result?
|
If the return is empty (RESULT_NONE), you should. That is until the next release after AMXX 1.55 at which time a return of RESULT_NONE will automatically free the result. See this post for more information.
If the query fails (RESULT_FAIL), I don't believe you need to free the result as you really don't have a result in the sense of a dataset. |
| All times are GMT -4. The time now is 14:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.