?? sybdb.h
字號:
* not include all the unique index columns of * the underlying tables. */#define SYBECRSORD 20259 /* Only fully keyset driven cursors can have * 'order by', ' group by', or 'having' phrases. */#define SYBECRSBUFR 20260 /* Row buffering should not be turned on when * using cursor APIs. */#define SYBECRSNOFREE 20261 /* The DBNOAUTOFREE option should not be * turned on when using cursor APIs. */#define SYBECRSDIS 20262 /* Cursor statement contains one of the * disallowed phrases 'compute', 'union', * 'for browse', or 'select into'. */#define SYBECRSAGR 20263 /* Aggregate functions are not allowed in a * cursor statement. */#define SYBECRSFRAND 20264 /* Fetch types RANDOM and RELATIVE can only be * used within the keyset of keyset driven * cursors. */#define SYBECRSFLAST 20265 /* Fetch type LAST requires fully keyset * driven cursors. */#define SYBECRSBROL 20266 /* Backward scrolling cannot be used in a * forward scrolling cursor. */#define SYBECRSFROWN 20267 /* Row number to be fetched is outside valid * range. */#define SYBECRSBSKEY 20268 /* Keyset cannot be scrolled backward in mixed * cursors with a previous fetch type. */#define SYBECRSRO 20269 /* Data locking or modifications cannot be * made in a READONLY cursor. */#define SYBECRSNOCOUNT 20270 /* The DBNOCOUNT option should not be * turned on when doing updates or deletes with * dbcursor(). */#define SYBECRSTAB 20271 /* Table name must be determined in operations * involving data locking or modifications. */#define SYBECRSUPDNB 20272 /* Update or insert operations cannot use bind * variables when binding type is NOBIND. */#define SYBECRSNOWHERE 20273 /* A WHERE clause is not allowed in a cursor * update or insert. */#define SYBECRSSET 20274 /* A SET clause is required for a cursor * update or insert. */#define SYBECRSUPDTAB 20275 /* Update or insert operations using bind * variables require single table cursors. */#define SYBECRSNOUPD 20276 /* Update or delete operation did not affect * any rows. */#define SYBECRSINV 20277 /* Invalid cursor statement. */#define SYBECRSNOKEYS 20278 /* The entire keyset must be defined for KEYSET cursors.*/#define SYBECRSNOBIND 20279/* Cursor bind must be called prior to updating cursor */#define SYBECRSFTYPE 20280 /* Unknown fetch type.*/#define SYBECRSINVALID 20281 /* The cursor handle is invalid.*/#define SYBECRSMROWS 20282 /* Multiple rows are returned, only one is expected.*/#define SYBECRSNROWS 20283 /* No rows returned, at least one is expected.*/#define SYBECRSNOLEN 20284 /* No unique index found.*/#define SYBECRSNOPTCC 20285 /* No OPTCC was found.*/#define SYBECRSNORDER 20286 /* The order of clauses must be from, where, and order by.*/ #define SYBECRSNOTABLE 20287 /* Table name is NULL.*/#define SYBECRSNUNIQUE 20288 /* No unique keys associated with this view.*/#define SYBECRSVAR 20289 /* There is no valid address associated with this bind.*/#define SYBENOVALUE 20290 /* Security labels require both a name and a value */#define SYBEVOIDRET 20291 /* Parameter of type SYBVOID cannot ** be a return parameter. */#define SYBECLOSEIN 20292 /* Unable to close interface file. */#define SYBEBOOL 20293 /* Boolean parameters must be TRUE or FALSE. */#define SYBEBCPOPT 20294 /* The %s option cannot be called while a bulk ** copy operation is progress. */#define SYBEERRLABEL 20295 /* An illegal value was returned from the ** security label handler. */#define SYBEATTNACK 20296 /* Timed out waiting for server to ** acknowledge attention." */#define SYBEBBFL 20297 /* -001- ** Batch failed in bulk-copy to SQL Server */#define SYBEDCL 20298 /* -004- ** DCL Error */#define SYBECS 20299 /* -004- ** cs context Error *//* WARNING: whenever a new DB-Library error message is added, * increment DBERRCOUNT. */#define DBERRCOUNT 299/*** Define timeout period for attention acknowlegemets.*/#define ATTN_TIMEOUT 30/*** Define the symbol which denotes a null-terminated string length.*/#define DBNULLTERM -1 /* These are the codes returned by dbpoll(): */#define DBRESULT 1#define DBNOTIFICATION 2#define DBTIMEOUT 3#define DBINTERRUPT 4 /* Define the flags for db_netflags */#define DBRPFILL 0x0001 /* pending recvfill_a completed */#define DBRPENDING 0x0002 /* pending recvfill_a still pending */#define DBRPSFILLW 0x0004 /* sync fill invoked and waiting */#define DBRPASFILLW 0x0008 /* async fill invoked and waiting */#define DBPOLLWAIT 0x0010 /* dbproc specific dbpoll waiting */#define DBRPSTART 0x0020 /* read pending start up */#define DBRPSHUT 0x0040 /* socket/channel shutting down ignore ** and recvfill_a error */#define DBRNOMORE 0x0080 /* do not read next token */#define DBRINOPEN 0x0100 /* dbproc is still being opened and ** may need to resize buffers. ** Therefore, we won't do any read ** ahead until after the buffers ** would have been resized. */#define DBPOLLWAIT_A 0x0200 /* asynchronous dbpoll waiting */#define DBPOLL_TIMER 0x0400 /* The timer is still set for dbpoll */#define DBPWTIMEOUT 0x0800 /* The recvpendwait was timed out */#define DBRPARANOID 0x1000 /* Beware of AST interrupts (on VMS) */#define DBREADCOMP 0x2000 /* Read completed */#define DBWRITECOMP 0x4000 /* Write completed */#define DBURGECOMP 0x8000 /* Urgent write completed *//* The DBSORTORDER structure is used by dbloadsort(), dbstrcmp(), dbstrsort(), * and dbfreesort(). */typedef struct dbsortorder{ DBVOIDPTR sort;} DBSORTORDER;/*** 001**** Function Prototype for the functions refered thru a function pointer.*/CS_START_EXTERN_Ctypedef int (CS_PUBLIC DBFAR *DBWAITFUNC) PROTOTYPE(( void ));typedef RETCODE (CS_PUBLIC DBFAR * DB_ATTN_FUNC)PROTOTYPE(( CS_VOID DBFAR *dbproc, int data));typedef RETCODE (CS_PUBLIC DBFAR * DB_READ_FUNC)PROTOTYPE(( CS_VOID DBFAR *dbproc, BYTE DBFAR *buffer, DBINT count, DBBOOL unused, DBINT DBFAR *timeout));typedef RETCODE (CS_PUBLIC DBFAR *DB_AST_PROC)PROTOTYPE(( CS_VOID DBFAR *param));typedef RETCODE (CS_PUBLIC DBFAR *DB_READ_A_FUNC)PROTOTYPE(( CS_VOID DBFAR *dbproc, BYTE DBFAR *buffer, DBINT count, DBINT DBFAR *bytes_read, RETCODE DBFAR *final_result, DB_AST_PROC ast_proc, BYTE DBFAR *ast_param));typedef RETCODE (CS_PUBLIC DBFAR *DB_WRIT_FUNC)PROTOTYPE(( CS_VOID DBFAR *dbproc, BYTE DBFAR *buffer, DBINT count, DBBOOL wait_for_response));typedef RETCODE (CS_PUBLIC DBFAR *DB_CLOS_FUNC)PROTOTYPE(( CS_VOID DBFAR *dbproc));typedef RETCODE (CS_PUBLIC DBFAR *DB_BINDPROC_FUNC)PROTOTYPE(( BYTE DBFAR *srctype, DBINT srclen, BYTE DBFAR *desttype, DBINT destlen));typedef RETCODE (CS_PUBLIC DBFAR *DB_HCONVERT_FUNC)PROTOTYPE(( BYTE DBFAR *srctype, DBINT srclen, BYTE DBFAR *desttype, DBINT destlen));typedef RETCODE (CS_PUBLIC DBFAR * DBFAR * DB_BUSYRETVAL_FUNC)PROTOTYPE(( CS_VOID DBFAR *));typedef void (CS_PUBLIC DBFAR *DB_DBIDLE_FUNC) PROTOTYPE(( DBWAITFUNC dfunc, CS_VOID DBFAR *dbproc ));typedef int (CS_PUBLIC DBFAR *DB_DBCHKINTR_FUNC)PROTOTYPE(( CS_VOID DBFAR *dbproc));typedef int (CS_PUBLIC DBFAR *DB_DBHNDLINTR_FUNC)PROTOTYPE(( CS_VOID DBFAR *dbproc));typedef DBWAITFUNC (CS_PUBLIC DBFAR *DB_DBBUSY_FUNC) PROTOTYPE(( CS_VOID DBFAR *dbproc ));typedef CS_INT (CS_PUBLIC DBFAR *EVENTHANDLEFUNC) PROTOTYPE(( CS_VOID DBFAR *dbproc, DBCHAR DBFAR *event, DBUSMALLINT level, DBUSMALLINT option));CS_END_EXTERN_C/*** HOSTSERVER.h - structures and defines for communicating with server***//*** Structure forward declaration to get rid of C++ compilers' warning.*/struct dbprlist;struct dbprlist;/*** Data structure used by both send and recv*/typedef struct servbuf{ BYTE *serv_sbuf; /* send: start of send buffer */ BYTE *serv_snb; /* send: next place in buffer */ int serv_sleft; /* send: room left in send buffer */ int serv_sbsize; /* send: buffer size */ int serv_snum; /* send # for network */ int serv_sstat; /* send: status bits */ BYTE *serv_rbuf; /* recv: start of recv buffer */ BYTE *serv_rnb; /* recv: next place in buffer */ int serv_rleft; /* recv: room left in recv buffer */ int serv_rbsize; /* recv: buffer size */ int serv_rnum; /* recv # for network */ int serv_rstat; /* recv: status bits */ int serv_commtype; /* communications type (tcp, etc.) */ DB_ATTN_FUNC serv_attn; /* network-dependent routine to send * an ATTN packet to the SQL Server. */ DB_READ_FUNC serv_read; /* network-dependent routine to read * a byte stream from the SQL Server. */ DB_READ_A_FUNC serv_read_a; /* async version of serv_read(). */ DB_WRIT_FUNC serv_writ; /* network-dependent routine to write * a byte stream to the SQL Server. */ DB_CLOS_FUNC serv_clos; /* network-dependent routine to close * a connection to the SQL Server. */ BYTE serv_rbuftype; /* packet type of the last read buffer */ void *serv_endpoint; void *serv_ioreadevent; void *serv_iowriteevent;} SERVBUF;/*** DBSTRING - This structure is just used for stringing text or parameters** together.*/struct dbstring{ BYTE *strtext; /* actual byte string */ DBINT strtotlen; /* allocated length of the byte string */ struct dbstring *strnext;};typedef struct dbstring DBSTRING;/*** DBROWDATA - This structure is used to hold the actual data that
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -