I've written an ODBC library that works fine on
Windows 95 using several different ODBC drivers.
Today I tried to run it on NT 3.5. Everything
works except one (crucial, of course) statement:
sql-fetch, defined below:
(ct:defun-dll sql-fetch ((hstmt sqlhandle))
:return-type :short
:library-name "odbc32.dll"
:entry-name "SQLFetch")
Even this statement works almost all of the time.
The problem is that when the end of the result set
is reached, sql-fetch doesn't return an error code
in the usual manner. Instead, it blows up, taking
the lisp environment along with it. I tried
changing the return-type to :long, but this didn't
help. Does any one have any ideas about what might
be the problem here?