From: Bob D. <bd...@si...> - 2008-09-29 20:12:46
|
Applied Thanks! On Mon, 2008-09-29 at 17:00 +0200, Zoltan Boszormenyi wrote: > Hi, > > we came across a problem in the RLIB/ODBC interaction > recently that turned out to be a bug in psqlODBC. > When a query is not executable because of a malformed query > or for some other reason (in my case a numeric conversion > was overflowing for a record) then my app crashed calling > rlib_execute() when I used an ODBC datasource. The last call > that crashed according to GDB was SQLGetDiagRec() inside > psqlODBC. This bug was apparently fixed in version 08.03.0300 > and it let me test further. RLIB correctly reported on the console > that it was unable to execute the query but then it crashed anyway > in an strcmp() in line 607 of reportgen.c. The attached patch fixes > this issue and now RLIB reports the erroneous query on the > console and then all the missing fields for the report. > It doesn't crash now. > > Best regards, > Zoltán Böszörményi > |