r9189: implement result-types for sqlite
[clsql.git] / db-sqlite / sqlite-api-uffi.lisp
index 77649a5d15533817e3eb68ddf56f79abf4bd1395..939651522e882c093298297357ae658530031fd4 100644 (file)
@@ -10,6 +10,7 @@
 ;;;; $Id$
 ;;;;
 ;;;; This file, part of CLSQL, is Copyright (c) 2003 by Aurelio Bignoli
+;;;; and Copyright (c) 2003-2004 by Kevin Rosenberg
 ;;;;
 ;;;; CLSQL users are granted the rights to distribute and use this software
 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
@@ -84,7 +85,8 @@
                         :code code
                         :message (if message
                                      message
-                                     (sqlite-error-string code)))))
+                                   (uffi:convert-from-cstring
+                                    (sqlite-error-string code))))))
     (unless (signal condition)
       (invoke-debugger condition))))