Hi Jeremy,

are you using the libdbi-0.8.1 sources? A similar problem has been
reported before by Sami Tolvanen, see:

http://sourceforge.net/mailarchive/forum.php?thread_id=9174478&forum_id=33788

This problem has been fixed in the CVS version. Could you please check
out the CVS version and see whether this eliminates your problem?

regards,
Markus

Jeremy Cowgar writes:
 > I believe the actual problem lies in dbi_result.c, around like 539:
 > 
 > if (result->numfields) {
 > 
 > As seen above, PostgreSQL set's the numfields to zero, yet it does fill
 > in the result->field_names, result->field_types, result->field_attribs
 > that are free'd inside this if statement.
 > 
 > I *hacked* the if statement above to read:
 > 
 > if (result->numfields || result->field_names != NULL) {
 > 

-- 
Markus Hoenicka
[EMAIL PROTECTED]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
libdbi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libdbi-devel

Reply via email to