r10088: Add support for blob result type
[clsql.git] / db-mysql / mysql-sql.lisp
index 224c77859ede2891c450218493cf39bdc296a861..c202a5e29d80aa929c3cafcbfae4fec113655a40 100644 (file)
@@ -41,7 +41,7 @@
     (dotimes (i num-fields)
       (declare (fixnum i))
       (let* ((field (uffi:deref-array field-vec '(:array mysql-field) i))
-             (type (uffi:get-slot-value field 'mysql-field 'type)))
+            (type (uffi:get-slot-value field 'mysql-field 'type)))
        (push
         (case type
           ((#.mysql-field-types#tiny 
       
       (let* ((field-vec (mysql-fetch-fields rs))
             (num-fields (mysql-num-fields rs))
-            (input-bind (uffi:allocate-foreign-object mysql-bind (length types)))
-            (output-bind (uffi:allocate-foreign-object mysql-bind num-fields))
+            (input-bind (uffi:allocate-foreign-object 'mysql-bind (length types)))
+            (output-bind (uffi:allocate-foreign-object 'mysql-bind num-fields))
             (length-ptr (uffi:allocate-foreign-object :unsigned-long num-fields))
             (is-null-ptr (uffi:allocate-foreign-object :byte num-fields))
             (mysql-types (mapcar 'clsql-type->mysql-type types)))
   #-mysql-client-v4.1 nil)
 
 (defmethod db-type-has-boolean-where? ((db-type (eql :mysql)))
-  nil)
+  #+mysql-client-v4.1 t
+  #-mysql-client-v4.1 nil)
 
 (defmethod db-type-has-union? ((db-type (eql :mysql)))
   (not (eql (schar mysql::*mysql-client-info* 0) #\3)))