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:       
        (let* ((field-vec (mysql-fetch-fields rs))
  	     (num-fields (mysql-num-fields rs))
  	     (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)))
  
  	(dotimes (i num-fields)
  	  (declare (fixnum i))
  
negative.code:     ((in type :short) mysql-field-types#short)
      ((in type :bigint) mysql-field-types#longlong)
      ((in type :float :double :number) mysql-field-types#double)
      ((and (consp type) (in (car type) :char :string :varchar)) mysql-field-types#var-string)
      (t
         (error 'sql-user-error 
  	      :message 
  