globals.h 520 B

12345678910111213141516
  1. #define MAX_CHAR_SIZE 1000 /* replace by value from ODBC */
  2. #define DB_MSG 800 /* max length message for report_error() */
  3. #define OD_MSG 500 /* max length of message returned by SQLGetDiagRec() */
  4. /* cursors */
  5. typedef struct _cursor
  6. {
  7. SQLHSTMT stmt;
  8. dbToken token;
  9. int type; /* type of cursor: SELECT, UPDATE, INSERT */
  10. int nrows; /* number of rows selected by SELECT statement */
  11. } cursor;
  12. extern SQLHENV ODenvi; /* Handle ODBC environment */
  13. extern SQLHDBC ODconn; /* Handle connection */