Re: ODBC BIGINT hacking

Kevin Rosenberg <kevin-HJRc7zDS/[email protected]> Fri, 20 Jul 2007 16:02:20 -0600
Newsgroups gmane.lisp.clsql.devel
Message-ID <[email protected]>
Nathan Bird wrote:
> The downside: I didn't figure out how to make it work with uffi. This
> uses :long-long out of the cffi-uffi-compat library.  If someone can
> figure out a comparable item in uffi, or can teach uffi then this might
> be more useful, as is I'm posting it for reference as much as anything.

Since not all Lisp implementations support long-long integers, the
usual way to read 64-bit integers with UFFI is separatey access the
two 32-bit halves of the long-long and then combine the results.

I'd have to delve back into the ODBC backend to figure would how to do
that double access, but I won't be doing that in the very near
future. Sounds like you have an adequate work-around for now.

Kevin