1 // Timeout and net wait defaults 2 #define DEFAULT_LOGIN_TIMEOUT -1 // means do not set 3 #define DEFAULT_QUERY_TIMEOUT -1 // means do not set 4 5 typedef struct odbc_parms { 6 PCSZ User; // User connect info 7 PCSZ Pwd; // Password connect info 8 int Cto; // Connect timeout 9 int Qto; // Query timeout 10 bool UseCnc; // Use SQLConnect (!SQLDriverConnect) 11 } ODBCPARM, *POPARM; 12 13 /***********************************************************************/ 14 /* ODBC catalog function prototypes. */ 15 /***********************************************************************/ 16 #if defined(PROMPT_OK) 17 char *ODBCCheckConnection(PGLOBAL g, char *dsn, int cop); 18 #endif // PROMPT_OK 19 PQRYRES ODBCDataSources(PGLOBAL g, int maxres, bool info); 20 PQRYRES ODBCColumns(PGLOBAL g, PCSZ dsn, PCSZ db, PCSZ table, 21 PCSZ colpat, int maxres, bool info, POPARM sop); 22 PQRYRES ODBCSrcCols(PGLOBAL g, char *dsn, char *src, POPARM sop); 23 PQRYRES ODBCTables(PGLOBAL g, PCSZ dsn, PCSZ db, PCSZ tabpat, 24 PCSZ tabtyp, int maxres, bool info, POPARM sop); 25 PQRYRES ODBCDrivers(PGLOBAL g, int maxres, bool info); 26