anchor.diff:      (setf (uffi:get-slot-value binding 'mysql-bind 'length) 0)
       (cond
        ((null value)
  -      (setf (uffi:get-slot-value binding 'mysql-bind 'is-null) 1))
  +      (setf (uffi:deref-array (is-null-ptr stmt) '(:array :byte) (1- position)) 1))
        (t
  -      (setf (uffi:get-slot-value binding 'mysql-bind 'is-null) 0)
  -      (setf (uffi:get-slot-value binding 'mysql-bind 'buffer-type) type)
  +      (setf (uffi:deref-array (is-null-ptr stmt) '(:array :byte) (1- position)) 0)
         (case type
   	(#.mysql-field-types#long
  -	 (let ((ptr (uffi:allocate-foreign-object :long)))
  -	   (setf (uffi:deref-pointer ptr :long) value)
  -	   (setf (uffi:get-slot-value binding 'mysql-bind 'buffer) ptr)))
  +	 (setf (uffi:get-slot-value binding 'mysql-bind 'buffer) value))
  +	(t
  +	 (warn "Unknown input bind type ~D." type))
   	)))))
   
   #+mysql-client-v4.1
   (defmethod database-run-prepared ((stmt mysql-stmt))
  +  (print 'a1)
     (unless (zerop (mysql-stmt-bind-param (stmt stmt) (input-bind stmt)))
       (error 'sql-database-error
   	   :error-id (mysql-stmt-errno (stmt stmt))
   	   :message  (uffi:convert-from-cstring
   		      (mysql-stmt-error (stmt stmt)))))
  +  (print 'a2)
     (unless (zerop (mysql-stmt-execute (stmt stmt)))
       (error 'sql-database-error
   	   :error-id (mysql-stmt-errno (stmt stmt))
   	   :message  (uffi:convert-from-cstring
   		      (mysql-stmt-error (stmt stmt)))))
  +  (print 'a3)
     (unless (zerop (mysql-stmt-store-result (stmt stmt)))
       (error 'sql-database-error
   	   :error-id (mysql-stmt-errno (stmt stmt))
  
positive.code: 		 (type (uffi:get-slot-value field 'mysql-field 'type))
  		 (binding (uffi:deref-array output-bind '(:array mysql-bind) i)))
  	    (setf (uffi:get-slot-value binding 'mysql-bind 'buffer-type) type)
  	    (setf (uffi:get-slot-value binding 'mysql-bind 'buffer-length) 0)
  	    (setf (uffi:get-slot-value binding 'mysql-bind 'is-null) 
  		  (uffi:pointer-address (uffi:deref-array is-null-ptr '(:array :byte) i)))
  	    (setf (uffi:get-slot-value binding 'mysql-bind 'length) 
  		  (uffi:pointer-address (uffi:deref-array length-ptr '(:array :unsigned-long) i)))
  
  	    (case type
  	      ((#.mysql-field-types#var-string #.mysql-field-types#string
  	       #.mysql-field-types#tiny-blob #.mysql-field-types#blob
  	       #.mysql-field-types#medium-blob #.mysql-field-types#long-blob)
  	       (setf (uffi:get-slot-value binding 'mysql-bind 'buffer-length) 1024)
  	       (setf (uffi:get-slot-value binding 'mysql-bind 'buffer)
  		     (uffi:allocate-foreign-object :unsigned-char 1024)))
  
negative.code:       
        (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))
  	     (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)))
  	
  	(dotimes (i (length types))
  	  (let* ((binding (uffi:deref-array input-bind '(:array mysql-bind) i)))
  	    (setf (uffi:get-slot-value binding 'mysql-bind 'buffer-type) 
  		  (nth i mysql-types))
  	    (setf (uffi:get-slot-value binding 'mysql-bind 'buffer-length) 0)))	    
  
  	(dotimes (i num-fields)
  	  (declare (fixnum i))
  