AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   dbi_free_result() (https://forums.alliedmods.net/showthread.php?t=17262)

harbu 08-28-2005 12:05

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?

Brad 08-28-2005 12:29

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.