mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
afecdd2419
Was experienced with MYSQL, ODBC and JDBC tables. modified: storage/connect/connect.cc - Fix MDEV-9966 (zero lines returned) modified: storage/connect/ha_connect.cc modified: storage/federatedx/ha_federatedx.cc - Typo modified: storage/connect/odbconn.cpp modified: storage/connect/reldef.cpp modified: storage/connect/tabmysql.cpp - Add new table type JDBC modified: storage/connect/ha_connect.cc modified: storage/connect/mycat.cc modified: storage/connect/plgdbsem.h modified: storage/connect/plgdbutl.cpp modified: storage/connect/tabodbc.cpp added: storage/connect/jdbccat.h added: storage/connect/jdbconn.cpp added: storage/connect/jdbconn.h added: storage/connect/tabjdbc.cpp added: storage/connect/tabjdbc.h
29 lines
1.3 KiB
C
29 lines
1.3 KiB
C
// Timeout and net wait defaults
|
|
#define DEFAULT_LOGIN_TIMEOUT -1 // means do not set
|
|
#define DEFAULT_QUERY_TIMEOUT -1 // means do not set
|
|
|
|
typedef struct jdbc_parms {
|
|
int CheckSize(int rows);
|
|
char *Driver; // JDBC driver
|
|
char *Url; // Driver URL
|
|
char *User; // User connect info
|
|
char *Pwd; // Password connect info
|
|
//int Cto; // Connect timeout
|
|
//int Qto; // Query timeout
|
|
int Fsize; // Fetch size
|
|
bool Scrollable; // Scrollable cursor
|
|
} JDBCPARM, *PJPARM;
|
|
|
|
/***********************************************************************/
|
|
/* JDBC catalog function prototypes. */
|
|
/***********************************************************************/
|
|
#if defined(PROMPT_OK)
|
|
char *JDBCCheckConnection(PGLOBAL g, char *dsn, int cop);
|
|
#endif // PROMPT_OK
|
|
//PQRYRES JDBCDataSources(PGLOBAL g, int maxres, bool info);
|
|
PQRYRES JDBCColumns(PGLOBAL g, char *jpath, char *db, char *table,
|
|
char *colpat, int maxres, bool info, PJPARM sop);
|
|
PQRYRES JDBCSrcCols(PGLOBAL g, char *jpath, char *src, PJPARM sop);
|
|
PQRYRES JDBCTables(PGLOBAL g, char *jpath, char *db, char *tabpat,
|
|
char *tabtyp, int maxres, bool info, PJPARM sop);
|
|
PQRYRES JDBCDrivers(PGLOBAL g, char *jpath, int maxres, bool info);
|