Changeset combined,2.1.2 for combined/src/odbc/odbc-main.lisp
- Timestamp:
- 11/28/2007 03:50:39 AM (19 years ago)
- branch-nick:
- 64-bit
- revision id:
- dsowen@tux-20071128035039-edmhe5hgjsmjzt4w
- File:
-
- 1 edited
-
combined/src/odbc/odbc-main.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
combined/src/odbc/odbc-main.lisp
r1 r2.1.2 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.
