Previous Thread
Next Thread
Print Thread
SQLOP_FREE_RESULT question #31113 07 May 14 11:00 AM
Joined: Nov 2006
Posts: 2,223
S
Stephen Funkhouser Offline OP
Member
OP Offline
Member
S
Joined: Nov 2006
Posts: 2,223
Is it necessary to "free result" for a query which returns no rows?


Stephen Funkhouser
Diversified Data Solutions
Re: SQLOP_FREE_RESULT question #31114 07 May 14 11:56 AM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
It appears to me that is not necessary. The result handle (which is freed by SQLOP_FREE_RESULT) is only set if the query returns rows.

On the other hand, a redundant SQLOP_FREE_RESULT call would be harmless.


Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3