Re: MySQL error handling bug
"Christopher C. Stacy" <[email protected]> Thu, 26 Jun 2003 01:49:24 -0400 (EDT)
| Newsgroups | gmane.lisp.clsql.general,gmane.lisp.uffi.general |
|---|---|
| Message-ID | <[email protected]> |
Changing the following two functions to expect a foreign string,
rather than a C string, seems to fix the problem.
(uffi:def-function ("mysql_error" mysql-error)
((mysql (* mysql-mysql)))
:returning (* :unsigned-char)
:module "mysql")
(defun mysql-error-string (mysql)
(uffi:convert-from-foreign-string (mysql-error mysql)))
I reiterate that I really don't understand the bug, though.