Proper db_free_result() usage?
#1

I have a simple question, which relates to the db_free_result(); function. Is db_free_result(); used only after retrieving a result? Such as:

pawn Код:
new string[128], DBResult:result;
format(string, sizeof(string), "SELECT * FROM `TABLE` WHERE `VALUE` = '%s'", EscapeString("example"));
result = db_query(Database, string);
db_free_result(result); // <---
Or is it to be used during the use of db_query as well (as shown as an example on the Wiki page)?
I've seen numerous examples and different usages, so I really don't understand where and when to use this function. Thanks.
Reply


Messages In This Thread
Proper db_free_result() usage? - by DrakeX - 14.05.2014, 19:44
Re: Proper db_free_result() usage? - by Vince - 14.05.2014, 20:11
Re: Proper db_free_result() usage? - by Goldenfox - 16.05.2014, 20:42

Forum Jump:


Users browsing this thread: 1 Guest(s)