Raised This Month: $ Target: $400
 0% 

dbi_free_result()


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
harbu
Senior Member
Join Date: Aug 2004
Location: Finland
Old 08-28-2005 , 12:05   dbi_free_result()
Reply With Quote #1

If I do a query and the result is empty or fails. Should I still use dbi_free_result() to free the result?
__________________
harbu is offline
Send a message via MSN to harbu
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 08-28-2005 , 12:29  
Reply With Quote #2

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.
Brad is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode