From: Zoltan B. <zb...@du...> - 2009-02-03 17:21:56
|
Hi, this seems to be the last thing needed for Windows, so it not only compiles but also produces correct results. :-) While using a report that summed up large numbers and the result was larger than 2^31, I got negative results, but only if the app and RLIB was running on Windows. Under Linux, it worked correctly. It turned out the problem is that %lld is interpreted as %ld under Windows. Browsing through inttypes.h in MinGW revealed that the correct printf format is I64d for Windows. So, I fixed it by killing all "%lld" occurences and replaced them with the portable format string. I also killed the _64BIT_ definition in configure.in because it's not needed anymore. After recompiling RLIB with this patch I get correct results in Windows. Best regards, Zoltán Böszörményi Bob Doan írta: > 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 >> >> > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Rlib-devel mailing list > Rli...@li... > https://lists.sourceforge.net/lists/listinfo/rlib-devel > |