[unixODBC-dev] Lots of warnings, and an outright error, in 2.2.14 on 64-bit

Peter Lai cowbert at gmail.com
Wed Feb 11 06:40:28 GMT 2009

There is a patch for this. Basically declare ODBCINT64_TYPE (and
UODBCINT64_TYPE) in sqltypes. There is a patch in cvs, but for the
concrete example, this is how this was patched in freebsd:



On Tue, Feb 10, 2009 at 9:52 PM, Tom Lane <tgl at sss.pgh.pa.us> wrote:
> unixODBC 2.2.14 fails to build for me on Fedora 9 x86_64 (gcc 4.3.0);
> it looks like a genuine 64-bit-ness bug in odbctest/results.cpp:
> results.cpp: In member function 'void dExtendedFetch::Ok()':
> results.cpp:2608: error: cannot convert 'SQLUINTEGER*' to 'SQLULEN*' for argument '4' to 'SQLRETURN SQLExtendedFetch(void*, SQLUSMALLINT, SQLLEN, SQLULEN*, SQLUSMALLINT*)'
> I also get a boatload of warnings (attached), a lot of which look like
> potentially real problems --- especially the format-mismatch ones.
> Any interest in fixing these?  I gather that odbctest won't even be
> there anymore in 2.2.15, but...
>                        regards, tom lane
> _______________________________________________
> unixODBC-dev mailing list
> unixODBC-dev at mailman.unixodbc.org
> http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev

More information about the unixODBC-dev mailing list