Fixed a severe design flaw in ODBC driver that prevented the driver from using multiple SELECTs at once and instead crashed the driver

This commit is contained in:
leecher1337
2015-08-16 11:39:17 +02:00
parent f1bc697d6a
commit 0e508c82d8
2 changed files with 26 additions and 54 deletions

View File

@@ -36,15 +36,16 @@ extern "C" {
#endif
struct _henv {
MdbSQL *sql;
GPtrArray *connections;
};
struct _hdbc {
struct _henv *henv;
MdbSQL *sqlconn;
ConnectParams* params;
GPtrArray *statements;
};
struct _hstmt {
MdbSQL *sql;
struct _hdbc *hdbc;
/* reminder to self: the following is here for testing purposes.
* please make dynamic before checking in