Ignore:
Timestamp:
11/28/2007 03:50:39 AM (19 years ago)
Author:
David Owen <dsowen@…>
branch-nick:
64-bit
revision id:
dsowen@tux-20071128035039-edmhe5hgjsmjzt4w
Message:

Second pass at 64-bit cleanness. Have now touched all files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 64-bit/src/odbc/odbc-main.lisp

    r1 r4  
    455455                (send-parameter-data param hstmt)))))))))
    456456
    457 ;; this functions works only, since we store at
    458 ;; value-ptr the position of the parameter
    459 (defun sql-param-data-position (hstmt) 
    460   (with-temporary-allocations
     457;; this functions works only, since we store at value-ptr the position
     458;; of the parameter
     459;; dso--
     460(defun sql-param-data-position (hstmt)
     461  (with-temporary-allocations
    461462      ((ptr (cffi:foreign-alloc :pointer)))
    462     (let ((res (with-error-handling (:hstmt hstmt) (%sql-param-data hstmt ptr))))
    463       (values res (if (= res $SQL_NEED_DATA)
    464                     (cffi:mem-ref (cffi:mem-ref ptr :pointer) :long  ))))))
     463    (let ((res (with-error-handling (:hstmt hstmt)
     464                   (%sql-param-data hstmt ptr))))
     465      (values res (if (= res $SQL_NEED_DATA)
     466                      (cffi:mem-ref (cffi:mem-ref ptr :pointer) :int32))))))
     467                                        ; TODO: The :int32 above
     468                                        ; should probably be changed!
    465469
    466470(defmethod exec-prepared-query ((query prepared-statement) &rest parameters)
Note: See TracChangeset for help on using the changeset viewer.