;;;; Purpose: Function definitions for UFFI interface to ODBC
;;;; Author: Kevin M. Rosenberg
;;;;
-;;;; $Id$
-;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2004 by Kevin M. Rosenberg
;;;; and Copyright (C) Paul Meurer 1999 - 2001. All rights reserved.
;;;;
(def-foreign-type string-ptr (* :unsigned-char))
(def-type long-ptr-type (* #.$ODBC-LONG-TYPE))
-;; odbc v3
+;; ODBC3
(def-function "SQLAllocHandle"
((handle-type :short)
(input-handle sql-handle)
:module "odbc"
:returning :short)
+;; ODBC3 version of SQLFreeStmt, SQLFreeConnect, and SSQLFreeStmt
+(def-function "SQLFreeHandle"
+ ((handle-type :short) ; HandleType
+ (input-handle sql-handle)) ; Handle
+ :module "odbc"
+ :returning :short) ; RETCODE_SQL_API
+
+
;; deprecated
(def-function "SQLAllocEnv"
((*phenv sql-handle-ptr) ; HENV FAR *phenv
((hdbc sql-handle) ; HDBC hdbc
(*szDSN :cstring) ; UCHAR FAR *szDSN
(cbDSN :short) ; SWORD cbDSN
- (*szUID :cstring) ; UCHAR FAR *szUID
+ (*szUID :cstring) ; UCHAR FAR *szUID
(cbUID :short) ; SWORD cbUID
(*szAuthStr :cstring) ; UCHAR FAR *szAuthStr
(cbAuthStr :short) ; SWORD cbAuthStr
((hdbc sql-handle)) ; HDBC hdbc
:module "odbc"
:returning :short) ; RETCODE_SQL_API
-
+
+
+;;deprecated
+(def-function "SQLFreeConnect"
+ ((hdbc sql-handle)) ; HDBC hdbc
+ :module "odbc"
+ :returning :short) ; RETCODE_SQL_API
+
;; deprecated
(def-function "SQLAllocStmt"
((hdbc sql-handle) ; HDBC hdbc
:module "odbc"
:returning :short) ; RETCODE_SQL_API
- ; level 2
+ ; level 2
(def-function "SQLExtendedFetch"
((hstmt sql-handle) ; HSTMT hstmt
(fFetchType :short) ; UWORD fFetchType
;;; foreign type definitions
-;;(defmacro %sql-len-data-at-exec (length)
+;;(defmacro %sql-len-data-at-exec (length)
;; `(- $SQL_LEN_DATA_AT_EXEC_OFFSET ,length))
-(def-struct sql-c-time
+(def-struct sql-c-time
(hour :short)
(minute :short)
(second :short))
(year :short)
(month :short)
(day :short))
-
+
(def-struct sql-c-timestamp
(year :short)
(month :short)