ODBC memory management

Check proper closure sequence of Statements/Connections/Env

SQLDisconnect now closes automatically all attached statements.
This commit is contained in:
Nirgal Vourgère
2013-07-03 19:32:53 +02:00
parent aac9c61536
commit 66b87caf26
2 changed files with 42 additions and 7 deletions

View File

@@ -37,11 +37,13 @@ extern "C" {
#endif
struct _henv {
MdbSQL *sql;
MdbSQL *sql;
GPtrArray *connections;
};
struct _hdbc {
struct _henv *henv;
ConnectParams* params;
GPtrArray *statements;
};
struct _hstmt {
struct _hdbc *hdbc;