Re: MySQL error handling bug

Kevin Rosenberg <kevin-HJRc7zDS/[email protected]> Thu, 26 Jun 2003 00:55:41 -0600
Newsgroups gmane.lisp.clsql.general,gmane.lisp.uffi.general
Message-ID <[email protected]>
Christopher C. Stacy wrote:
> I'm in Lispworks for Windows 4.1 with CL-SQL 1.5.4 (but the 
> latest 1.6.6 files look the same here) and UFFI 1.2.15, 
> talking to some mySQL server on Linux.

I think the difference with what Lispworks 4.1 does versus what
Lispworks 4.2.0 and 4.2.7 do.

The function (mysql:mysql-error ptr) returns a string on Lispworks 4.2
(as it does with sbcl and cmu).  Thus, the function
convert-from-cstring is used.

I suspect you'll find that UFFI tests also fail with Lispworks 4.1,
such as the getenv.lisp tests which tests functions that return
cstrings.

If you can confirm that getenv.lisp also fails with Lispworks 4.1,
I'll add a notice about incompatibility with Lispworks
4.1. Alternately, I could possibly adjust convert-from-cstring to
handle lispworks 4.1 differently than lispworks 4.2.

-- 
Kevin Rosenberg
kevin-HJRc7zDS/[email protected]