Ignore:
Timestamp:
12/07/2007 02:13:22 PM (19 years ago)
Author:
raverkamp
revision id:
svn-v3-trunk1:1c22b0a8-4d0b-0410-a296-af6a2e6f35e3:plain-odbc%2Ftrunk:8
Message:

included changes for 64 bit linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/src/odbc/odbc-main.lisp

    r1 r3  
    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.