Must mysql_free_result be called after mysql_store_result in case of NULL?

2005-09-24 Thread Lefteris Tsintjelis
Hi, I have been searching for this for a while without finding a good answer. In the following example, MUST I call mysql_free_result() in case mysql_store_result(sql)==NULL or not? Is the following valid in case of NULL? query=update/insert ... if (mysql_query(sql,query)!=0)

Re: Must mysql_free_result be called after mysql_store_result in case of NULL?

2005-09-24 Thread Pooly
2005/9/24, Lefteris Tsintjelis [EMAIL PROTECTED]: Hi, I have been searching for this for a while without finding a good answer. In the following example, MUST I call mysql_free_result() in case mysql_store_result(sql)==NULL or not? Is the following valid in case of NULL?

Re: Must mysql_free_result be called after mysql_store_result in case of NULL?

2005-09-24 Thread Lefteris Tsintjelis
Pooly wrote: 2005/9/24, Lefteris Tsintjelis [EMAIL PROTECTED]: Hi, I have been searching for this for a while without finding a good answer. In the following example, MUST I call mysql_free_result() in case mysql_store_result(sql)==NULL or not? Is the following valid in case of NULL?