Module: odbc-ffi Author: yduJ Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: Functional Objects Library Public License Version 1.0 Dual-license: GNU Lesser General Public License Warranty: Distributed WITHOUT WARRANTY OF ANY KIND // $HopeName: D-databases-odbc-ffi!constant.dylan(trunk.5) $ define constant $ODBCVER = #x0300; define constant $SQL-MAX-NUMERIC-LEN = 16; define constant $SQL-NULL-DATA = -1; define constant $SQL-DATA-AT-EXEC = -2; define constant $SQL-SUCCESS = 0; define constant $SQL-SUCCESS-WITH-INFO = 1; define constant $SQL-NO-DATA = 100; define constant $SQL-ERROR = -1; define constant $SQL-INVALID-HANDLE = -2; define constant $SQL-NEED-DATA = 99; define constant $SQL-NTS = -3; define constant $SQL-NTSL = -3; define constant $SQL-MAX-MESSAGE-LENGTH = 512; define constant $SQL-DATE-LEN = 10; define constant $SQL-HANDLE-ENV = 1; define constant $SQL-HANDLE-DBC = 2; define constant $SQL-HANDLE-STMT = 3; define constant $SQL-HANDLE-DESC = 4; define constant $SQL-ATTR-OUTPUT-NTS = 10001; define constant $SQL-ATTR-AUTO-IPD = 10001; define constant $SQL-ATTR-METADATA-ID = 10014; define constant $SQL-ATTR-APP-ROW-DESC = 10010; define constant $SQL-ATTR-APP-PARAM-DESC = 10011; define constant $SQL-ATTR-IMP-ROW-DESC = 10012; define constant $SQL-ATTR-IMP-PARAM-DESC = 10013; define constant $SQL-ATTR-CURSOR-SCROLLABLE = -1; define constant $SQL-ATTR-CURSOR-SENSITIVITY = -2; define constant $SQL-NONSCROLLABLE = 0; define constant $SQL-SCROLLABLE = 1; define constant $SQL-DESC-COUNT = 1001; define constant $SQL-DESC-TYPE = 1002; define constant $SQL-DESC-LENGTH = 1003; define constant $SQL-DESC-OCTET-LENGTH-PTR = 1004; define constant $SQL-DESC-PRECISION = 1005; define constant $SQL-DESC-SCALE = 1006; define constant $SQL-DESC-DATETIME-INTERVAL-CODE = 1007; define constant $SQL-DESC-NULLABLE = 1008; define constant $SQL-DESC-INDICATOR-PTR = 1009; define constant $SQL-DESC-DATA-PTR = 1010; define constant $SQL-DESC-NAME = 1011; define constant $SQL-DESC-UNNAMED = 1012; define constant $SQL-DESC-OCTET-LENGTH = 1013; define constant $SQL-DESC-ALLOC-TYPE = 1099; define constant $SQL-DIAG-RETURNCODE = 1; define constant $SQL-DIAG-NUMBER = 2; define constant $SQL-DIAG-ROW-COUNT = 3; define constant $SQL-DIAG-SQLSTATE = 4; define constant $SQL-DIAG-NATIVE = 5; define constant $SQL-DIAG-MESSAGE-TEXT = 6; define constant $SQL-DIAG-DYNAMIC-FUNCTION = 7; define constant $SQL-DIAG-CLASS-ORIGIN = 8; define constant $SQL-DIAG-SUBCLASS-ORIGIN = 9; define constant $SQL-DIAG-CONNECTION-NAME = 10; define constant $SQL-DIAG-SERVER-NAME = 11; define constant $SQL-DIAG-DYNAMIC-FUNCTION-CODE = 12; define constant $SQL-DIAG-ALTER-TABLE = 4; define constant $SQL-DIAG-CREATE-INDEX = -1; define constant $SQL-DIAG-CREATE-TABLE = 77; define constant $SQL-DIAG-CREATE-VIEW = 84; define constant $SQL-DIAG-DELETE-WHERE = 19; define constant $SQL-DIAG-DROP-INDEX = -2; define constant $SQL-DIAG-DROP-TABLE = 32; define constant $SQL-DIAG-DROP-VIEW = 36; define constant $SQL-DIAG-DYNAMIC-DELETE-CURSOR = 38; define constant $SQL-DIAG-DYNAMIC-UPDATE-CURSOR = 81; define constant $SQL-DIAG-GRANT = 48; define constant $SQL-DIAG-INSERT = 50; define constant $SQL-DIAG-REVOKE = 59; define constant $SQL-DIAG-SELECT-CURSOR = 85; define constant $SQL-DIAG-UNKNOWN-STATEMENT = 0; define constant $SQL-DIAG-UPDATE-WHERE = 82; define constant $SQL-UNKNOWN-TYPE = 0; define constant $SQL-CHAR = 1; define constant $SQL-NUMERIC = 2; define constant $SQL-DECIMAL = 3; define constant $SQL-INTEGER = 4; define constant $SQL-SMALLINT = 5; define constant $SQL-FLOAT = 6; define constant $SQL-REAL = 7; define constant $SQL-DOUBLE = 8; define constant $SQL-DATETIME = 9; define constant $SQL-VARCHAR = 12; define constant $SQL-TYPE-DATE = 91; define constant $SQL-TYPE-TIME = 92; define constant $SQL-TYPE-TIMESTAMP = 93; define constant $SQL-UNSPECIFIED = 0; define constant $SQL-INSENSITIVE = 1; define constant $SQL-SENSITIVE = 2; define constant $SQL-ALL-TYPES = 0; define constant $SQL-DEFAULT = 99; define constant $SQL-ARD-TYPE = -99; define constant $SQL-CODE-DATE = 1; define constant $SQL-CODE-TIME = 2; define constant $SQL-CODE-TIMESTAMP = 3; define constant $SQL-FALSE = 0; define constant $SQL-TRUE = 1; define constant $SQL-NO-NULLS = 0; define constant $SQL-NULLABLE = 1; define constant $SQL-NULLABLE-UNKNOWN = 2; define constant $SQL-PRED-NONE = 0; define constant $SQL-PRED-CHAR = 1; define constant $SQL-PRED-BASIC = 2; define constant $SQL-NAMED = 0; define constant $SQL-UNNAMED = 1; define constant $SQL-DESC-ALLOC-AUTO = 1; define constant $SQL-DESC-ALLOC-USER = 2; define constant $SQL-CLOSE = 0; define constant $SQL-DROP = 1; define constant $SQL-UNBIND = 2; define constant $SQL-RESET-PARAMS = 3; define constant $SQL-FETCH-NEXT = 1; define constant $SQL-FETCH-FIRST = 2; define constant $SQL-FETCH-LAST = 3; define constant $SQL-FETCH-PRIOR = 4; define constant $SQL-FETCH-ABSOLUTE = 5; define constant $SQL-FETCH-RELATIVE = 6; define constant $SQL-COMMIT = 0; define constant $SQL-ROLLBACK = 1; define constant $SQL-NULL-HENV = 0; define constant $SQL-NULL-HDBC = 0; define constant $SQL-NULL-HSTMT = 0; define constant $SQL-NULL-HDESC = 0; define constant $SQL-NULL-HANDLE = 0; define constant $SQL-SCOPE-CURROW = 0; define constant $SQL-SCOPE-TRANSACTION = 1; define constant $SQL-SCOPE-SESSION = 2; define constant $SQL-PC-NON-PSEUDO = 1; define constant $SQL-PC-PSEUDO = 2; define constant $SQL-ROW-IDENTIFIER = 1; define constant $SQL-INDEX-UNIQUE = 0; define constant $SQL-INDEX-ALL = 1; define constant $SQL-INDEX-CLUSTERED = 1; define constant $SQL-INDEX-HASHED = 2; define constant $SQL-INDEX-OTHER = 3; define constant $SQL-API-SQLALLOCCONNECT = 1; define constant $SQL-API-SQLALLOCENV = 2; define constant $SQL-API-SQLALLOCHANDLE = 1001; define constant $SQL-API-SQLALLOCSTMT = 3; define constant $SQL-API-SQLBINDCOL = 4; define constant $SQL-API-SQLBINDPARAM = 1002; define constant $SQL-API-SQLCANCEL = 5; define constant $SQL-API-SQLCLOSECURSOR = 1003; define constant $SQL-API-SQLCOLATTRIBUTE = 6; define constant $SQL-API-SQLCOLUMNS = 40; define constant $SQL-API-SQLCONNECT = 7; define constant $SQL-API-SQLCOPYDESC = 1004; define constant $SQL-API-SQLDATASOURCES = 57; define constant $SQL-API-SQLDESCRIBECOL = 8; define constant $SQL-API-SQLDISCONNECT = 9; define constant $SQL-API-SQLENDTRAN = 1005; define constant $SQL-API-SQLERROR = 10; define constant $SQL-API-SQLEXECDIRECT = 11; define constant $SQL-API-SQLEXECUTE = 12; define constant $SQL-API-SQLFETCH = 13; define constant $SQL-API-SQLFETCHSCROLL = 1021; define constant $SQL-API-SQLFREECONNECT = 14; define constant $SQL-API-SQLFREEENV = 15; define constant $SQL-API-SQLFREEHANDLE = 1006; define constant $SQL-API-SQLFREESTMT = 16; define constant $SQL-API-SQLGETCONNECTATTR = 1007; define constant $SQL-API-SQLGETCONNECTOPTION = 42; define constant $SQL-API-SQLGETCURSORNAME = 17; define constant $SQL-API-SQLGETDATA = 43; define constant $SQL-API-SQLGETDESCFIELD = 1008; define constant $SQL-API-SQLGETDESCREC = 1009; define constant $SQL-API-SQLGETDIAGFIELD = 1010; define constant $SQL-API-SQLGETDIAGREC = 1011; define constant $SQL-API-SQLGETENVATTR = 1012; define constant $SQL-API-SQLGETFUNCTIONS = 44; define constant $SQL-API-SQLGETINFO = 45; define constant $SQL-API-SQLGETSTMTATTR = 1014; define constant $SQL-API-SQLGETSTMTOPTION = 46; define constant $SQL-API-SQLGETTYPEINFO = 47; define constant $SQL-API-SQLNUMRESULTCOLS = 18; define constant $SQL-API-SQLPARAMDATA = 48; define constant $SQL-API-SQLPREPARE = 19; define constant $SQL-API-SQLPUTDATA = 49; define constant $SQL-API-SQLROWCOUNT = 20; define constant $SQL-API-SQLSETCONNECTATTR = 1016; define constant $SQL-API-SQLSETCONNECTOPTION = 50; define constant $SQL-API-SQLSETCURSORNAME = 21; define constant $SQL-API-SQLSETDESCFIELD = 1017; define constant $SQL-API-SQLSETDESCREC = 1018; define constant $SQL-API-SQLSETENVATTR = 1019; define constant $SQL-API-SQLSETPARAM = 22; define constant $SQL-API-SQLSETSTMTATTR = 1020; define constant $SQL-API-SQLSETSTMTOPTION = 51; define constant $SQL-API-SQLSPECIALCOLUMNS = 52; define constant $SQL-API-SQLSTATISTICS = 53; define constant $SQL-API-SQLTABLES = 54; define constant $SQL-API-SQLTRANSACT = 23; define constant $SQL-MAX-DRIVER-CONNECTIONS = 0; define constant $SQL-MAX-CONCURRENT-ACTIVITIES = 1; define constant $SQL-DATA-SOURCE-NAME = 2; define constant $SQL-FETCH-DIRECTION = 8; define constant $SQL-SERVER-NAME = 13; define constant $SQL-SEARCH-PATTERN-ESCAPE = 14; define constant $SQL-DBMS-NAME = 17; define constant $SQL-DBMS-VER = 18; define constant $SQL-ACCESSIBLE-TABLES = 19; define constant $SQL-ACCESSIBLE-PROCEDURES = 20; define constant $SQL-CURSOR-COMMIT-BEHAVIOR = 23; define constant $SQL-DATA-SOURCE-READ-ONLY = 25; define constant $SQL-DEFAULT-TXN-ISOLATION = 26; define constant $SQL-IDENTIFIER-CASE = 28; define constant $SQL-IDENTIFIER-QUOTE-CHAR = 29; define constant $SQL-MAX-COLUMN-NAME-LEN = 30; define constant $SQL-MAX-CURSOR-NAME-LEN = 31; define constant $SQL-MAX-SCHEMA-NAME-LEN = 32; define constant $SQL-MAX-CATALOG-NAME-LEN = 34; define constant $SQL-MAX-TABLE-NAME-LEN = 35; define constant $SQL-SCROLL-CONCURRENCY = 43; define constant $SQL-TXN-CAPABLE = 46; define constant $SQL-USER-NAME = 47; define constant $SQL-TXN-ISOLATION-OPTION = 72; define constant $SQL-INTEGRITY = 73; define constant $SQL-GETDATA-EXTENSIONS = 81; define constant $SQL-NULL-COLLATION = 85; define constant $SQL-ALTER-TABLE = 86; define constant $SQL-ORDER-BY-COLUMNS-IN-SELECT = 90; define constant $SQL-SPECIAL-CHARACTERS = 94; define constant $SQL-MAX-COLUMNS-IN-GROUP-BY = 97; define constant $SQL-MAX-COLUMNS-IN-INDEX = 98; define constant $SQL-MAX-COLUMNS-IN-ORDER-BY = 99; define constant $SQL-MAX-COLUMNS-IN-SELECT = 100; define constant $SQL-MAX-COLUMNS-IN-TABLE = 101; define constant $SQL-MAX-INDEX-SIZE = 102; define constant $SQL-MAX-ROW-SIZE = 104; define constant $SQL-MAX-STATEMENT-LEN = 105; define constant $SQL-MAX-TABLES-IN-SELECT = 106; define constant $SQL-MAX-USER-NAME-LEN = 107; define constant $SQL-XOPEN-CLI-YEAR = 10000; define constant $SQL-CURSOR-SENSITIVITY = 10001; define constant $SQL-DESCRIBE-PARAMETER = 10002; define constant $SQL-CATALOG-NAME = 10003; define constant $SQL-COLLATION-SEQ = 10004; define constant $SQL-MAX-IDENTIFIER-LEN = 10005; define constant $SQL-AT-ADD-COLUMN = #x00000001; define constant $SQL-AT-DROP-COLUMN = #x00000002; define constant $SQL-AT-ADD-CONSTRAINT = #x00000008; define constant $SQL-AM-NONE = 0; define constant $SQL-AM-CONNECTION = 1; define constant $SQL-AM-STATEMENT = 2; define constant $SQL-CB-DELETE = 0; define constant $SQL-CB-CLOSE = 1; define constant $SQL-CB-PRESERVE = 2; define constant $SQL-FD-FETCH-NEXT = #x00000001; define constant $SQL-FD-FETCH-FIRST = #x00000002; define constant $SQL-FD-FETCH-LAST = #x00000004; define constant $SQL-FD-FETCH-PRIOR = #x00000008; define constant $SQL-FD-FETCH-ABSOLUTE = #x00000010; define constant $SQL-FD-FETCH-RELATIVE = #x00000020; define constant $SQL-GD-ANY-COLUMN = #x00000001; define constant $SQL-GD-ANY-ORDER = #x00000002; define constant $SQL-IC-UPPER = 1; define constant $SQL-IC-LOWER = 2; define constant $SQL-IC-SENSITIVE = 3; define constant $SQL-IC-MIXED = 4; define constant $SQL-OJ-LEFT = #x00000001; define constant $SQL-OJ-RIGHT = #x00000002; define constant $SQL-OJ-FULL = #x00000004; define constant $SQL-OJ-NESTED = #x00000008; define constant $SQL-OJ-NOT-ORDERED = #x00000010; define constant $SQL-OJ-INNER = #x00000020; define constant $SQL-OJ-ALL-COMPARISON-OPS = #x00000040; define constant $SQL-SCCO-READ-ONLY = #x00000001; define constant $SQL-SCCO-LOCK = #x00000002; define constant $SQL-SCCO-OPT-ROWVER = #x00000004; define constant $SQL-SCCO-OPT-VALUES = #x00000008; define constant $SQL-TC-NONE = 0; define constant $SQL-TC-DML = 1; define constant $SQL-TC-ALL = 2; define constant $SQL-TC-DDL-COMMIT = 3; define constant $SQL-TC-DDL-IGNORE = 4; define constant $SQL-TXN-READ-UNCOMMITTED = #x00000001; define constant $SQL-TXN-READ-COMMITTED = #x00000002; define constant $SQL-TXN-REPEATABLE-READ = #x00000004; define constant $SQL-TXN-SERIALIZABLE = #x00000008; define constant $SQL-NC-HIGH = 0; define constant $SQL-NC-LOW = 1; define constant $SQL-MAXIMUM-DRIVER-CONNECTIONS = $SQL-MAX-DRIVER-CONNECTIONS; define constant $SQL-MAXIMUM-CONCURRENT-ACTIVITIES = $SQL-MAX-CONCURRENT-ACTIVITIES; define constant $SQL-MAXIMUM-COLUMN-NAME-LENGTH = $SQL-MAX-COLUMN-NAME-LEN; define constant $SQL-MAXIMUM-CURSOR-NAME-LENGTH = $SQL-MAX-CURSOR-NAME-LEN; define constant $SQL-MAXIMUM-SCHEMA-NAME-LENGTH = $SQL-MAX-SCHEMA-NAME-LEN; define constant $SQL-MAXIMUM-CATALOG-NAME-LENGTH = $SQL-MAX-CATALOG-NAME-LEN; define constant $SQL-TRANSACTION-CAPABLE = $SQL-TXN-CAPABLE; define constant $SQL-TRANSACTION-ISOLATION-OPTION = $SQL-TXN-ISOLATION-OPTION; define constant $SQL-MAXIMUM-COLUMNS-IN-GROUP-BY = $SQL-MAX-COLUMNS-IN-GROUP-BY; define constant $SQL-MAXIMUM-COLUMNS-IN-INDEX = $SQL-MAX-COLUMNS-IN-INDEX; define constant $SQL-MAXIMUM-COLUMNS-IN-ORDER-BY = $SQL-MAX-COLUMNS-IN-ORDER-BY; define constant $SQL-MAXIMUM-COLUMNS-IN-SELECT = $SQL-MAX-COLUMNS-IN-SELECT; define constant $SQL-MAXIMUM-INDEX-SIZE = $SQL-MAX-INDEX-SIZE; define constant $SQL-MAXIMUM-ROW-SIZE = $SQL-MAX-ROW-SIZE; define constant $SQL-MAXIMUM-STATEMENT-LENGTH = $SQL-MAX-STATEMENT-LEN; define constant $SQL-MAXIMUM-TABLES-IN-SELECT = $SQL-MAX-TABLES-IN-SELECT; define constant $SQL-MAXIMUM-USER-NAME-LENGTH = $SQL-MAX-USER-NAME-LEN; define constant $SQL-MAXIMUM-IDENTIFIER-LENGTH = $SQL-MAX-IDENTIFIER-LEN; define constant $SQL-TRANSACTION-READ-UNCOMMITTED = $SQL-TXN-READ-UNCOMMITTED; define constant $SQL-TRANSACTION-READ-COMMITTED = $SQL-TXN-READ-COMMITTED; define constant $SQL-TRANSACTION-REPEATABLE-READ = $SQL-TXN-REPEATABLE-READ; define constant $SQL-TRANSACTION-SERIALIZABLE = $SQL-TXN-SERIALIZABLE; define constant $ODBC-ADD-DSN = 1; define constant $ODBC-CONFIG-DSN = 2; define constant $ODBC-REMOVE-DSN = 3; define constant $ODBC-ADD-SYS-DSN = 4; define constant $ODBC-CONFIG-SYS-DSN = 5; define constant $ODBC-REMOVE-SYS-DSN = 6; define constant $ODBC-REMOVE-DEFAULT-DSN = 7; define constant $ODBC-INSTALL-INQUIRY = 1; define constant $ODBC-INSTALL-COMPLETE = 2; define constant $ODBC-INSTALL-DRIVER = 1; define constant $ODBC-REMOVE-DRIVER = 2; define constant $ODBC-CONFIG-DRIVER = 3; define constant $ODBC-CONFIG-DRIVER-MAX = 100; define constant $ODBC-BOTH-DSN = 0; define constant $ODBC-USER-DSN = 1; define constant $ODBC-SYSTEM-DSN = 2; define constant $ODBC-ERROR-GENERAL-ERR = 1; define constant $ODBC-ERROR-INVALID-BUFF-LEN = 2; define constant $ODBC-ERROR-INVALID-HWND = 3; define constant $ODBC-ERROR-INVALID-STR = 4; define constant $ODBC-ERROR-INVALID-REQUEST-TYPE = 5; define constant $ODBC-ERROR-COMPONENT-NOT-FOUND = 6; define constant $ODBC-ERROR-INVALID-NAME = 7; define constant $ODBC-ERROR-INVALID-KEYWORD-VALUE = 8; define constant $ODBC-ERROR-INVALID-DSN = 9; define constant $ODBC-ERROR-INVALID-INF = 10; define constant $ODBC-ERROR-REQUEST-FAILED = 11; define constant $ODBC-ERROR-INVALID-PATH = 12; define constant $ODBC-ERROR-LOAD-LIB-FAILED = 13; define constant $ODBC-ERROR-INVALID-PARAM-SEQUENCE = 14; define constant $ODBC-ERROR-INVALID-LOG-FILE = 15; define constant $ODBC-ERROR-USER-CANCELED = 16; define constant $ODBC-ERROR-USAGE-UPDATE-FAILED = 17; define constant $ODBC-ERROR-CREATE-DSN-FAILED = 18; define constant $ODBC-ERROR-WRITING-SYSINFO-FAILED = 19; define constant $ODBC-ERROR-REMOVE-DSN-FAILED = 20; define constant $ODBC-ERROR-OUT-OF-MEM = 21; define constant $ODBC-ERROR-OUTPUT-STRING-TRUNCATED = 22; define constant $VER-FILEFLAGS = 0; //define constant $VER-FILEOS = $VOS-NT-WINDOWS32; define constant $SQL-HANDLE-SENV = 5; define constant $SQL-ATTR-ODBC-VERSION = 200; define constant $SQL-ATTR-CONNECTION-POOLING = 201; define constant $SQL-ATTR-CP-MATCH = 202; define constant $SQL-CP-OFF = 0; define constant $SQL-CP-ONE-PER-DRIVER = 1; define constant $SQL-CP-ONE-PER-HENV = 2; define constant $SQL-CP-STRICT-MATCH = 0; define constant $SQL-CP-RELAXED-MATCH = 1; define constant $SQL-OV-ODBC2 = 2; define constant $SQL-OV-ODBC3 = 3; define constant $SQL-ACCESS-MODE = 101; define constant $SQL-AUTOCOMMIT = 102; define constant $SQL-LOGIN-TIMEOUT = 103; define constant $SQL-OPT-TRACE = 104; define constant $SQL-OPT-TRACEFILE = 105; define constant $SQL-TRANSLATE-DLL = 106; define constant $SQL-TRANSLATE-OPTION = 107; define constant $SQL-TXN-ISOLATION = 108; define constant $SQL-CURRENT-QUALIFIER = 109; define constant $SQL-ODBC-CURSORS = 110; define constant $SQL-QUIET-MODE = 111; define constant $SQL-PACKET-SIZE = 112; define constant $SQL-ATTR-CONNECTION-TIMEOUT = 113; define constant $SQL-ATTR-DISCONNECT-BEHAVIOR = 114; define constant $SQL-ATTR-ENLIST-IN-DTC = 1207; define constant $SQL-ATTR-ENLIST-IN-XA = 1208; define constant $SQL-CONNECT-OPT-DRVR-START = 1000; define constant $SQL-MODE-READ-WRITE = 0; define constant $SQL-MODE-READ-ONLY = 1; define constant $SQL-AUTOCOMMIT-OFF = 0; define constant $SQL-AUTOCOMMIT-ON = 1; define constant $SQL-LOGIN-TIMEOUT-DEFAULT = 15; define constant $SQL-OPT-TRACE-OFF = 0; define constant $SQL-OPT-TRACE-ON = 1; define constant $SQL-CUR-USE-IF-NEEDED = 0; define constant $SQL-CUR-USE-ODBC = 1; define constant $SQL-CUR-USE-DRIVER = 2; define constant $SQL-DB-RETURN-TO-POOL = 0; define constant $SQL-DB-DISCONNECT = 1; define constant $SQL-DTC-DONE = 0; define constant $SQL-QUERY-TIMEOUT = 0; define constant $SQL-MAX-ROWS = 1; define constant $SQL-NOSCAN = 2; define constant $SQL-NOSCAN-OFF = 0; define constant $SQL-MAX-LENGTH = 3; define constant $SQL-ASYNC-ENABLE = 4; define constant $SQL-BIND-TYPE = 5; define constant $SQL-CURSOR-TYPE = 6; define constant $SQL-CONCURRENCY = 7; define constant $SQL-KEYSET-SIZE = 8; define constant $SQL-ROWSET-SIZE = 9; define constant $SQL-SIMULATE-CURSOR = 10; define constant $SQL-RETRIEVE-DATA = 11; define constant $SQL-USE-BOOKMARKS = 12; define constant $SQL-GET-BOOKMARK = 13; define constant $SQL-ROW-NUMBER = 14; define constant $SQL-ATTR-ASYNC-ENABLE = 4; define constant $SQL-ATTR-ENABLE-AUTO-IPD = 15; define constant $SQL-ATTR-FETCH-BOOKMARK-PTR = 16; define constant $SQL-ATTR-PARAM-BIND-OFFSET-PTR = 17; define constant $SQL-ATTR-PARAM-BIND-TYPE = 18; define constant $SQL-ATTR-PARAM-OPERATION-PTR = 19; define constant $SQL-ATTR-PARAM-STATUS-PTR = 20; define constant $SQL-ATTR-PARAMS-PROCESSED-PTR = 21; define constant $SQL-ATTR-PARAMSET-SIZE = 22; define constant $SQL-ATTR-ROW-BIND-OFFSET-PTR = 23; define constant $SQL-ATTR-ROW-OPERATION-PTR = 24; define constant $SQL-ATTR-ROW-STATUS-PTR = 25; define constant $SQL-ATTR-ROWS-FETCHED-PTR = 26; define constant $SQL-ATTR-ROW-ARRAY-SIZE = 27; define constant $SQL-IS-POINTER = -4; define constant $SQL-IS-UINTEGER = -5; define constant $SQL-IS-INTEGER = -6; define constant $SQL-IS-USMALLINT = -7; define constant $SQL-IS-SMALLINT = -8; define constant $SQL-PARAM-BIND-BY-COLUMN = 0; define constant $SQL-QUERY-TIMEOUT-DEFAULT = 0; define constant $SQL-MAX-ROWS-DEFAULT = 0; define constant $SQL-MAX-LENGTH-DEFAULT = 0; define constant $SQL-ASYNC-ENABLE-OFF = 0; define constant $SQL-ASYNC-ENABLE-ON = 1; define constant $SQL-BIND-BY-COLUMN = 0; define constant $SQL-CONCUR-READ-ONLY = 1; define constant $SQL-CONCUR-LOCK = 2; define constant $SQL-CONCUR-ROWVER = 3; define constant $SQL-CONCUR-VALUES = 4; define constant $SQL-CURSOR-FORWARD-ONLY = 0; define constant $SQL-CURSOR-KEYSET-DRIVEN = 1; define constant $SQL-CURSOR-DYNAMIC = 2; define constant $SQL-CURSOR-STATIC = 3; define constant $SQL-ROWSET-SIZE-DEFAULT = 1; define constant $SQL-KEYSET-SIZE-DEFAULT = 0; define constant $SQL-SC-NON-UNIQUE = 0; define constant $SQL-SC-TRY-UNIQUE = 1; define constant $SQL-SC-UNIQUE = 2; define constant $SQL-RD-OFF = 0; define constant $SQL-RD-ON = 1; define constant $SQL-UB-OFF = 0; define constant $SQL-UB-ON = #o1; define constant $SQL-UB-VARIABLE = 2; define constant $SQL-DESC-ARRAY-SIZE = 20; define constant $SQL-DESC-ARRAY-STATUS-PTR = 21; define constant $SQL-DESC-BASE-COLUMN-NAME = 22; define constant $SQL-DESC-BASE-TABLE-NAME = 23; define constant $SQL-DESC-BIND-OFFSET-PTR = 24; define constant $SQL-DESC-BIND-TYPE = 25; define constant $SQL-DESC-DATETIME-INTERVAL-PRECISION = 26; define constant $SQL-DESC-LITERAL-PREFIX = 27; define constant $SQL-DESC-LITERAL-SUFFIX = 28; define constant $SQL-DESC-LOCAL-TYPE-NAME = 29; define constant $SQL-DESC-MAXIMUM-SCALE = 30; define constant $SQL-DESC-MINIMUM-SCALE = 31; define constant $SQL-DESC-NUM-PREC-RADIX = 32; define constant $SQL-DESC-PARAMETER-TYPE = 33; define constant $SQL-DESC-ROWS-PROCESSED-PTR = 34; define constant $SQL-DIAG-CURSOR-ROW-COUNT = -1249; define constant $SQL-DIAG-ROW-NUMBER = -1248; define constant $SQL-DIAG-COLUMN-NUMBER = -1247; define constant $SQL-DIAG-CALL = 7; define constant $SQL-DATE = 9; define constant $SQL-INTERVAL = 10; define constant $SQL-TIME = 10; define constant $SQL-TIMESTAMP = 11; define constant $SQL-LONGVARCHAR = -1; define constant $SQL-BINARY = -2; define constant $SQL-VARBINARY = -3; define constant $SQL-LONGVARBINARY = -4; define constant $SQL-BIGINT = -5; define constant $SQL-TINYINT = -6; define constant $SQL-BIT = -7; define constant $SQL-CODE-YEAR = 1; define constant $SQL-CODE-MONTH = 2; define constant $SQL-CODE-DAY = 3; define constant $SQL-CODE-HOUR = 4; define constant $SQL-CODE-MINUTE = 5; define constant $SQL-CODE-SECOND = 6; define constant $SQL-CODE-YEAR-TO-MONTH = 7; define constant $SQL-CODE-DAY-TO-HOUR = 8; define constant $SQL-CODE-DAY-TO-MINUTE = 9; define constant $SQL-CODE-DAY-TO-SECOND = 10; define constant $SQL-CODE-HOUR-TO-MINUTE = 11; define constant $SQL-CODE-HOUR-TO-SECOND = 12; define constant $SQL-CODE-MINUTE-TO-SECOND = 13; define constant $SQL-INTERVAL-YEAR = -80; define constant $SQL-INTERVAL-MONTH = -81; define constant $SQL-INTERVAL-YEAR-TO-MONTH = -82; define constant $SQL-INTERVAL-DAY = -83; define constant $SQL-INTERVAL-HOUR = -84; define constant $SQL-INTERVAL-MINUTE = -85; define constant $SQL-INTERVAL-SECOND = -86; define constant $SQL-INTERVAL-DAY-TO-HOUR = -87; define constant $SQL-INTERVAL-DAY-TO-MINUTE = -88; define constant $SQL-INTERVAL-DAY-TO-SECOND = -89; define constant $SQL-INTERVAL-HOUR-TO-MINUTE = -90; define constant $SQL-INTERVAL-HOUR-TO-SECOND = -91; define constant $SQL-INTERVAL-MINUTE-TO-SECOND = -92; define constant $SQL-UNICODE = -95; define constant $SQL-UNICODE-VARCHAR = -96; define constant $SQL-UNICODE-LONGVARCHAR = -97; define constant $SQL-C-DEFAULT = 99; define constant $SQL-SIGNED-OFFSET = -20; define constant $SQL-UNSIGNED-OFFSET = -22; define constant $SQL-NO-ROW-NUMBER = -1; define constant $SQL-NO-COLUMN-NUMBER = -1; define constant $SQL-ROW-NUMBER-UNKNOWN = -2; define constant $SQL-COLUMN-NUMBER-UNKNOWN = -2; define constant $SQL-DEFAULT-PARAM = -5; define constant $SQL-IGNORE = -6; define constant $SQL-LEN-DATA-AT-EXEC-OFFSET = -100; define constant $SQL-LEN-BINARY-ATTR-OFFSET = -100; define constant $SQL-SETPARAM-VALUE-MAX = -1; define constant $SQL-COLUMN-COUNT = 0; define constant $SQL-COLUMN-NAME = 1; define constant $SQL-COLUMN-TYPE = 2; define constant $SQL-COLUMN-LENGTH = 3; define constant $SQL-COLUMN-PRECISION = 4; define constant $SQL-COLUMN-SCALE = 5; define constant $SQL-COLUMN-DISPLAY-SIZE = 6; define constant $SQL-COLUMN-NULLABLE = 7; define constant $SQL-COLUMN-UNSIGNED = 8; define constant $SQL-COLUMN-MONEY = 9; define constant $SQL-COLUMN-UPDATABLE = 10; define constant $SQL-COLUMN-AUTO-INCREMENT = 11; define constant $SQL-COLUMN-CASE-SENSITIVE = 12; define constant $SQL-COLUMN-SEARCHABLE = 13; define constant $SQL-COLUMN-TYPE-NAME = 14; define constant $SQL-COLUMN-TABLE-NAME = 15; define constant $SQL-COLUMN-OWNER-NAME = 16; define constant $SQL-COLUMN-QUALIFIER-NAME = 17; define constant $SQL-COLUMN-LABEL = 18; define constant $SQL-COLUMN-DRIVER-START = 1000; define constant $SQL-ATTR-READONLY = 0; define constant $SQL-ATTR-WRITE = 1; define constant $SQL-ATTR-READWRITE-UNKNOWN = 2; define constant $SQL-UNSEARCHABLE = 0; define constant $SQL-LIKE-ONLY = 1; define constant $SQL-ALL-EXCEPT-LIKE = 2; define constant $SQL-SEARCHABLE = 3; define constant $SQL-NO-TOTAL = -4; define constant $SQL-API-SQLALLOCHANDLESTD = 73; define constant $SQL-API-SQLBULKOPERATIONS = 24; define constant $SQL-API-SQLBINDPARAMETER = 72; define constant $SQL-API-SQLBROWSECONNECT = 55; define constant $SQL-API-SQLCOLATTRIBUTES = 6; define constant $SQL-API-SQLCOLUMNPRIVILEGES = 56; define constant $SQL-API-SQLDESCRIBEPARAM = 58; define constant $SQL-API-SQLDRIVERCONNECT = 41; define constant $SQL-API-SQLDRIVERS = 71; define constant $SQL-API-SQLEXTENDEDFETCH = 59; define constant $SQL-API-SQLFOREIGNKEYS = 60; define constant $SQL-API-SQLMORERESULTS = 61; define constant $SQL-API-SQLNATIVESQL = 62; define constant $SQL-API-SQLNUMPARAMS = 63; define constant $SQL-API-SQLPARAMOPTIONS = 64; define constant $SQL-API-SQLPRIMARYKEYS = 65; define constant $SQL-API-SQLPROCEDURECOLUMNS = 66; define constant $SQL-API-SQLPROCEDURES = 67; define constant $SQL-API-SQLSETPOS = 68; define constant $SQL-API-SQLSETSCROLLOPTIONS = 69; define constant $SQL-API-SQLTABLEPRIVILEGES = 70; define constant $SQL-NUM-FUNCTIONS = 23; define constant $SQL-EXT-API-START = 40; define constant $SQL-API-ODBC3-ALL-FUNCTIONS = 999; define constant $SQL-INFO-FIRST = 0; define constant $SQL-DRIVER-HDBC = 3; define constant $SQL-DRIVER-HENV = 4; define constant $SQL-DRIVER-HSTMT = 5; define constant $SQL-DRIVER-NAME = 6; define constant $SQL-DRIVER-VER = 7; define constant $SQL-ODBC-API-CONFORMANCE = 9; define constant $SQL-ODBC-VER = 10; define constant $SQL-ROW-UPDATES = 11; define constant $SQL-ODBC-SAG-CLI-CONFORMANCE = 12; define constant $SQL-ODBC-SQL-CONFORMANCE = 15; define constant $SQL-PROCEDURES = 21; define constant $SQL-CONCAT-NULL-BEHAVIOR = 22; define constant $SQL-CURSOR-ROLLBACK-BEHAVIOR = 24; define constant $SQL-EXPRESSIONS-IN-ORDERBY = 27; define constant $SQL-MAX-PROCEDURE-NAME-LEN = 33; define constant $SQL-MULT-RESULT-SETS = 36; define constant $SQL-MULTIPLE-ACTIVE-TXN = 37; define constant $SQL-OUTER-JOINS = 38; define constant $SQL-OWNER-TERM = 39; define constant $SQL-PROCEDURE-TERM = 40; define constant $SQL-QUALIFIER-NAME-SEPARATOR = 41; define constant $SQL-QUALIFIER-TERM = 42; define constant $SQL-SCROLL-OPTIONS = 44; define constant $SQL-TABLE-TERM = 45; define constant $SQL-CONVERT-FUNCTIONS = 48; define constant $SQL-NUMERIC-FUNCTIONS = 49; define constant $SQL-STRING-FUNCTIONS = 50; define constant $SQL-SYSTEM-FUNCTIONS = 51; define constant $SQL-TIMEDATE-FUNCTIONS = 52; define constant $SQL-CONVERT-BIGINT = 53; define constant $SQL-CONVERT-BINARY = 54; define constant $SQL-CONVERT-BIT = 55; define constant $SQL-CONVERT-CHAR = 56; define constant $SQL-CONVERT-DATE = 57; define constant $SQL-CONVERT-DECIMAL = 58; define constant $SQL-CONVERT-DOUBLE = 59; define constant $SQL-CONVERT-FLOAT = 60; define constant $SQL-CONVERT-INTEGER = 61; define constant $SQL-CONVERT-LONGVARCHAR = 62; define constant $SQL-CONVERT-NUMERIC = 63; define constant $SQL-CONVERT-REAL = 64; define constant $SQL-CONVERT-SMALLINT = 65; define constant $SQL-CONVERT-TIME = 66; define constant $SQL-CONVERT-TIMESTAMP = 67; define constant $SQL-CONVERT-TINYINT = 68; define constant $SQL-CONVERT-VARBINARY = 69; define constant $SQL-CONVERT-VARCHAR = 70; define constant $SQL-CONVERT-LONGVARBINARY = 71; define constant $SQL-CORRELATION-NAME = 74; define constant $SQL-NON-NULLABLE-COLUMNS = 75; define constant $SQL-DRIVER-HLIB = 76; define constant $SQL-DRIVER-ODBC-VER = 77; define constant $SQL-LOCK-TYPES = 78; define constant $SQL-POS-OPERATIONS = 79; define constant $SQL-POSITIONED-STATEMENTS = 80; define constant $SQL-BOOKMARK-PERSISTENCE = 82; define constant $SQL-STATIC-SENSITIVITY = 83; define constant $SQL-FILE-USAGE = 84; define constant $SQL-COLUMN-ALIAS = 87; define constant $SQL-GROUP-BY = 88; define constant $SQL-KEYWORDS = 89; define constant $SQL-OWNER-USAGE = 91; define constant $SQL-QUALIFIER-USAGE = 92; define constant $SQL-QUOTED-IDENTIFIER-CASE = 93; define constant $SQL-SUBQUERIES = 95; define constant $SQL-UNION = 96; define constant $SQL-MAX-ROW-SIZE-INCLUDES-LONG = 103; define constant $SQL-MAX-CHAR-LITERAL-LEN = 108; define constant $SQL-TIMEDATE-ADD-INTERVALS = 109; define constant $SQL-TIMEDATE-DIFF-INTERVALS = 110; define constant $SQL-NEED-LONG-DATA-LEN = 111; define constant $SQL-MAX-BINARY-LITERAL-LEN = 112; define constant $SQL-LIKE-ESCAPE-CLAUSE = 113; define constant $SQL-QUALIFIER-LOCATION = 114; define constant $SQL-INFO-DRIVER-START = 1000; define constant $SQL-ACTIVE-ENVIRONMENTS = 116; define constant $SQL-ALTER-DOMAIN = 117; define constant $SQL-DATETIME-LITERALS = 119; define constant $SQL-BATCH-ROW-COUNT = 120; define constant $SQL-BATCH-SUPPORT = 121; define constant $SQL-CONVERT-WCHAR = 122; define constant $SQL-CONVERT-INTERVAL-DAY-TIME = 123; define constant $SQL-CONVERT-INTERVAL-YEAR-MONTH = 124; define constant $SQL-CONVERT-WLONGVARCHAR = 125; define constant $SQL-CONVERT-WVARCHAR = 126; define constant $SQL-CREATE-ASSERTION = 127; define constant $SQL-CREATE-CHARACTER-SET = 128; define constant $SQL-CREATE-COLLATION = 129; define constant $SQL-CREATE-DOMAIN = 130; define constant $SQL-CREATE-SCHEMA = 131; define constant $SQL-CREATE-TABLE = 132; define constant $SQL-CREATE-TRANSLATION = 133; define constant $SQL-CREATE-VIEW = 134; define constant $SQL-DRIVER-HDESC = 135; define constant $SQL-DROP-ASSERTION = 136; define constant $SQL-DROP-CHARACTER-SET = 137; define constant $SQL-DROP-COLLATION = 138; define constant $SQL-DROP-DOMAIN = 139; define constant $SQL-DROP-SCHEMA = 140; define constant $SQL-DROP-TABLE = 141; define constant $SQL-DROP-TRANSLATION = 142; define constant $SQL-DROP-VIEW = 143; define constant $SQL-DYNAMIC-CURSOR-ATTRIBUTES1 = 144; define constant $SQL-DYNAMIC-CURSOR-ATTRIBUTES2 = 145; define constant $SQL-FORWARD-ONLY-CURSOR-ATTRIBUTES1 = 146; define constant $SQL-FORWARD-ONLY-CURSOR-ATTRIBUTES2 = 147; define constant $SQL-INDEX-KEYWORDS = 148; define constant $SQL-INFO-SCHEMA-VIEWS = 149; define constant $SQL-KEYSET-CURSOR-ATTRIBUTES1 = 150; define constant $SQL-KEYSET-CURSOR-ATTRIBUTES2 = 151; define constant $SQL-ODBC-INTERFACE-CONFORMANCE = 152; define constant $SQL-PARAM-ARRAY-ROW-COUNTS = 153; define constant $SQL-PARAM-ARRAY-SELECTS = 154; define constant $SQL-SQL92-DATETIME-FUNCTIONS = 155; define constant $SQL-SQL92-FOREIGN-KEY-DELETE-RULE = 156; define constant $SQL-SQL92-FOREIGN-KEY-UPDATE-RULE = 157; define constant $SQL-SQL92-GRANT = 158; define constant $SQL-SQL92-NUMERIC-VALUE-FUNCTIONS = 159; define constant $SQL-SQL92-PREDICATES = 160; define constant $SQL-SQL92-RELATIONAL-JOIN-OPERATORS = 161; define constant $SQL-SQL92-REVOKE = 162; define constant $SQL-SQL92-ROW-VALUE-CONSTRUCTOR = 163; define constant $SQL-SQL92-STRING-FUNCTIONS = 164; define constant $SQL-SQL92-VALUE-EXPRESSIONS = 165; define constant $SQL-STANDARD-CLI-CONFORMANCE = 166; define constant $SQL-STATIC-CURSOR-ATTRIBUTES1 = 167; define constant $SQL-STATIC-CURSOR-ATTRIBUTES2 = 168; define constant $SQL-DDL-INDEX = 170; define constant $SQL-DM-VER = 171; define constant $SQL-INSERT-STATEMENT = 172; define constant $SQL-AT-ADD-COLUMN-SINGLE = #x00000020; define constant $SQL-AT-ADD-COLUMN-DEFAULT = #x00000040; define constant $SQL-AT-ADD-COLUMN-COLLATION = #x00000080; define constant $SQL-AT-SET-COLUMN-DEFAULT = #x00000100; define constant $SQL-AT-DROP-COLUMN-DEFAULT = #x00000200; define constant $SQL-AT-DROP-COLUMN-CASCADE = #x00000400; define constant $SQL-AT-DROP-COLUMN-RESTRICT = #x00000800; define constant $SQL-AT-ADD-TABLE-CONSTRAINT = #x00001000; define constant $SQL-AT-DROP-TABLE-CONSTRAINT-CASCADE = #x00002000; define constant $SQL-AT-DROP-TABLE-CONSTRAINT-RESTRICT = #x00004000; define constant $SQL-AT-CONSTRAINT-NAME-DEFINITION = #x00008000; define constant $SQL-AT-CONSTRAINT-INITIALLY-DEFERRED = #x00010000; define constant $SQL-AT-CONSTRAINT-INITIALLY-IMMEDIATE = #x00020000; define constant $SQL-AT-CONSTRAINT-DEFERRABLE = #x00040000; define constant $SQL-AT-CONSTRAINT-NON-DEFERRABLE = #x00080000; define constant $SQL-CVT-CHAR = #x00000001; define constant $SQL-CVT-NUMERIC = #x00000002; define constant $SQL-CVT-DECIMAL = #x00000004; define constant $SQL-CVT-INTEGER = #x00000008; define constant $SQL-CVT-SMALLINT = #x00000010; define constant $SQL-CVT-FLOAT = #x00000020; define constant $SQL-CVT-REAL = #x00000040; define constant $SQL-CVT-DOUBLE = #x00000080; define constant $SQL-CVT-VARCHAR = #x00000100; define constant $SQL-CVT-LONGVARCHAR = #x00000200; define constant $SQL-CVT-BINARY = #x00000400; define constant $SQL-CVT-VARBINARY = #x00000800; define constant $SQL-CVT-BIT = #x00001000; define constant $SQL-CVT-TINYINT = #x00002000; define constant $SQL-CVT-BIGINT = #x00004000; define constant $SQL-CVT-DATE = #x00008000; define constant $SQL-CVT-TIME = #x00010000; define constant $SQL-CVT-TIMESTAMP = #x00020000; define constant $SQL-CVT-LONGVARBINARY = #x00040000; define constant $SQL-CVT-INTERVAL-YEAR-MONTH = #x00080000; define constant $SQL-CVT-INTERVAL-DAY-TIME = #x00100000; define constant $SQL-CVT-WCHAR = #x00200000; define constant $SQL-CVT-WLONGVARCHAR = #x00400000; define constant $SQL-CVT-WVARCHAR = #x00800000; define constant $SQL-FN-CVT-CONVERT = #x00000001; define constant $SQL-FN-CVT-CAST = #x00000002; define constant $SQL-FN-STR-CONCAT = #x00000001; define constant $SQL-FN-STR-INSERT = #x00000002; define constant $SQL-FN-STR-LEFT = #x00000004; define constant $SQL-FN-STR-LTRIM = #x00000008; define constant $SQL-FN-STR-LENGTH = #x00000010; define constant $SQL-FN-STR-LOCATE = #x00000020; define constant $SQL-FN-STR-LCASE = #x00000040; define constant $SQL-FN-STR-REPEAT = #x00000080; define constant $SQL-FN-STR-REPLACE = #x00000100; define constant $SQL-FN-STR-RIGHT = #x00000200; define constant $SQL-FN-STR-RTRIM = #x00000400; define constant $SQL-FN-STR-SUBSTRING = #x00000800; define constant $SQL-FN-STR-UCASE = #x00001000; define constant $SQL-FN-STR-ASCII = #x00002000; define constant $SQL-FN-STR-CHAR = #x00004000; define constant $SQL-FN-STR-DIFFERENCE = #x00008000; define constant $SQL-FN-STR-LOCATE-2 = #x00010000; define constant $SQL-FN-STR-SOUNDEX = #x00020000; define constant $SQL-FN-STR-SPACE = #x00040000; define constant $SQL-FN-STR-BIT-LENGTH = #x00080000; define constant $SQL-FN-STR-CHAR-LENGTH = #x00100000; define constant $SQL-FN-STR-CHARACTER-LENGTH = #x00200000; define constant $SQL-FN-STR-OCTET-LENGTH = #x00400000; define constant $SQL-FN-STR-POSITION = #x00800000; define constant $SQL-SSF-CONVERT = #x00000001; define constant $SQL-SSF-LOWER = #x00000002; define constant $SQL-SSF-UPPER = #x00000004; define constant $SQL-SSF-SUBSTRING = #x00000008; define constant $SQL-SSF-TRANSLATE = #x00000010; define constant $SQL-SSF-TRIM-BOTH = #x00000020; define constant $SQL-SSF-TRIM-LEADING = #x00000040; define constant $SQL-SSF-TRIM-TRAILING = #x00000080; define constant $SQL-FN-NUM-ABS = #x00000001; define constant $SQL-FN-NUM-ACOS = #x00000002; define constant $SQL-FN-NUM-ASIN = #x00000004; define constant $SQL-FN-NUM-ATAN = #x00000008; define constant $SQL-FN-NUM-ATAN2 = #x00000010; define constant $SQL-FN-NUM-CEILING = #x00000020; define constant $SQL-FN-NUM-COS = #x00000040; define constant $SQL-FN-NUM-COT = #x00000080; define constant $SQL-FN-NUM-EXP = #x00000100; define constant $SQL-FN-NUM-FLOOR = #x00000200; define constant $SQL-FN-NUM-LOG = #x00000400; define constant $SQL-FN-NUM-MOD = #x00000800; define constant $SQL-FN-NUM-SIGN = #x00001000; define constant $SQL-FN-NUM-SIN = #x00002000; define constant $SQL-FN-NUM-SQRT = #x00004000; define constant $SQL-FN-NUM-TAN = #x00008000; define constant $SQL-FN-NUM-PI = #x00010000; define constant $SQL-FN-NUM-RAND = #x00020000; define constant $SQL-FN-NUM-DEGREES = #x00040000; define constant $SQL-FN-NUM-LOG10 = #x00080000; define constant $SQL-FN-NUM-POWER = #x00100000; define constant $SQL-FN-NUM-RADIANS = #x00200000; define constant $SQL-FN-NUM-ROUND = #x00400000; define constant $SQL-FN-NUM-TRUNCATE = #x00800000; define constant $SQL-SNVF-BIT-LENGTH = #x00000001; define constant $SQL-SNVF-CHAR-LENGTH = #x00000002; define constant $SQL-SNVF-CHARACTER-LENGTH = #x00000004; define constant $SQL-SNVF-EXTRACT = #x00000008; define constant $SQL-SNVF-OCTET-LENGTH = #x00000010; define constant $SQL-SNVF-POSITION = #x00000020; define constant $SQL-FN-TD-NOW = #x00000001; define constant $SQL-FN-TD-CURDATE = #x00000002; define constant $SQL-FN-TD-DAYOFMONTH = #x00000004; define constant $SQL-FN-TD-DAYOFWEEK = #x00000008; define constant $SQL-FN-TD-DAYOFYEAR = #x00000010; define constant $SQL-FN-TD-MONTH = #x00000020; define constant $SQL-FN-TD-QUARTER = #x00000040; define constant $SQL-FN-TD-WEEK = #x00000080; define constant $SQL-FN-TD-YEAR = #x00000100; define constant $SQL-FN-TD-CURTIME = #x00000200; define constant $SQL-FN-TD-HOUR = #x00000400; define constant $SQL-FN-TD-MINUTE = #x00000800; define constant $SQL-FN-TD-SECOND = #x00001000; define constant $SQL-FN-TD-TIMESTAMPADD = #x00002000; define constant $SQL-FN-TD-TIMESTAMPDIFF = #x00004000; define constant $SQL-FN-TD-DAYNAME = #x00008000; define constant $SQL-FN-TD-MONTHNAME = #x00010000; define constant $SQL-FN-TD-CURRENT-DATE = #x00020000; define constant $SQL-FN-TD-CURRENT-TIME = #x00040000; define constant $SQL-FN-TD-CURRENT-TIMESTAMP = #x00080000; define constant $SQL-FN-TD-EXTRACT = #x00100000; define constant $SQL-SDF-CURRENT-DATE = #x00000001; define constant $SQL-SDF-CURRENT-TIME = #x00000002; define constant $SQL-SDF-CURRENT-TIMESTAMP = #x00000004; define constant $SQL-FN-SYS-USERNAME = #x00000001; define constant $SQL-FN-SYS-DBNAME = #x00000002; define constant $SQL-FN-SYS-IFNULL = #x00000004; define constant $SQL-FN-TSI-FRAC-SECOND = #x00000001; define constant $SQL-FN-TSI-SECOND = #x00000002; define constant $SQL-FN-TSI-MINUTE = #x00000004; define constant $SQL-FN-TSI-HOUR = #x00000008; define constant $SQL-FN-TSI-DAY = #x00000010; define constant $SQL-FN-TSI-WEEK = #x00000020; define constant $SQL-FN-TSI-MONTH = #x00000040; define constant $SQL-FN-TSI-QUARTER = #x00000080; define constant $SQL-FN-TSI-YEAR = #x00000100; define constant $SQL-CA1-NEXT = #x00000001; define constant $SQL-CA1-ABSOLUTE = #x00000002; define constant $SQL-CA1-RELATIVE = #x00000004; define constant $SQL-CA1-BOOKMARK = #x00000008; define constant $SQL-CA1-LOCK-NO-CHANGE = #x00000040; define constant $SQL-CA1-LOCK-EXCLUSIVE = #x00000080; define constant $SQL-CA1-LOCK-UNLOCK = #x00000100; define constant $SQL-CA1-POS-POSITION = #x00000200; define constant $SQL-CA1-POS-UPDATE = #x00000400; define constant $SQL-CA1-POS-DELETE = #x00000800; define constant $SQL-CA1-POS-REFRESH = #x00001000; define constant $SQL-CA1-POSITIONED-UPDATE = #x00002000; define constant $SQL-CA1-POSITIONED-DELETE = #x00004000; define constant $SQL-CA1-SELECT-FOR-UPDATE = #x00008000; define constant $SQL-CA1-BULK-ADD = #x00010000; define constant $SQL-CA1-BULK-UPDATE-BY-BOOKMARK = #x00020000; define constant $SQL-CA1-BULK-DELETE-BY-BOOKMARK = #x00040000; define constant $SQL-CA1-BULK-FETCH-BY-BOOKMARK = #x00080000; define constant $SQL-CA2-READ-ONLY-CONCURRENCY = #x00000001; define constant $SQL-CA2-LOCK-CONCURRENCY = #x00000002; define constant $SQL-CA2-OPT-ROWVER-CONCURRENCY = #x00000004; define constant $SQL-CA2-OPT-VALUES-CONCURRENCY = #x00000008; define constant $SQL-CA2-SENSITIVITY-ADDITIONS = #x00000010; define constant $SQL-CA2-SENSITIVITY-DELETIONS = #x00000020; define constant $SQL-CA2-SENSITIVITY-UPDATES = #x00000040; define constant $SQL-CA2-MAX-ROWS-SELECT = #x00000080; define constant $SQL-CA2-MAX-ROWS-INSERT = #x00000100; define constant $SQL-CA2-MAX-ROWS-DELETE = #x00000200; define constant $SQL-CA2-MAX-ROWS-UPDATE = #x00000400; define constant $SQL-CA2-MAX-ROWS-CATALOG = #x00000800; define constant $SQL-CA2-MAX-ROWS-AFFECTS-ALL = logior($SQL-CA2-MAX-ROWS-SELECT, $SQL-CA2-MAX-ROWS-INSERT, $SQL-CA2-MAX-ROWS-DELETE, $SQL-CA2-MAX-ROWS-UPDATE, $SQL-CA2-MAX-ROWS-CATALOG); define constant $SQL-CA2-CRC-EXACT = #x00001000; define constant $SQL-CA2-CRC-APPROXIMATE = #x00002000; define constant $SQL-CA2-SIMULATE-NON-UNIQUE = #x00004000; define constant $SQL-CA2-SIMULATE-TRY-UNIQUE = #x00008000; define constant $SQL-CA2-SIMULATE-UNIQUE = #x00010000; define constant $SQL-OAC-NONE = #x0000; define constant $SQL-OAC-LEVEL1 = #x0001; define constant $SQL-OAC-LEVEL2 = #x0002; define constant $SQL-OSCC-NOT-COMPLIANT = #x0000; define constant $SQL-OSCC-COMPLIANT = #x0001; define constant $SQL-OSC-MINIMUM = #x0000; define constant $SQL-OSC-CORE = #x0001; define constant $SQL-OSC-EXTENDED = #x0002; define constant $SQL-CB-NULL = #x0000; define constant $SQL-CB-NON-NULL = #x0001; define constant $SQL-SO-FORWARD-ONLY = #x00000001; define constant $SQL-SO-KEYSET-DRIVEN = #x00000002; define constant $SQL-SO-DYNAMIC = #x00000004; define constant $SQL-SO-MIXED = #x00000008; define constant $SQL-SO-STATIC = #x00000010; define constant $SQL-FD-FETCH-RESUME = #x00000040; define constant $SQL-TXN-VERSIONING = #x00000010; define constant $SQL-CN-NONE = #x0000; define constant $SQL-CN-DIFFERENT = #x0001; define constant $SQL-CN-ANY = #x0002; define constant $SQL-NNC-NULL = #x0000; define constant $SQL-NNC-NON-NULL = #x0001; define constant $SQL-NC-START = #x0002; define constant $SQL-NC-END = #x0004; define constant $SQL-FILE-NOT-SUPPORTED = #x0000; define constant $SQL-FILE-TABLE = #x0001; define constant $SQL-FILE-QUALIFIER = #x0002; define constant $SQL-GD-BLOCK = #x00000004; define constant $SQL-GD-BOUND = #x00000008; define constant $SQL-PS-POSITIONED-DELETE = #x00000001; define constant $SQL-PS-POSITIONED-UPDATE = #x00000002; define constant $SQL-PS-SELECT-FOR-UPDATE = #x00000004; define constant $SQL-GB-NOT-SUPPORTED = #x0000; define constant $SQL-GB-GROUP-BY-EQUALS-SELECT = #x0001; define constant $SQL-GB-GROUP-BY-CONTAINS-SELECT = #x0002; define constant $SQL-GB-NO-RELATION = #x0003; define constant $SQL-GB-COLLATE = #x0004; define constant $SQL-OU-DML-STATEMENTS = #x00000001; define constant $SQL-OU-PROCEDURE-INVOCATION = #x00000002; define constant $SQL-OU-TABLE-DEFINITION = #x00000004; define constant $SQL-OU-INDEX-DEFINITION = #x00000008; define constant $SQL-OU-PRIVILEGE-DEFINITION = #x00000010; define constant $SQL-QU-DML-STATEMENTS = #x00000001; define constant $SQL-QU-PROCEDURE-INVOCATION = #x00000002; define constant $SQL-QU-TABLE-DEFINITION = #x00000004; define constant $SQL-QU-INDEX-DEFINITION = #x00000008; define constant $SQL-QU-PRIVILEGE-DEFINITION = #x00000010; define constant $SQL-SQ-COMPARISON = #x00000001; define constant $SQL-SQ-EXISTS = #x00000002; define constant $SQL-SQ-IN = #x00000004; define constant $SQL-SQ-QUANTIFIED = #x00000008; define constant $SQL-SQ-CORRELATED-SUBQUERIES = #x00000010; define constant $SQL-U-UNION = #x00000001; define constant $SQL-U-UNION-ALL = #x00000002; define constant $SQL-BP-CLOSE = #x00000001; define constant $SQL-BP-DELETE = #x00000002; define constant $SQL-BP-DROP = #x00000004; define constant $SQL-BP-TRANSACTION = #x00000008; define constant $SQL-BP-UPDATE = #x00000010; define constant $SQL-BP-OTHER-HSTMT = #x00000020; define constant $SQL-BP-SCROLL = #x00000040; define constant $SQL-SS-ADDITIONS = #x00000001; define constant $SQL-SS-DELETIONS = #x00000002; define constant $SQL-SS-UPDATES = #x00000004; define constant $SQL-CV-CREATE-VIEW = #x00000001; define constant $SQL-CV-CHECK-OPTION = #x00000002; define constant $SQL-CV-CASCADED = #x00000004; define constant $SQL-CV-LOCAL = #x00000008; define constant $SQL-LCK-NO-CHANGE = #x00000001; define constant $SQL-LCK-EXCLUSIVE = #x00000002; define constant $SQL-LCK-UNLOCK = #x00000004; define constant $SQL-POS-POSITION = #x00000001; define constant $SQL-POS-REFRESH = #x00000002; define constant $SQL-POS-UPDATE = #x00000004; define constant $SQL-POS-DELETE = #x00000008; define constant $SQL-POS-ADD = #x00000010; define constant $SQL-QL-START = #x0001; define constant $SQL-QL-END = #x0002; define constant $SQL-AF-AVG = #x00000001; define constant $SQL-AF-COUNT = #x00000002; define constant $SQL-AF-MAX = #x00000004; define constant $SQL-AF-MIN = #x00000008; define constant $SQL-AF-SUM = #x00000010; define constant $SQL-AF-DISTINCT = #x00000020; define constant $SQL-AF-ALL = logior($SQL-AF-AVG, $SQL-AF-COUNT, $SQL-AF-MAX, $SQL-AF-MIN, $SQL-AF-SUM, $SQL-AF-DISTINCT); define constant $SQL-SC-SQL92-ENTRY = #x00000001; define constant $SQL-SC-FIPS127-2-TRANSITIONAL = #x00000002; define constant $SQL-SC-SQL92-INTERMEDIATE = #x00000004; define constant $SQL-SC-SQL92-FULL = #x00000008; define constant $SQL-DL-SQL92-DATE = #x00000001; define constant $SQL-DL-SQL92-TIME = #x00000002; define constant $SQL-DL-SQL92-TIMESTAMP = #x00000004; define constant $SQL-DL-SQL92-INTERVAL-YEAR = #x00000008; define constant $SQL-DL-SQL92-INTERVAL-MONTH = #x00000010; define constant $SQL-DL-SQL92-INTERVAL-DAY = #x00000020; define constant $SQL-DL-SQL92-INTERVAL-HOUR = #x00000040; define constant $SQL-DL-SQL92-INTERVAL-MINUTE = #x00000080; define constant $SQL-DL-SQL92-INTERVAL-SECOND = #x00000100; define constant $SQL-DL-SQL92-INTERVAL-YEAR-TO-MONTH = #x00000200; define constant $SQL-DL-SQL92-INTERVAL-DAY-TO-HOUR = #x00000400; define constant $SQL-DL-SQL92-INTERVAL-DAY-TO-MINUTE = #x00000800; define constant $SQL-DL-SQL92-INTERVAL-DAY-TO-SECOND = #x00001000; define constant $SQL-DL-SQL92-INTERVAL-HOUR-TO-MINUTE = #x00002000; define constant $SQL-DL-SQL92-INTERVAL-HOUR-TO-SECOND = #x00004000; define constant $SQL-DL-SQL92-INTERVAL-MINUTE-TO-SECOND = #x00008000; define constant $SQL-BRC-PROCEDURES = #x0000001; define constant $SQL-BRC-EXPLICIT = #x0000002; define constant $SQL-BRC-ROLLED-UP = #x0000004; define constant $SQL-BS-SELECT-EXPLICIT = #x00000001; define constant $SQL-BS-ROW-COUNT-EXPLICIT = #x00000002; define constant $SQL-BS-SELECT-PROC = #x00000004; define constant $SQL-BS-ROW-COUNT-PROC = #x00000008; define constant $SQL-PARC-BATCH = 1; define constant $SQL-PARC-NO-BATCH = 2; define constant $SQL-PAS-BATCH = 1; define constant $SQL-PAS-NO-BATCH = 2; define constant $SQL-PAS-NO-SELECT = 3; define constant $SQL-IK-NONE = #x00000000; define constant $SQL-IK-ASC = #x00000001; define constant $SQL-IK-DESC = #x00000002; define constant $SQL-IK-ALL = logior($SQL-IK-ASC, $SQL-IK-DESC); define constant $SQL-ISV-ASSERTIONS = #x00000001; define constant $SQL-ISV-CHARACTER-SETS = #x00000002; define constant $SQL-ISV-CHECK-CONSTRAINTS = #x00000004; define constant $SQL-ISV-COLLATIONS = #x00000008; define constant $SQL-ISV-COLUMN-DOMAIN-USAGE = #x00000010; define constant $SQL-ISV-COLUMN-PRIVILEGES = #x00000020; define constant $SQL-ISV-COLUMNS = #x00000040; define constant $SQL-ISV-CONSTRAINT-COLUMN-USAGE = #x00000080; define constant $SQL-ISV-CONSTRAINT-TABLE-USAGE = #x00000100; define constant $SQL-ISV-DOMAIN-CONSTRAINTS = #x00000200; define constant $SQL-ISV-DOMAINS = #x00000400; define constant $SQL-ISV-KEY-COLUMN-USAGE = #x00000800; define constant $SQL-ISV-REFERENTIAL-CONSTRAINTS = #x00001000; define constant $SQL-ISV-SCHEMATA = #x00002000; define constant $SQL-ISV-SQL-LANGUAGES = #x00004000; define constant $SQL-ISV-TABLE-CONSTRAINTS = #x00008000; define constant $SQL-ISV-TABLE-PRIVILEGES = #x00010000; define constant $SQL-ISV-TABLES = #x00020000; define constant $SQL-ISV-TRANSLATIONS = #x00040000; define constant $SQL-ISV-USAGE-PRIVILEGES = #x00080000; define constant $SQL-ISV-VIEW-COLUMN-USAGE = #x00100000; define constant $SQL-ISV-VIEW-TABLE-USAGE = #x00200000; define constant $SQL-ISV-VIEWS = #x00400000; define constant $SQL-AD-CONSTRAINT-NAME-DEFINITION = #x00000001; define constant $SQL-AD-ADD-DOMAIN-CONSTRAINT = #x00000002; define constant $SQL-AD-DROP-DOMAIN-CONSTRAINT = #x00000004; define constant $SQL-AD-ADD-DOMAIN-DEFAULT = #x00000008; define constant $SQL-AD-DROP-DOMAIN-DEFAULT = #x00000010; define constant $SQL-AD-ADD-CONSTRAINT-INITIALLY-DEFERRED = #x00000020; define constant $SQL-AD-ADD-CONSTRAINT-INITIALLY-IMMEDIATE = #x00000040; define constant $SQL-AD-ADD-CONSTRAINT-DEFERRABLE = #x00000080; define constant $SQL-AD-ADD-CONSTRAINT-NON-DEFERRABLE = #x00000100; define constant $SQL-CS-CREATE-SCHEMA = #x00000001; define constant $SQL-CS-AUTHORIZATION = #x00000002; define constant $SQL-CS-DEFAULT-CHARACTER-SET = #x00000004; define constant $SQL-CTR-CREATE-TRANSLATION = #x00000001; define constant $SQL-CA-CREATE-ASSERTION = #x00000001; define constant $SQL-CA-CONSTRAINT-INITIALLY-DEFERRED = #x00000010; define constant $SQL-CA-CONSTRAINT-INITIALLY-IMMEDIATE = #x00000020; define constant $SQL-CA-CONSTRAINT-DEFERRABLE = #x00000040; define constant $SQL-CA-CONSTRAINT-NON-DEFERRABLE = #x00000080; define constant $SQL-CCS-CREATE-CHARACTER-SET = #x00000001; define constant $SQL-CCS-COLLATE-CLAUSE = #x00000002; define constant $SQL-CCS-LIMITED-COLLATION = #x00000004; define constant $SQL-CCOL-CREATE-COLLATION = #x00000001; define constant $SQL-CDO-CREATE-DOMAIN = #x00000001; define constant $SQL-CDO-DEFAULT = #x00000002; define constant $SQL-CDO-CONSTRAINT = #x00000004; define constant $SQL-CDO-COLLATION = #x00000008; define constant $SQL-CDO-CONSTRAINT-NAME-DEFINITION = #x00000010; define constant $SQL-CDO-CONSTRAINT-INITIALLY-DEFERRED = #x00000020; define constant $SQL-CDO-CONSTRAINT-INITIALLY-IMMEDIATE = #x00000040; define constant $SQL-CDO-CONSTRAINT-DEFERRABLE = #x00000080; define constant $SQL-CDO-CONSTRAINT-NON-DEFERRABLE = #x00000100; define constant $SQL-CT-CREATE-TABLE = #x00000001; define constant $SQL-CT-COMMIT-PRESERVE = #x00000002; define constant $SQL-CT-COMMIT-DELETE = #x00000004; define constant $SQL-CT-GLOBAL-TEMPORARY = #x00000008; define constant $SQL-CT-LOCAL-TEMPORARY = #x00000010; define constant $SQL-CT-CONSTRAINT-INITIALLY-DEFERRED = #x00000020; define constant $SQL-CT-CONSTRAINT-INITIALLY-IMMEDIATE = #x00000040; define constant $SQL-CT-CONSTRAINT-DEFERRABLE = #x00000080; define constant $SQL-CT-CONSTRAINT-NON-DEFERRABLE = #x00000100; define constant $SQL-CT-COLUMN-CONSTRAINT = #x00000200; define constant $SQL-CT-COLUMN-DEFAULT = #x00000400; define constant $SQL-CT-COLUMN-COLLATION = #x00000800; define constant $SQL-CT-TABLE-CONSTRAINT = #x00001000; define constant $SQL-CT-CONSTRAINT-NAME-DEFINITION = #x00002000; define constant $SQL-DI-CREATE-INDEX = #x00000001; define constant $SQL-DI-DROP-INDEX = #x00000002; define constant $SQL-DC-DROP-COLLATION = #x00000001; define constant $SQL-DD-DROP-DOMAIN = #x00000001; define constant $SQL-DD-RESTRICT = #x00000002; define constant $SQL-DD-CASCADE = #x00000004; define constant $SQL-DS-DROP-SCHEMA = #x00000001; define constant $SQL-DS-RESTRICT = #x00000002; define constant $SQL-DS-CASCADE = #x00000004; define constant $SQL-DCS-DROP-CHARACTER-SET = #x00000001; define constant $SQL-DA-DROP-ASSERTION = #x00000001; define constant $SQL-DT-DROP-TABLE = #x00000001; define constant $SQL-DT-RESTRICT = #x00000002; define constant $SQL-DT-CASCADE = #x00000004; define constant $SQL-DTR-DROP-TRANSLATION = #x00000001; define constant $SQL-DV-DROP-VIEW = #x00000001; define constant $SQL-DV-RESTRICT = #x00000002; define constant $SQL-DV-CASCADE = #x00000004; define constant $SQL-IS-INSERT-LITERALS = #x00000001; define constant $SQL-IS-INSERT-SEARCHED = #x00000002; define constant $SQL-IS-SELECT-INTO = #x00000004; define constant $SQL-OIC-CORE = 1; define constant $SQL-OIC-LEVEL1 = 2; define constant $SQL-OIC-LEVEL2 = 3; define constant $SQL-SFKD-CASCADE = #x00000001; define constant $SQL-SFKD-NO-ACTION = #x00000002; define constant $SQL-SFKD-SET-DEFAULT = #x00000004; define constant $SQL-SFKD-SET-NULL = #x00000008; define constant $SQL-SFKU-CASCADE = #x00000001; define constant $SQL-SFKU-NO-ACTION = #x00000002; define constant $SQL-SFKU-SET-DEFAULT = #x00000004; define constant $SQL-SFKU-SET-NULL = #x00000008; define constant $SQL-SG-USAGE-ON-DOMAIN = #x00000001; define constant $SQL-SG-USAGE-ON-CHARACTER-SET = #x00000002; define constant $SQL-SG-USAGE-ON-COLLATION = #x00000004; define constant $SQL-SG-USAGE-ON-TRANSLATION = #x00000008; define constant $SQL-SG-WITH-GRANT-OPTION = #x00000010; define constant $SQL-SG-DELETE-TABLE = #x00000020; define constant $SQL-SG-INSERT-TABLE = #x00000040; define constant $SQL-SG-INSERT-COLUMN = #x00000080; define constant $SQL-SG-REFERENCES-TABLE = #x00000100; define constant $SQL-SG-REFERENCES-COLUMN = #x00000200; define constant $SQL-SG-SELECT-TABLE = #x00000400; define constant $SQL-SG-UPDATE-TABLE = #x00000800; define constant $SQL-SG-UPDATE-COLUMN = #x00001000; define constant $SQL-SP-EXISTS = #x00000001; define constant $SQL-SP-ISNOTNULL = #x00000002; define constant $SQL-SP-ISNULL = #x00000004; define constant $SQL-SP-MATCH-FULL = #x00000008; define constant $SQL-SP-MATCH-PARTIAL = #x00000010; define constant $SQL-SP-MATCH-UNIQUE-FULL = #x00000020; define constant $SQL-SP-MATCH-UNIQUE-PARTIAL = #x00000040; define constant $SQL-SP-OVERLAPS = #x00000080; define constant $SQL-SP-UNIQUE = #x00000100; define constant $SQL-SP-LIKE = #x00000200; define constant $SQL-SP-IN = #x00000400; define constant $SQL-SP-BETWEEN = #x00000800; define constant $SQL-SP-COMPARISON = #x00001000; define constant $SQL-SP-QUANTIFIED-COMPARISON = #x00002000; define constant $SQL-SRJO-CORRESPONDING-CLAUSE = #x00000001; define constant $SQL-SRJO-CROSS-JOIN = #x00000002; define constant $SQL-SRJO-EXCEPT-JOIN = #x00000004; define constant $SQL-SRJO-FULL-OUTER-JOIN = #x00000008; define constant $SQL-SRJO-INNER-JOIN = #x00000010; define constant $SQL-SRJO-INTERSECT-JOIN = #x00000020; define constant $SQL-SRJO-LEFT-OUTER-JOIN = #x00000040; define constant $SQL-SRJO-NATURAL-JOIN = #x00000080; define constant $SQL-SRJO-RIGHT-OUTER-JOIN = #x00000100; define constant $SQL-SRJO-UNION-JOIN = #x00000200; define constant $SQL-SR-USAGE-ON-DOMAIN = #x00000001; define constant $SQL-SR-USAGE-ON-CHARACTER-SET = #x00000002; define constant $SQL-SR-USAGE-ON-COLLATION = #x00000004; define constant $SQL-SR-USAGE-ON-TRANSLATION = #x00000008; define constant $SQL-SR-GRANT-OPTION-FOR = #x00000010; define constant $SQL-SR-CASCADE = #x00000020; define constant $SQL-SR-RESTRICT = #x00000040; define constant $SQL-SR-DELETE-TABLE = #x00000080; define constant $SQL-SR-INSERT-TABLE = #x00000100; define constant $SQL-SR-INSERT-COLUMN = #x00000200; define constant $SQL-SR-REFERENCES-TABLE = #x00000400; define constant $SQL-SR-REFERENCES-COLUMN = #x00000800; define constant $SQL-SR-SELECT-TABLE = #x00001000; define constant $SQL-SR-UPDATE-TABLE = #x00002000; define constant $SQL-SR-UPDATE-COLUMN = #x00004000; define constant $SQL-SRVC-VALUE-EXPRESSION = #x00000001; define constant $SQL-SRVC-NULL = #x00000002; define constant $SQL-SRVC-DEFAULT = #x00000004; define constant $SQL-SRVC-ROW-SUBQUERY = #x00000008; define constant $SQL-SVE-CASE = #x00000001; define constant $SQL-SVE-CAST = #x00000002; define constant $SQL-SVE-COALESCE = #x00000004; define constant $SQL-SVE-NULLIF = #x00000008; define constant $SQL-SCC-XOPEN-CLI-VERSION1 = #x00000001; define constant $SQL-SCC-ISO92-CLI = #x00000002; define constant $SQL-FETCH-FIRST-USER = 31; define constant $SQL-FETCH-FIRST-SYSTEM = 32; define constant $SQL-ENTIRE-ROWSET = 0; define constant $SQL-UPDATE = 2; define constant $SQL-DELETE = 3; define constant $SQL-ADD = 4; define constant $SQL-UPDATE-BY-BOOKMARK = 5; define constant $SQL-DELETE-BY-BOOKMARK = 6; define constant $SQL-FETCH-BY-BOOKMARK = 7; define constant $SQL-LOCK-UNLOCK = 2; define constant $SQL-BEST-ROWID = 1; define constant $SQL-ROWVER = 2; define constant $SQL-PC-NOT-PSEUDO = 1; define constant $SQL-QUICK = 0; define constant $SQL-ENSURE = 1; define constant $SQL-TABLE-STAT = 0; define constant $SQL-DRIVER-NOPROMPT = 0; define constant $SQL-DRIVER-COMPLETE = 1; define constant $SQL-DRIVER-PROMPT = 2; define constant $SQL-DRIVER-COMPLETE-REQUIRED = 3; define constant $SQL-FETCH-BOOKMARK = 8; define constant $SQL-ROW-SUCCESS = 0; define constant $SQL-ROW-DELETED = 1; define constant $SQL-ROW-UPDATED = 2; define constant $SQL-ROW-NOROW = 3; define constant $SQL-ROW-ADDED = 4; define constant $SQL-ROW-ERROR = 5; define constant $SQL-ROW-SUCCESS-WITH-INFO = 6; define constant $SQL-ROW-PROCEED = 0; define constant $SQL-ROW-IGNORE = 1; define constant $SQL-PARAM-SUCCESS = 0; define constant $SQL-PARAM-SUCCESS-WITH-INFO = 6; define constant $SQL-PARAM-ERROR = 5; define constant $SQL-PARAM-UNUSED = 7; define constant $SQL-PARAM-DIAG-UNAVAILABLE = 1; define constant $SQL-PARAM-IGNORE = 1; define constant $SQL-CASCADE = 0; define constant $SQL-RESTRICT = 1; define constant $SQL-SET-NULL = 2; define constant $SQL-NO-ACTION = 3; define constant $SQL-SET-DEFAULT = 4; define constant $SQL-INITIALLY-DEFERRED = 5; define constant $SQL-INITIALLY-IMMEDIATE = 6; define constant $SQL-PARAM-TYPE-UNKNOWN = 0; define constant $SQL-PARAM-INPUT = 1; define constant $SQL-PARAM-INPUT-OUTPUT = 2; define constant $SQL-RESULT-COL = 3; define constant $SQL-PARAM-OUTPUT = 4; define constant $SQL-RETURN-VALUE = 5; define constant $SQL-PT-UNKNOWN = 0; define constant $SQL-PT-PROCEDURE = 1; define constant $SQL-PT-FUNCTION = 2; define constant $SQL-FETCH-RESUME = 7; define constant $SQL-NO-DATA-FOUND = $SQL-NO-DATA; define constant $SQL-CP-DEFAULT = $SQL-CP-OFF; define constant $SQL-CP-MATCH-DEFAULT = $SQL-CP-STRICT-MATCH; define constant $SQL-ATTR-ACCESS-MODE = $SQL-ACCESS-MODE; define constant $SQL-ATTR-AUTOCOMMIT = $SQL-AUTOCOMMIT; define constant $SQL-ATTR-CURRENT-CATALOG = $SQL-CURRENT-QUALIFIER; define constant $SQL-ATTR-LOGIN-TIMEOUT = $SQL-LOGIN-TIMEOUT; define constant $SQL-ATTR-ODBC-CURSORS = $SQL-ODBC-CURSORS; define constant $SQL-ATTR-PACKET-SIZE = $SQL-PACKET-SIZE; define constant $SQL-ATTR-QUIET-MODE = $SQL-QUIET-MODE; define constant $SQL-ATTR-TRACE = $SQL-OPT-TRACE; define constant $SQL-ATTR-TRACEFILE = $SQL-OPT-TRACEFILE; define constant $SQL-ATTR-TRANSLATE-LIB = $SQL-TRANSLATE-DLL; define constant $SQL-ATTR-TRANSLATE-OPTION = $SQL-TRANSLATE-OPTION; define constant $SQL-ATTR-TXN-ISOLATION = $SQL-TXN-ISOLATION; define constant $SQL-CONN-OPT-MAX = $SQL-PACKET-SIZE; define constant $SQL-CONN-OPT-MIN = $SQL-ACCESS-MODE; define constant $SQL-MODE-DEFAULT = $SQL-MODE-READ-WRITE; define constant $SQL-AUTOCOMMIT-DEFAULT = $SQL-AUTOCOMMIT-ON; define constant $SQL-OPT-TRACE-DEFAULT = $SQL-OPT-TRACE-OFF; define constant $SQL-CUR-DEFAULT = $SQL-CUR-USE-DRIVER; define constant $SQL-DB-DEFAULT = $SQL-DB-RETURN-TO-POOL; define constant $SQL-ATTR-CONCURRENCY = $SQL-CONCURRENCY; define constant $SQL-ATTR-CURSOR-TYPE = $SQL-CURSOR-TYPE; define constant $SQL-ATTR-KEYSET-SIZE = $SQL-KEYSET-SIZE; define constant $SQL-ATTR-MAX-LENGTH = $SQL-MAX-LENGTH; define constant $SQL-ATTR-MAX-ROWS = $SQL-MAX-ROWS; define constant $SQL-ATTR-NOSCAN = $SQL-NOSCAN; define constant $SQL-ATTR-QUERY-TIMEOUT = $SQL-QUERY-TIMEOUT; define constant $SQL-ATTR-RETRIEVE-DATA = $SQL-RETRIEVE-DATA; define constant $SQL-ATTR-ROW-BIND-TYPE = $SQL-BIND-TYPE; define constant $SQL-ATTR-SIMULATE-CURSOR = $SQL-SIMULATE-CURSOR; define constant $SQL-ATTR-USE-BOOKMARKS = $SQL-USE-BOOKMARKS; define constant $SQL-STMT-OPT-MAX = $SQL-ROW-NUMBER; define constant $SQL-STMT-OPT-MIN = $SQL-QUERY-TIMEOUT; define constant $SQL-COL-PRED-CHAR = $SQL-LIKE-ONLY; define constant $SQL-COL-PRED-BASIC = $SQL-ALL-EXCEPT-LIKE; define constant $SQL-PARAM-BIND-TYPE-DEFAULT = $SQL-PARAM-BIND-BY-COLUMN; define constant $SQL-NOSCAN-DEFAULT = $SQL-NOSCAN-OFF; define constant $SQL-ASYNC-ENABLE-DEFAULT = $SQL-ASYNC-ENABLE-OFF; define constant $SQL-RD-DEFAULT = $SQL-RD-ON; define constant $SQL-UB-DEFAULT = $SQL-UB-OFF; define constant $SQL-UB-FIXED = $SQL-UB-ON; define constant $SQL-DESC-AUTO-UNIQUE-VALUE = $SQL-COLUMN-AUTO-INCREMENT; define constant $SQL-DESC-CASE-SENSITIVE = $SQL-COLUMN-CASE-SENSITIVE; define constant $SQL-DESC-CATALOG-NAME = $SQL-COLUMN-QUALIFIER-NAME; define constant $SQL-DESC-CONCISE-TYPE = $SQL-COLUMN-TYPE; define constant $SQL-DESC-DISPLAY-SIZE = $SQL-COLUMN-DISPLAY-SIZE; define constant $SQL-DESC-FIXED-PREC-SCALE = $SQL-COLUMN-MONEY; define constant $SQL-DESC-LABEL = $SQL-COLUMN-LABEL; define constant $SQL-DESC-SCHEMA-NAME = $SQL-COLUMN-OWNER-NAME; define constant $SQL-DESC-SEARCHABLE = $SQL-COLUMN-SEARCHABLE; define constant $SQL-DESC-TYPE-NAME = $SQL-COLUMN-TYPE-NAME; define constant $SQL-DESC-TABLE-NAME = $SQL-COLUMN-TABLE-NAME; define constant $SQL-DESC-UNSIGNED = $SQL-COLUMN-UNSIGNED; define constant $SQL-DESC-UPDATABLE = $SQL-COLUMN-UPDATABLE; define constant $SQL-UNICODE-CHAR = $SQL-UNICODE; define constant $SQL-TYPE-DRIVER-START = $SQL-INTERVAL-YEAR; define constant $SQL-TYPE-DRIVER-END = $SQL-UNICODE-LONGVARCHAR; define constant $SQL-C-NUMERIC = $SQL-NUMERIC; define constant $SQL-C-DATE = $SQL-DATE; define constant $SQL-C-TIME = $SQL-TIME; define constant $SQL-C-TIMESTAMP = $SQL-TIMESTAMP; define constant $SQL-C-TYPE-DATE = $SQL-TYPE-DATE; define constant $SQL-C-TYPE-TIME = $SQL-TYPE-TIME; define constant $SQL-C-TYPE-TIMESTAMP = $SQL-TYPE-TIMESTAMP; define constant $SQL-C-INTERVAL-YEAR = $SQL-INTERVAL-YEAR; define constant $SQL-C-INTERVAL-MONTH = $SQL-INTERVAL-MONTH; define constant $SQL-C-INTERVAL-DAY = $SQL-INTERVAL-DAY; define constant $SQL-C-INTERVAL-HOUR = $SQL-INTERVAL-HOUR; define constant $SQL-C-INTERVAL-MINUTE = $SQL-INTERVAL-MINUTE; define constant $SQL-C-INTERVAL-SECOND = $SQL-INTERVAL-SECOND; define constant $SQL-C-INTERVAL-YEAR-TO-MONTH = $SQL-INTERVAL-YEAR-TO-MONTH; define constant $SQL-C-INTERVAL-DAY-TO-HOUR = $SQL-INTERVAL-DAY-TO-HOUR; define constant $SQL-C-INTERVAL-DAY-TO-MINUTE = $SQL-INTERVAL-DAY-TO-MINUTE; define constant $SQL-C-INTERVAL-DAY-TO-SECOND = $SQL-INTERVAL-DAY-TO-SECOND; define constant $SQL-C-INTERVAL-HOUR-TO-MINUTE = $SQL-INTERVAL-HOUR-TO-MINUTE; define constant $SQL-C-INTERVAL-HOUR-TO-SECOND = $SQL-INTERVAL-HOUR-TO-SECOND; define constant $SQL-C-INTERVAL-MINUTE-TO-SECOND = $SQL-INTERVAL-MINUTE-TO-SECOND; define constant $SQL-C-BINARY = $SQL-BINARY; define constant $SQL-C-BIT = $SQL-BIT; define constant $SQL-C-TINYINT = $SQL-TINYINT; define constant $SQL-TYPE-MIN = $SQL-BIT; define constant $SQL-TYPE-MAX = $SQL-VARCHAR; define constant $SQL-C-VARBOOKMARK = $SQL-C-BINARY; define constant $SQL-COLUMN-IGNORE = $SQL-IGNORE; define constant $SQL-PARAM-TYPE-DEFAULT = $SQL-PARAM-INPUT-OUTPUT; define constant $SQL-COLATT-OPT-MAX = $SQL-COLUMN-LABEL; define constant $SQL-PRED-SEARCHABLE = $SQL-SEARCHABLE; define constant $SQL-EXT-API-LAST = $SQL-API-SQLBINDPARAMETER; define constant $SQL-INFO-LAST = $SQL-QUALIFIER-LOCATION; define constant $SQL-CATALOG-LOCATION = $SQL-QUALIFIER-LOCATION; define constant $SQL-CATALOG-NAME-SEPARATOR = $SQL-QUALIFIER-NAME-SEPARATOR; define constant $SQL-CATALOG-TERM = $SQL-QUALIFIER-TERM; define constant $SQL-CATALOG-USAGE = $SQL-QUALIFIER-USAGE; define constant $SQL-SCHEMA-TERM = $SQL-OWNER-TERM; define constant $SQL-SCHEMA-USAGE = $SQL-OWNER-USAGE; define constant $SQL-UNION-STATEMENT = $SQL-UNION; define constant $SQL-FILE-CATALOG = $SQL-FILE-QUALIFIER; define constant $SQL-SU-DML-STATEMENTS = $SQL-OU-DML-STATEMENTS; define constant $SQL-SU-PROCEDURE-INVOCATION = $SQL-OU-PROCEDURE-INVOCATION; define constant $SQL-SU-TABLE-DEFINITION = $SQL-OU-TABLE-DEFINITION; define constant $SQL-SU-INDEX-DEFINITION = $SQL-OU-INDEX-DEFINITION; define constant $SQL-SU-PRIVILEGE-DEFINITION = $SQL-OU-PRIVILEGE-DEFINITION; define constant $SQL-CU-DML-STATEMENTS = $SQL-QU-DML-STATEMENTS; define constant $SQL-CU-PROCEDURE-INVOCATION = $SQL-QU-PROCEDURE-INVOCATION; define constant $SQL-CU-TABLE-DEFINITION = $SQL-QU-TABLE-DEFINITION; define constant $SQL-CU-INDEX-DEFINITION = $SQL-QU-INDEX-DEFINITION; define constant $SQL-CU-PRIVILEGE-DEFINITION = $SQL-QU-PRIVILEGE-DEFINITION; define constant $SQL-CL-START = $SQL-QL-START; define constant $SQL-CL-END = $SQL-QL-END; define constant $SQL-US-UNION = $SQL-U-UNION; define constant $SQL-US-UNION-ALL = $SQL-U-UNION-ALL; define constant $SQL-SETPOS-MAX-OPTION-VALUE = $SQL-ADD; define constant $SQL-YEAR = $SQL-CODE-YEAR; define constant $SQL-MONTH = $SQL-CODE-MONTH; define constant $SQL-DAY = $SQL-CODE-DAY; define constant $SQL-HOUR = $SQL-CODE-HOUR; define constant $SQL-MINUTE = $SQL-CODE-MINUTE; define constant $SQL-SECOND = $SQL-CODE-SECOND; define constant $SQL-YEAR-TO-MONTH = $SQL-CODE-YEAR-TO-MONTH; define constant $SQL-DAY-TO-HOUR = $SQL-CODE-DAY-TO-HOUR; define constant $SQL-DAY-TO-MINUTE = $SQL-CODE-DAY-TO-MINUTE; define constant $SQL-DAY-TO-SECOND = $SQL-CODE-DAY-TO-SECOND; define constant $SQL-HOUR-TO-MINUTE = $SQL-CODE-HOUR-TO-MINUTE; define constant $SQL-HOUR-TO-SECOND = $SQL-CODE-HOUR-TO-SECOND; define constant $SQL-MINUTE-TO-SECOND = $SQL-CODE-MINUTE-TO-SECOND; define constant $SQL-FD-FETCH-PREV = $SQL-FD-FETCH-PRIOR; define constant $SQL-FETCH-PREV = $SQL-FETCH-PRIOR; define constant $SQL-CONCUR-TIMESTAMP = $SQL-CONCUR-ROWVER; define constant $SQL-SCCO-OPT-TIMESTAMP = $SQL-SCCO-OPT-ROWVER; define constant $SQL-CC-DELETE = $SQL-CB-DELETE; define constant $SQL-CR-DELETE = $SQL-CB-DELETE; define constant $SQL-CC-CLOSE = $SQL-CB-CLOSE; define constant $SQL-CR-CLOSE = $SQL-CB-CLOSE; define constant $SQL-CC-PRESERVE = $SQL-CB-PRESERVE; define constant $SQL-CR-PRESERVE = $SQL-CB-PRESERVE; define constant $SQL-C-CHAR = $SQL-CHAR; define constant $SQL-WCHAR = -8; define constant $SQL-WVARCHAR = -9; define constant $SQL-WLONGVARCHAR = -10; define constant $SQL-C-WCHAR = $SQL-WCHAR; //+++++++Here's one that needs help: obviously this is "use the appropriate //datatype". We'll have to come up with something, probably a function. //define constant $SQL-C-TCHAR = $SQL-C-WCHAR; define constant $SQL-C-TCHAR = $SQL-C-CHAR; define constant $SQL-COPT-SS-BASE = 1200; define constant $SQL-REMOTE-PWD = $SQL-COPT-SS-BASE + 1; define constant $SQL-USE-PROCEDURE-FOR-PREPARE = $SQL-COPT-SS-BASE + 2; define constant $SQL-INTEGRATED-SECURITY = $SQL-COPT-SS-BASE + 3; define constant $SQL-PRESERVE-CURSORS = $SQL-COPT-SS-BASE + 4; define constant $SQL-COPT-SS-USER-DATA = $SQL-COPT-SS-BASE + 5; define constant $SQL-COPT-SS-ANSI-OEM = $SQL-COPT-SS-BASE + 6; define constant $SQL-COPT-SS-CONNECTION-DEAD = $SQL-COPT-SS-BASE + 9; define constant $SQL-COPT-SS-FALLBACK-CONNECT = $SQL-COPT-SS-BASE + 10; define constant $SQL-COPT-SS-PERF-DATA = $SQL-COPT-SS-BASE + 11; define constant $SQL-COPT-SS-PERF-DATA-LOG = $SQL-COPT-SS-BASE + 12; define constant $SQL-COPT-SS-PERF-QUERY-INTERVAL = $SQL-COPT-SS-BASE + 13; define constant $SQL-COPT-SS-PERF-QUERY-LOG = $SQL-COPT-SS-BASE + 14; define constant $SQL-COPT-SS-PERF-QUERY = $SQL-COPT-SS-BASE + 15; define constant $SQL-COPT-SS-PERF-DATA-LOG-NOW = $SQL-COPT-SS-BASE + 16; define constant $SQL-COPT-SS-PERF-QUERY-AUTO-LOG = $SQL-COPT-SS-BASE + 17; define constant $SQL-COPT-SS-PERF-DATA-AUTO-LOG = $SQL-COPT-SS-BASE + 18; define constant $SQL-COPT-SS-BCP = $SQL-COPT-SS-BASE + 19; define constant $SQL-SOPT-SS-BASE = 1225; define constant $SQL-TEXTPTR-LOGGING = $SQL-SOPT-SS-BASE + 0; define constant $SQL-SOPT-SS-CURRENT-COMMAND = $SQL-SOPT-SS-BASE + 1; define constant $SQL-SOPT-SS-HIDDEN-COLUMNS = $SQL-SOPT-SS-BASE + 2; define constant $SQL-UP-OFF = 0; define constant $SQL-UP-ON = 1; define constant $SQL-UP-ON-DROP = 2; define constant $SQL-IS-OFF = 0; define constant $SQL-IS-ON = 1; define constant $SQL-PC-OFF = 0; define constant $SQL-PC-ON = 1; define constant $SQL-AO-OFF = 0; define constant $SQL-AO-ON = 1; define constant $SQL-CD-TRUE = 1; define constant $SQL-CD-FALSE = 0; define constant $SQL-FB-OFF = 0; define constant $SQL-FB-ON = 1; define constant $SQL-BCP-OFF = 0; define constant $SQL-BCP-ON = 1; define constant $SQL-TL-OFF = 0; define constant $SQL-TL-ON = 1; define constant $SQL-HC-OFF = 0; define constant $SQL-HC-ON = 1; define constant $SQL-CA-SS-BASE = 1200; define constant $SQL-CA-SS-COLUMN-SSTYPE = $SQL-CA-SS-BASE + 0; define constant $SQL-CA-SS-COLUMN-UTYPE = $SQL-CA-SS-BASE + 1; define constant $SQL-CA-SS-NUM-ORDERS = $SQL-CA-SS-BASE + 2; define constant $SQL-CA-SS-COLUMN-ORDER = $SQL-CA-SS-BASE + 3; define constant $SQL-CA-SS-COLUMN-VARYLEN = $SQL-CA-SS-BASE + 4; define constant $SQL-CA-SS-NUM-COMPUTES = $SQL-CA-SS-BASE + 5; define constant $SQL-CA-SS-COMPUTE-ID = $SQL-CA-SS-BASE + 6; define constant $SQL-CA-SS-COMPUTE-BYLIST = $SQL-CA-SS-BASE + 7; define constant $SQL-CA-SS-COLUMN-ID = $SQL-CA-SS-BASE + 8; define constant $SQL-CA-SS-COLUMN-OP = $SQL-CA-SS-BASE + 9; define constant $SQL-CA-SS-COLUMN-SIZE = $SQL-CA-SS-BASE + 10; define constant $SQL-CA-SS-COLUMN-HIDDEN = $SQL-CA-SS-BASE + 11; define constant $SQL-CA-SS-COLUMN-KEY = $SQL-CA-SS-BASE + 12; define constant $SQLTEXT = #x23; define constant $SQLVARBINARY = #x25; define constant $SQLINTN = #x26; define constant $SQLVARCHAR = #x27; define constant $SQLBINARY = #x2d; define constant $SQLIMAGE = #x22; define constant $SQLCHARACTER = #x2f; define constant $SQLINT1 = #x30; define constant $SQLBIT = #x32; define constant $SQLINT2 = #x34; define constant $SQLINT4 = #x38; define constant $SQLMONEY = #x3c; define constant $SQLDATETIME = #x3d; define constant $SQLFLT8 = #x3e; define constant $SQLFLTN = #x6d; define constant $SQLMONEYN = #x6e; define constant $SQLDATETIMN = #x6f; define constant $SQLFLT4 = #x3b; define constant $SQLMONEY4 = #x7a; define constant $SQLDATETIM4 = #x3a; define constant $SQLDECIMAL = #x37; define constant $SQLDECIMALN = #x6a; define constant $SQLNUMERIC = #x3f; define constant $SQLNUMERICN = #x6c; define constant $SQLudtTEXT = 19; define constant $SQLudtVARBINARY = 4; define constant $SQLudtINTN = 13; define constant $SQLudtVARCHAR = 2; define constant $SQLudtBINARY = 3; define constant $SQLudtIMAGE = 20; define constant $SQLudtCHAR = 1; define constant $SQLudtINT1 = 5; define constant $SQLudtBIT = 16; define constant $SQLudtINT2 = 6; define constant $SQLudtINT4 = 7; define constant $SQLudtMONEY = 11; define constant $SQLudtDATETIME = 12; define constant $SQLudtFLT8 = 8; define constant $SQLudtFLTN = 14; define constant $SQLudtMONEYN = 17; define constant $SQLudtDATETIMN = 15; define constant $SQLudtSYSNAME = 18; define constant $SQLudtTIMESTAMP = 80; define constant $SQLudtFLT4 = 23; define constant $SQLudtMONEY4 = 21; define constant $SQLudtDATETIM4 = 22; define constant $SQLudtDECML = 24; define constant $SQLudtDECMLN = 26; define constant $SQLudtNUM = 10; define constant $SQLudtNUMN = 25; define constant $MIN-USER-DATATYPE = 100; define constant $SQLAOPCNT = #x4b; define constant $SQLAOPSUM = #x4d; define constant $SQLAOPAVG = #x4f; define constant $SQLAOPMIN = #x51; define constant $SQLAOPMAX = #x52; define constant $SQLAOPANY = #x53; define constant $SQLAOPNOOP = #x56; define constant $SQL-INFO-SS-FIRST = 1200; define constant $SQL-INFO-SS-NETLIB-NAME = $SQL-INFO-SS-FIRST + 0; define constant $SQL-INFO-SS-MAX-USED = $SQL-INFO-SS-NETLIB-NAME; define constant $SQL-DIAG-SS-BASE = -1150; define constant $SQL-DIAG-SS-MSGSTATE = ($SQL-DIAG-SS-BASE); define constant $DBMAXCHAR = 256; define constant $MAXNAME = 31; define constant $SQL-PERF-START = 1; define constant $SQL-PERF-STOP = 2; define constant $FAIL = 0; define constant $DB-OUT = 2; define constant $BCPFIRST = 2; define constant $BCPLAST = 3; define constant $BCPBATCH = 4; define constant $BCPKEEPNULLS = 5; define constant $BCPABORT = 6; define constant $SQL-FC-OFF = 0; define constant $SQL-FC-ON = 1; define constant $SQL-COPT-SS-ENLIST-IN-DTC = $SQL-COPT-SS-BASE + 7; define constant $SQL-COPT-SS-ENLIST-IN-XA = $SQL-COPT-SS-BASE + 8; define constant $SQL-SOPT-SS-MAX-USED = $SQL-SOPT-SS-HIDDEN-COLUMNS; define constant $SQL-UP-DEFAULT = $SQL-UP-ON; define constant $SQL-IS-DEFAULT = $SQL-IS-OFF; define constant $SQL-PC-DEFAULT = $SQL-PC-OFF; define constant $SQL-AO-DEFAULT = $SQL-AO-OFF; define constant $SQL-FB-DEFAULT = $SQL-FB-OFF; define constant $SQL-BCP-DEFAULT = $SQL-BCP-OFF; define constant $SQL-TL-DEFAULT = $SQL-TL-ON; define constant $SQL-HC-DEFAULT = $SQL-HC-OFF; define constant $SQL-CA-SS-MAX-USED = $SQL-CA-SS-COLUMN-KEY; define constant $MAXNUMERICLEN = $SQL-MAX-NUMERIC-LEN; define constant $SQL-FC-DEFAULT = $SQL-FC-OFF; define constant $CTL3D-SUBCLASS-DYNCREATE = #x0001; define constant $CTL3D-NOSUBCLASS-DYNCREATE = #x0002; define constant $CTL3D-BUTTON-CTL = 0; define constant $CTL3D-LISTBOX-CTL = 1; define constant $CTL3D-EDIT-CTL = 2; define constant $CTL3D-COMBO-CTL = 3; define constant $CTL3D-STATIC-CTL = 4; define constant $CTL3D-BUTTONS = #x0001; define constant $CTL3D-LISTBOXES = #x0002; define constant $CTL3D-EDITS = #x0004; define constant $CTL3D-COMBOS = #x0008; define constant $CTL3D-STATICTEXTS = #x0010; define constant $CTL3D-STATICFRAMES = #x0020; define constant $CTL3D-ALL = #xffff; define constant $CTL3D-NOBORDER = 0; define constant $CTL3D-BORDER = 1; define constant $CTL3D-NOSUBCLASS = 0; define constant $CTL3D-SUBCLASS = 1; define constant $CTL3D-3DCHECK = 26567; define constant $WM-CTLCOLOREDIT = #x0133; define constant $WM-CTLCOLORLISTBOX = #x0134; define constant $WM-CTLCOLORBTN = #x0135; define constant $WM-CTLCOLORDLG = #x0136; define constant $WM-CTLCOLORSCROLLBAR = #x0137; define constant $WM-CTLCOLORSTATIC = #x0138; // This file is automatically generated from "fixup.h"; do not edit. define constant $SQL-SPEC-MAJOR = 3; define constant $SQL-SPEC-MINOR = #o0; define constant $SQL-SPEC-string = "03.00"; define constant $SQL-SQLSTATE-SIZE = 5; define constant $SQL-MAX-DSN-LENGTH = 32; define constant $SQL-NOSCAN-ON = 1; define constant $SQL-API-ALL-FUNCTIONS = 0; define constant $SQL-API-LOADBYORDINAL = 199; define constant $SQL-API-ODBC3-ALL-FUNCTIONS-SIZE = 250; define constant $SQL-ACTIVE-CONNECTIONS = 0; define constant $SQL-ACTIVE-STATEMENTS = 1; define constant $SQL-MAX-OWNER-NAME-LEN = 32; define constant $SQL-MAX-QUALIFIER-NAME-LEN = 34; define constant $SQL-ODBC-SQL-OPT-IEF = 73; define constant $SQL-OJ-CAPABILITIES = 65003; define constant $SQL-OUTER-JOIN-CAPABILITIES = $SQL-OJ-CAPABILITIES; define constant $SQL-ASYNC-MODE = 10021; define constant $SQL-MAX-ASYNC-CONCURRENT-STATEMENTS = 10022; define constant $SQL-POSITION = 0; define constant $SQL-REFRESH = 1; define constant $SQL-LOCK-NO-CHANGE = 0; define constant $SQL-LOCK-EXCLUSIVE = 1; define constant $SQL-DATABASE-NAME = 16; define constant $SQL-SCROLL-FORWARD-ONLY = 0; define constant $SQL-SCROLL-KEYSET-DRIVEN = -1; define constant $SQL-SCROLL-DYNAMIC = -2; define constant $SQL-SCROLL-STATIC = -3; define constant $SQL-ATTR-ROW-NUMBER = $SQL-ROW-NUMBER; define constant $SQL-BIND-TYPE-DEFAULT = $SQL-BIND-BY-COLUMN; define constant $SQL-CONCUR-DEFAULT = $SQL-CONCUR-READ-ONLY; define constant $SQL-CURSOR-TYPE-DEFAULT = $SQL-CURSOR-FORWARD-ONLY; define constant $SQL-C-LONG = $SQL-INTEGER; define constant $SQL-C-SHORT = $SQL-SMALLINT; define constant $SQL-C-FLOAT = $SQL-REAL; define constant $SQL-C-DOUBLE = $SQL-DOUBLE; define constant $SQL-C-SLONG = ($SQL-C-LONG + $SQL-SIGNED-OFFSET); define constant $SQL-C-SSHORT = ($SQL-C-SHORT + $SQL-SIGNED-OFFSET); define constant $SQL-C-STINYINT = ($SQL-TINYINT + $SQL-SIGNED-OFFSET); define constant $SQL-C-ULONG = ($SQL-C-LONG + $SQL-UNSIGNED-OFFSET); define constant $SQL-C-USHORT = ($SQL-C-SHORT + $SQL-UNSIGNED-OFFSET); define constant $SQL-C-UTINYINT = ($SQL-TINYINT + $SQL-UNSIGNED-OFFSET); define constant $SQL-C-BOOKMARK = $SQL-C-ULONG; define constant $SQL-ALL-CATALOGS = "%"; define constant $SQL-ALL-SCHEMAS = "%"; define constant $SQL-ALL-TABLE-TYPES = "%"; define constant $SQL-ALL-TABLES = "%";