-(defconstant $SQL_SPEC_MAJOR 2) ;; Major version of specification
-(defconstant $SQL_SPEC_MINOR 10) ;; Minor version of specification
-(defvar $SQL_SPEC_STRING "02.10") ;; String constant for version
-(defconstant $SQL_SQLSTATE_SIZE 5) ;; size of SQLSTATE
-(defconstant $SQL_MAX_MESSAGE_LENGTH 512) ;; message buffer size
-(defconstant $SQL_MAX_DSN_LENGTH 32) ;; maximum data source name size
+(defconstant $SQL_SPEC_MAJOR 2) ;; Major version of specification
+(defconstant $SQL_SPEC_MINOR 10) ;; Minor version of specification
+(defvar $SQL_SPEC_STRING "02.10") ;; String constant for version
+(defconstant $SQL_SQLSTATE_SIZE 5) ;; size of SQLSTATE
+(defconstant $SQL_MAX_MESSAGE_LENGTH 512) ;; message buffer size
+(defconstant $SQL_MAX_DSN_LENGTH 32) ;; maximum data source name size
-(defconstant $SQL_C_CHAR $SQL_CHAR) ;; CHAR, VARCHAR, DECIMAL, NUMERIC
-(defconstant $SQL_C_LONG $SQL_INTEGER) ;; INTEGER
-(defconstant $SQL_C_SHORT $SQL_SMALLINT) ;; SMALLINT
-(defconstant $SQL_C_FLOAT $SQL_REAL) ;; REAL
-(defconstant $SQL_C_DOUBLE $SQL_DOUBLE) ;; FLOAT, DOUBLE
+(defconstant $SQL_C_CHAR $SQL_CHAR) ;; CHAR, VARCHAR, DECIMAL, NUMERIC
+(defconstant $SQL_C_LONG $SQL_INTEGER) ;; INTEGER
+(defconstant $SQL_C_SHORT $SQL_SMALLINT) ;; SMALLINT
+(defconstant $SQL_C_FLOAT $SQL_REAL) ;; REAL
+(defconstant $SQL_C_DOUBLE $SQL_DOUBLE) ;; FLOAT, DOUBLE
-(defconstant $SQL_DRIVER_HLIB 76)
-(defconstant $SQL_DRIVER_ODBC_VER 77)
-(defconstant $SQL_LOCK_TYPES 78)
-(defconstant $SQL_POS_OPERATIONS 79)
-(defconstant $SQL_POSITIONED_STATEMENTS 80)
-(defconstant $SQL_GETDATA_EXTENSIONS 81)
-(defconstant $SQL_BOOKMARK_PERSISTENCE 82)
-(defconstant $SQL_STATIC_SENSITIVITY 83)
-(defconstant $SQL_FILE_USAGE 84)
-(defconstant $SQL_NULL_COLLATION 85)
-(defconstant $SQL_ALTER_TABLE 86)
-(defconstant $SQL_COLUMN_ALIAS 87)
-(defconstant $SQL_GROUP_BY 88)
-(defconstant $SQL_KEYWORDS 89)
-(defconstant $SQL_ORDER_BY_COLUMNS_IN_SELECT 90)
-(defconstant $SQL_OWNER_USAGE 91)
-(defconstant $SQL_QUALIFIER_USAGE 92)
-(defconstant $SQL_QUOTED_IDENTIFIER_CASE 93)
-(defconstant $SQL_SPECIAL_CHARACTERS 94)
-(defconstant $SQL_SUBQUERIES 95)
-(defconstant $SQL_UNION 96)
-(defconstant $SQL_MAX_COLUMNS_IN_GROUP_BY 97)
-(defconstant $SQL_MAX_COLUMNS_IN_INDEX 98)
-(defconstant $SQL_MAX_COLUMNS_IN_ORDER_BY 99)
-(defconstant $SQL_MAX_COLUMNS_IN_SELECT 100)
-(defconstant $SQL_MAX_COLUMNS_IN_TABLE 101)
-(defconstant $SQL_MAX_INDEX_SIZE 102)
-(defconstant $SQL_MAX_ROW_SIZE_INCLUDES_LONG 103)
-(defconstant $SQL_MAX_ROW_SIZE 104)
-(defconstant $SQL_MAX_STATEMENT_LEN 105)
+(defconstant $SQL_DRIVER_HLIB 76)
+(defconstant $SQL_DRIVER_ODBC_VER 77)
+(defconstant $SQL_LOCK_TYPES 78)
+(defconstant $SQL_POS_OPERATIONS 79)
+(defconstant $SQL_POSITIONED_STATEMENTS 80)
+(defconstant $SQL_GETDATA_EXTENSIONS 81)
+(defconstant $SQL_BOOKMARK_PERSISTENCE 82)
+(defconstant $SQL_STATIC_SENSITIVITY 83)
+(defconstant $SQL_FILE_USAGE 84)
+(defconstant $SQL_NULL_COLLATION 85)
+(defconstant $SQL_ALTER_TABLE 86)
+(defconstant $SQL_COLUMN_ALIAS 87)
+(defconstant $SQL_GROUP_BY 88)
+(defconstant $SQL_KEYWORDS 89)
+(defconstant $SQL_ORDER_BY_COLUMNS_IN_SELECT 90)
+(defconstant $SQL_OWNER_USAGE 91)
+(defconstant $SQL_QUALIFIER_USAGE 92)
+(defconstant $SQL_QUOTED_IDENTIFIER_CASE 93)
+(defconstant $SQL_SPECIAL_CHARACTERS 94)
+(defconstant $SQL_SUBQUERIES 95)
+(defconstant $SQL_UNION 96)
+(defconstant $SQL_MAX_COLUMNS_IN_GROUP_BY 97)
+(defconstant $SQL_MAX_COLUMNS_IN_INDEX 98)
+(defconstant $SQL_MAX_COLUMNS_IN_ORDER_BY 99)
+(defconstant $SQL_MAX_COLUMNS_IN_SELECT 100)
+(defconstant $SQL_MAX_COLUMNS_IN_TABLE 101)
+(defconstant $SQL_MAX_INDEX_SIZE 102)
+(defconstant $SQL_MAX_ROW_SIZE_INCLUDES_LONG 103)
+(defconstant $SQL_MAX_ROW_SIZE 104)
+(defconstant $SQL_MAX_STATEMENT_LEN 105)
-(defconstant $SQL_CVT_CHAR #x00000001L)
-(defconstant $SQL_CVT_NUMERIC #x00000002L)
-(defconstant $SQL_CVT_DECIMAL #x00000004L)
-(defconstant $SQL_CVT_INTEGER #x00000008L)
-(defconstant $SQL_CVT_SMALLINT #x00000010L)
-(defconstant $SQL_CVT_FLOAT #x00000020L)
-(defconstant $SQL_CVT_REAL #x00000040L)
-(defconstant $SQL_CVT_DOUBLE #x00000080L)
-(defconstant $SQL_CVT_VARCHAR #x00000100L)
-(defconstant $SQL_CVT_LONGVARCHAR #x00000200L)
-(defconstant $SQL_CVT_BINARY #x00000400L)
-(defconstant $SQL_CVT_VARBINARY #x00000800L)
-(defconstant $SQL_CVT_BIT #x00001000L)
-(defconstant $SQL_CVT_TINYINT #x00002000L)
-(defconstant $SQL_CVT_BIGINT #x00004000L)
-(defconstant $SQL_CVT_DATE #x00008000L)
-(defconstant $SQL_CVT_TIME #x00010000L)
-(defconstant $SQL_CVT_TIMESTAMP #x00020000L)
-(defconstant $SQL_CVT_LONGVARBINARY #x00040000L)
+(defconstant $SQL_CVT_CHAR #x00000001L)
+(defconstant $SQL_CVT_NUMERIC #x00000002L)
+(defconstant $SQL_CVT_DECIMAL #x00000004L)
+(defconstant $SQL_CVT_INTEGER #x00000008L)
+(defconstant $SQL_CVT_SMALLINT #x00000010L)
+(defconstant $SQL_CVT_FLOAT #x00000020L)
+(defconstant $SQL_CVT_REAL #x00000040L)
+(defconstant $SQL_CVT_DOUBLE #x00000080L)
+(defconstant $SQL_CVT_VARCHAR #x00000100L)
+(defconstant $SQL_CVT_LONGVARCHAR #x00000200L)
+(defconstant $SQL_CVT_BINARY #x00000400L)
+(defconstant $SQL_CVT_VARBINARY #x00000800L)
+(defconstant $SQL_CVT_BIT #x00001000L)
+(defconstant $SQL_CVT_TINYINT #x00002000L)
+(defconstant $SQL_CVT_BIGINT #x00004000L)
+(defconstant $SQL_CVT_DATE #x00008000L)
+(defconstant $SQL_CVT_TIME #x00010000L)
+(defconstant $SQL_CVT_TIMESTAMP #x00020000L)
+(defconstant $SQL_CVT_LONGVARBINARY #x00040000L)
-(defconstant $SQL_FN_STR_CONCAT #x00000001L)
-(defconstant $SQL_FN_STR_INSERT #x00000002L)
-(defconstant $SQL_FN_STR_LEFT #x00000004L)
-(defconstant $SQL_FN_STR_LTRIM #x00000008L)
-(defconstant $SQL_FN_STR_LENGTH #x00000010L)
-(defconstant $SQL_FN_STR_LOCATE #x00000020L)
-(defconstant $SQL_FN_STR_LCASE #x00000040L)
-(defconstant $SQL_FN_STR_REPEAT #x00000080L)
-(defconstant $SQL_FN_STR_REPLACE #x00000100L)
-(defconstant $SQL_FN_STR_RIGHT #x00000200L)
-(defconstant $SQL_FN_STR_RTRIM #x00000400L)
-(defconstant $SQL_FN_STR_SUBSTRING #x00000800L)
-(defconstant $SQL_FN_STR_UCASE #x00001000L)
-(defconstant $SQL_FN_STR_ASCII #x00002000L)
-(defconstant $SQL_FN_STR_CHAR #x00004000L
-(defconstant $SQL_FN_STR_DIFFERENCE #x00008000L)
-(defconstant $SQL_FN_STR_LOCATE_2 #x00010000L)
-(defconstant $SQL_FN_STR_SOUNDEX #x00020000L)
-(defconstant $SQL_FN_STR_SPACE #x00040000L
+(defconstant $SQL_FN_STR_CONCAT #x00000001L)
+(defconstant $SQL_FN_STR_INSERT #x00000002L)
+(defconstant $SQL_FN_STR_LEFT #x00000004L)
+(defconstant $SQL_FN_STR_LTRIM #x00000008L)
+(defconstant $SQL_FN_STR_LENGTH #x00000010L)
+(defconstant $SQL_FN_STR_LOCATE #x00000020L)
+(defconstant $SQL_FN_STR_LCASE #x00000040L)
+(defconstant $SQL_FN_STR_REPEAT #x00000080L)
+(defconstant $SQL_FN_STR_REPLACE #x00000100L)
+(defconstant $SQL_FN_STR_RIGHT #x00000200L)
+(defconstant $SQL_FN_STR_RTRIM #x00000400L)
+(defconstant $SQL_FN_STR_SUBSTRING #x00000800L)
+(defconstant $SQL_FN_STR_UCASE #x00001000L)
+(defconstant $SQL_FN_STR_ASCII #x00002000L)
+(defconstant $SQL_FN_STR_CHAR #x00004000L
+(defconstant $SQL_FN_STR_DIFFERENCE #x00008000L)
+(defconstant $SQL_FN_STR_LOCATE_2 #x00010000L)
+(defconstant $SQL_FN_STR_SOUNDEX #x00020000L)
+(defconstant $SQL_FN_STR_SPACE #x00040000L
-(defconstant $SQL_FN_NUM_ABS #x00000001L)
-(defconstant $SQL_FN_NUM_ACOS #x00000002L)
-(defconstant $SQL_FN_NUM_ASIN #x00000004L)
-(defconstant $SQL_FN_NUM_ATAN #x00000008L)
-(defconstant $SQL_FN_NUM_ATAN2 #x00000010L)
-(defconstant $SQL_FN_NUM_CEILING #x00000020L)
-(defconstant $SQL_FN_NUM_COS #x00000040L)
-(defconstant $SQL_FN_NUM_COT #x00000080L)
-(defconstant $SQL_FN_NUM_EXP #x00000100L)
-(defconstant $SQL_FN_NUM_FLOOR #x00000200L)
-(defconstant $SQL_FN_NUM_LOG #x00000400L)
-(defconstant $SQL_FN_NUM_MOD #x00000800L)
-(defconstant $SQL_FN_NUM_SIGN #x00001000L)
-(defconstant $SQL_FN_NUM_SIN #x00002000L)
-(defconstant $SQL_FN_NUM_SQRT #x00004000L)
-(defconstant $SQL_FN_NUM_TAN #x00008000L)
-(defconstant $SQL_FN_NUM_PI #x00010000L)
-(defconstant $SQL_FN_NUM_RAND #x00020000L
-(defconstant $SQL_FN_NUM_DEGREES #x00040000L)
-(defconstant $SQL_FN_NUM_LOG10 #x00080000L)
-(defconstant $SQL_FN_NUM_POWER #x00100000L)
-(defconstant $SQL_FN_NUM_RADIANS #x00200000L)
-(defconstant $SQL_FN_NUM_ROUND #x00400000L)
-(defconstant $SQL_FN_NUM_TRUNCATE #x00800000L
+(defconstant $SQL_FN_NUM_ABS #x00000001L)
+(defconstant $SQL_FN_NUM_ACOS #x00000002L)
+(defconstant $SQL_FN_NUM_ASIN #x00000004L)
+(defconstant $SQL_FN_NUM_ATAN #x00000008L)
+(defconstant $SQL_FN_NUM_ATAN2 #x00000010L)
+(defconstant $SQL_FN_NUM_CEILING #x00000020L)
+(defconstant $SQL_FN_NUM_COS #x00000040L)
+(defconstant $SQL_FN_NUM_COT #x00000080L)
+(defconstant $SQL_FN_NUM_EXP #x00000100L)
+(defconstant $SQL_FN_NUM_FLOOR #x00000200L)
+(defconstant $SQL_FN_NUM_LOG #x00000400L)
+(defconstant $SQL_FN_NUM_MOD #x00000800L)
+(defconstant $SQL_FN_NUM_SIGN #x00001000L)
+(defconstant $SQL_FN_NUM_SIN #x00002000L)
+(defconstant $SQL_FN_NUM_SQRT #x00004000L)
+(defconstant $SQL_FN_NUM_TAN #x00008000L)
+(defconstant $SQL_FN_NUM_PI #x00010000L)
+(defconstant $SQL_FN_NUM_RAND #x00020000L
+(defconstant $SQL_FN_NUM_DEGREES #x00040000L)
+(defconstant $SQL_FN_NUM_LOG10 #x00080000L)
+(defconstant $SQL_FN_NUM_POWER #x00100000L)
+(defconstant $SQL_FN_NUM_RADIANS #x00200000L)
+(defconstant $SQL_FN_NUM_ROUND #x00400000L)
+(defconstant $SQL_FN_NUM_TRUNCATE #x00800000L
-(defconstant $SQL_FN_TD_NOW #x00000001L)
-(defconstant $SQL_FN_TD_CURDATE #x00000002L)
-(defconstant $SQL_FN_TD_DAYOFMONTH #x00000004L)
-(defconstant $SQL_FN_TD_DAYOFWEEK #x00000008L)
-(defconstant $SQL_FN_TD_DAYOFYEAR #x00000010L)
-(defconstant $SQL_FN_TD_MONTH #x00000020L)
-(defconstant $SQL_FN_TD_QUARTER #x00000040L)
-(defconstant $SQL_FN_TD_WEEK #x00000080L)
-(defconstant $SQL_FN_TD_YEAR #x00000100L)
-(defconstant $SQL_FN_TD_CURTIME #x00000200L)
-(defconstant $SQL_FN_TD_HOUR #x00000400L)
-(defconstant $SQL_FN_TD_MINUTE #x00000800L)
-(defconstant $SQL_FN_TD_SECOND #x00001000L
-(defconstant $SQL_FN_TD_TIMESTAMPADD #x00002000L)
-(defconstant $SQL_FN_TD_TIMESTAMPDIFF #x00004000L)
-(defconstant $SQL_FN_TD_DAYNAME #x00008000L)
-(defconstant $SQL_FN_TD_MONTHNAME #x00010000L
+(defconstant $SQL_FN_TD_NOW #x00000001L)
+(defconstant $SQL_FN_TD_CURDATE #x00000002L)
+(defconstant $SQL_FN_TD_DAYOFMONTH #x00000004L)
+(defconstant $SQL_FN_TD_DAYOFWEEK #x00000008L)
+(defconstant $SQL_FN_TD_DAYOFYEAR #x00000010L)
+(defconstant $SQL_FN_TD_MONTH #x00000020L)
+(defconstant $SQL_FN_TD_QUARTER #x00000040L)
+(defconstant $SQL_FN_TD_WEEK #x00000080L)
+(defconstant $SQL_FN_TD_YEAR #x00000100L)
+(defconstant $SQL_FN_TD_CURTIME #x00000200L)
+(defconstant $SQL_FN_TD_HOUR #x00000400L)
+(defconstant $SQL_FN_TD_MINUTE #x00000800L)
+(defconstant $SQL_FN_TD_SECOND #x00001000L
+(defconstant $SQL_FN_TD_TIMESTAMPADD #x00002000L)
+(defconstant $SQL_FN_TD_TIMESTAMPDIFF #x00004000L)
+(defconstant $SQL_FN_TD_DAYNAME #x00008000L)
+(defconstant $SQL_FN_TD_MONTHNAME #x00010000L
-(defconstant $SQL_FN_TSI_FRAC_SECOND #x00000001L)
-(defconstant $SQL_FN_TSI_SECOND #x00000002L)
-(defconstant $SQL_FN_TSI_MINUTE #x00000004L)
-(defconstant $SQL_FN_TSI_HOUR #x00000008L)
-(defconstant $SQL_FN_TSI_DAY #x00000010L)
-(defconstant $SQL_FN_TSI_WEEK #x00000020L)
-(defconstant $SQL_FN_TSI_MONTH #x00000040L)
-(defconstant $SQL_FN_TSI_QUARTER #x00000080L)
-(defconstant $SQL_FN_TSI_YEAR #x00000100L
+(defconstant $SQL_FN_TSI_FRAC_SECOND #x00000001L)
+(defconstant $SQL_FN_TSI_SECOND #x00000002L)
+(defconstant $SQL_FN_TSI_MINUTE #x00000004L)
+(defconstant $SQL_FN_TSI_HOUR #x00000008L)
+(defconstant $SQL_FN_TSI_DAY #x00000010L)
+(defconstant $SQL_FN_TSI_WEEK #x00000020L)
+(defconstant $SQL_FN_TSI_MONTH #x00000040L)
+(defconstant $SQL_FN_TSI_QUARTER #x00000080L)
+(defconstant $SQL_FN_TSI_YEAR #x00000100L
-(defconstant $SQL_TXN_READ_UNCOMMITTED #x00000001L)
-(defconstant $SQL_TXN_READ_COMMITTED #x00000002L)
-(defconstant $SQL_TXN_REPEATABLE_READ #x00000004L)
-(defconstant $SQL_TXN_SERIALIZABLE #x00000008L)
-(defconstant $SQL_TXN_VERSIONING #x00000010L
+(defconstant $SQL_TXN_READ_UNCOMMITTED #x00000001L)
+(defconstant $SQL_TXN_READ_COMMITTED #x00000002L)
+(defconstant $SQL_TXN_REPEATABLE_READ #x00000004L)
+(defconstant $SQL_TXN_SERIALIZABLE #x00000008L)
+(defconstant $SQL_TXN_VERSIONING #x00000010L
-(defconstant $SQL_SQ_COMPARISON #x00000001L)
-(defconstant $SQL_SQ_EXISTS #x00000002L)
-(defconstant $SQL_SQ_IN #x00000004L)
-(defconstant $SQL_SQ_QUANTIFIED #x00000008L)
-(defconstant $SQL_SQ_CORRELATED_SUBQUERIES #x00000010L
+(defconstant $SQL_SQ_COMPARISON #x00000001L)
+(defconstant $SQL_SQ_EXISTS #x00000002L)
+(defconstant $SQL_SQ_IN #x00000004L)
+(defconstant $SQL_SQ_QUANTIFIED #x00000008L)
+(defconstant $SQL_SQ_CORRELATED_SUBQUERIES #x00000010L
-(defconstant $SQL_BP_CLOSE #x00000001L)
-(defconstant $SQL_BP_DELETE #x00000002L)
-(defconstant $SQL_BP_DROP #x00000004L)
-(defconstant $SQL_BP_TRANSACTION #x00000008L)
-(defconstant $SQL_BP_UPDATE #x00000010L)
-(defconstant $SQL_BP_OTHER_HSTMT #x00000020L)
-(defconstant $SQL_BP_SCROLL #x00000040L
+(defconstant $SQL_BP_CLOSE #x00000001L)
+(defconstant $SQL_BP_DELETE #x00000002L)
+(defconstant $SQL_BP_DROP #x00000004L)
+(defconstant $SQL_BP_TRANSACTION #x00000008L)
+(defconstant $SQL_BP_UPDATE #x00000010L)
+(defconstant $SQL_BP_OTHER_HSTMT #x00000020L)
+(defconstant $SQL_BP_SCROLL #x00000040L
-(defconstant $SQL_OJ_LEFT #x00000001L)
-(defconstant $SQL_OJ_RIGHT #x00000002L)
-(defconstant $SQL_OJ_FULL #x00000004L)
-(defconstant $SQL_OJ_NESTED #x00000008L)
-(defconstant $SQL_OJ_NOT_ORDERED #x00000010L)
-(defconstant $SQL_OJ_INNER #x00000020L)
-(defconstant $SQL_OJ_ALL_COMPARISON_OPS #x00000040L
+(defconstant $SQL_OJ_LEFT #x00000001L)
+(defconstant $SQL_OJ_RIGHT #x00000002L)
+(defconstant $SQL_OJ_FULL #x00000004L)
+(defconstant $SQL_OJ_NESTED #x00000008L)
+(defconstant $SQL_OJ_NOT_ORDERED #x00000010L)
+(defconstant $SQL_OJ_INNER #x00000020L)
+(defconstant $SQL_OJ_ALL_COMPARISON_OPS #x00000040L
-(defconstant $SQL_QUERY_TIMEOUT 0)
-(defconstant $SQL_MAX_ROWS 1)
-(defconstant $SQL_NOSCAN 2)
-(defconstant $SQL_MAX_LENGTH 3)
-(defconstant $SQL_ASYNC_ENABLE 4)
-(defconstant $SQL_BIND_TYPE 5
-(defconstant $SQL_CURSOR_TYPE 6)
-(defconstant $SQL_CONCURRENCY 7)
-(defconstant $SQL_KEYSET_SIZE 8)
-(defconstant $SQL_ROWSET_SIZE 9)
-(defconstant $SQL_SIMULATE_CURSOR 10)
-(defconstant $SQL_RETRIEVE_DATA 11)
-(defconstant $SQL_USE_BOOKMARKS 12)
-(defconstant $SQL_GET_BOOKMARK 13 /* GetStmtOption Only)
-(defconstant $SQL_ROW_NUMBER 14 /* GetStmtOption Only)
-(defconstant $SQL_STMT_OPT_MAX SQL_ROW_NUMBER
+(defconstant $SQL_QUERY_TIMEOUT 0)
+(defconstant $SQL_MAX_ROWS 1)
+(defconstant $SQL_NOSCAN 2)
+(defconstant $SQL_MAX_LENGTH 3)
+(defconstant $SQL_ASYNC_ENABLE 4)
+(defconstant $SQL_BIND_TYPE 5
+(defconstant $SQL_CURSOR_TYPE 6)
+(defconstant $SQL_CONCURRENCY 7)
+(defconstant $SQL_KEYSET_SIZE 8)
+(defconstant $SQL_ROWSET_SIZE 9)
+(defconstant $SQL_SIMULATE_CURSOR 10)
+(defconstant $SQL_RETRIEVE_DATA 11)
+(defconstant $SQL_USE_BOOKMARKS 12)
+(defconstant $SQL_GET_BOOKMARK 13 /* GetStmtOption Only)
+(defconstant $SQL_ROW_NUMBER 14 /* GetStmtOption Only)
+(defconstant $SQL_STMT_OPT_MAX SQL_ROW_NUMBER
-(defconstant $SQL_CONCUR_READ_ONLY 1)
-(defconstant $SQL_CONCUR_LOCK 2)
-(defconstant $SQL_CONCUR_ROWVER 3)
-(defconstant $SQL_CONCUR_VALUES 4)
-(defconstant $SQL_CONCUR_DEFAULT SQL_CONCUR_READ_ONLY ;; Default value
+(defconstant $SQL_CONCUR_READ_ONLY 1)
+(defconstant $SQL_CONCUR_LOCK 2)
+(defconstant $SQL_CONCUR_ROWVER 3)
+(defconstant $SQL_CONCUR_VALUES 4)
+(defconstant $SQL_CONCUR_DEFAULT SQL_CONCUR_READ_ONLY ;; Default value
-(defconstant $SQL_CURSOR_FORWARD_ONLY 0UL)
-(defconstant $SQL_CURSOR_KEYSET_DRIVEN 1UL)
-(defconstant $SQL_CURSOR_DYNAMIC 2UL)
-(defconstant $SQL_CURSOR_STATIC 3UL)
-(defconstant $SQL_CURSOR_TYPE_DEFAULT SQL_CURSOR_FORWARD_ONLY ;; Default value
+(defconstant $SQL_CURSOR_FORWARD_ONLY 0UL)
+(defconstant $SQL_CURSOR_KEYSET_DRIVEN 1UL)
+(defconstant $SQL_CURSOR_DYNAMIC 2UL)
+(defconstant $SQL_CURSOR_STATIC 3UL)
+(defconstant $SQL_CURSOR_TYPE_DEFAULT SQL_CURSOR_FORWARD_ONLY ;; Default value
;; SQL_OPT_TRACE options)
(defconstant $SQL_OPT_TRACE_OFF 0) ; 0UL
(defconstant $SQL_OPT_TRACE_ON 1) ; 1UL
(defconstant $SQL_OPT_TRACE_DEFAULT $SQL_OPT_TRACE_OFF)
; #ifndef SQL_OPT_TRACE_FILE_DEFAULT
;; SQL_OPT_TRACE options)
(defconstant $SQL_OPT_TRACE_OFF 0) ; 0UL
(defconstant $SQL_OPT_TRACE_ON 1) ; 1UL
(defconstant $SQL_OPT_TRACE_DEFAULT $SQL_OPT_TRACE_OFF)
; #ifndef SQL_OPT_TRACE_FILE_DEFAULT
(defconstant $SQL_ODBC_KEYWORDS \
"ABSOLUTE,ACTION,ADA,ADD,ALL,ALLOCATE,ALTER,AND,ANY,ARE,AS,"\
"ASC,ASSERTION,AT,AUTHORIZATION,AVG,"\
(defconstant $SQL_ODBC_KEYWORDS \
"ABSOLUTE,ACTION,ADA,ADD,ALL,ALLOCATE,ALTER,AND,ANY,ARE,AS,"\
"ASC,ASSERTION,AT,AUTHORIZATION,AVG,"\
;; Options for SQLDriverConnect
(defconstant $SQL_DRIVER_NOPROMPT 0)
(defconstant $SQL_DRIVER_COMPLETE 1)
(defconstant $SQL_DRIVER_PROMPT 2)
(defconstant $SQL_DRIVER_COMPLETE_REQUIRED 3)
;; Options for SQLDriverConnect
(defconstant $SQL_DRIVER_NOPROMPT 0)
(defconstant $SQL_DRIVER_COMPLETE 1)
(defconstant $SQL_DRIVER_PROMPT 2)
(defconstant $SQL_DRIVER_COMPLETE_REQUIRED 3)