Changes regarding standard_conforming_strings in postgres
[clsql.git] / db-mysql / mysql-sql.lisp
index 95ec0eceb32f910dabf5c2cc96d6d6621de38abb..9bc0e52bbf712d74cb980df895916d053d4d7f8d 100644 (file)
                           result-types field-names)
   (declare (optimize (speed 3)))
   (let ((mysql-ptr (database-mysql-ptr database))
-        (results nil)     ;; all the results and column-names in reverse-order
-        res-ptr (num-fields 0))
-    (declare (type mysql-mysql-ptr-def mysql-ptr res-ptr)
+        (results nil) ;; all the results and column-names in reverse-order
+        (res-ptr nil)
+        (num-fields 0))
+    (declare (type mysql-mysql-ptr-def mysql-ptr)
+             (type (or null mysql-mysql-res-ptr-def) res-ptr)
              (fixnum num-fields))
     (when (database-execute-command query-expression database)
       (labels
 
 (when (clsql-sys:database-type-library-loaded :mysql)
   (clsql-sys:initialize-database-type :database-type :mysql))
+
+(defmethod clsql-sys::database-escape-backslashes ((database mysql-database))
+  t)