Changeset unicode,3 for unicode/src/odbc/odbc-main.lisp
- Timestamp:
- 12/07/2007 02:13:22 PM (19 years ago)
- revision id:
- svn-v3-trunk1:1c22b0a8-4d0b-0410-a296-af6a2e6f35e3:plain-odbc%2Ftrunk:8
- File:
-
- 1 edited
-
unicode/src/odbc/odbc-main.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
unicode/src/odbc/odbc-main.lisp
r1 r3 455 455 (send-parameter-data param hstmt))))))))) 456 456 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 461 462 ((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! 465 469 466 470 (defmethod exec-prepared-query ((query prepared-statement) &rest parameters)
Note: See TracChangeset
for help on using the changeset viewer.
