kris.gro...@mmlab.de writes:
 > I was wondering if anyone could enlighten me as to what happens in the 
 > following pseudo code:
 > 
 > dbi_result x;
 > dbi_result y;
 > dbi_conn z;
 > 
 > ...initialize whatever needs to be initialized...
 > 
 > x = dbiquery(z,whatever);
 > y = dbiquery(z,whatever2);
 > 
 > ...process results...
 > 
 > free x;
 > free y;
 > 
 > I am asking because of the text in the driver guide :
 > Before the next database operation is performed, you must call 
 > dbi_result_free.
 > 

Hi,

I assume that this statement is simply wrong, but feel free to prove
me wrong :-). libdbi does not reuse result handles, therefore you
should be able to create as many result sets at a time as your memory
can hold. It is only mandatory to free the result sets before you
close the connection. This will help libdbi and the client libraries
to free any allocated memory which was associated with these results.

regards,
Markus

-- 
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Libdbi-drivers-devel mailing list
Libdbi-drivers-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libdbi-drivers-devel

Reply via email to