mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-09-19 02:27:55 +08:00
call mdb_sql_reset on call to SQLFreeStmt() (Jeff Smith)
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
Thu Mar 25 04:56:05 EST 2004 Brian Bruns <brian@bruns.com>
|
||||||
|
* src/odbc/odbc.c(_SQLFreeStmt): call mdb_sql_reset on stmt drop (Jeff Smith)
|
||||||
|
|
||||||
Sat Mar 13 09:27:23 EST 2004 Brian Bruns <brian@bruns.com>
|
Sat Mar 13 09:27:23 EST 2004 Brian Bruns <brian@bruns.com>
|
||||||
* doc/faq.html: fix typos, add question on write support
|
* doc/faq.html: fix typos, add question on write support
|
||||||
* doc/install.sgml: clarify yacc requirement
|
* doc/install.sgml: clarify yacc requirement
|
||||||
|
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
#include "connectparams.h"
|
#include "connectparams.h"
|
||||||
|
|
||||||
static char software_version[] = "$Id: odbc.c,v 1.15 2004/03/13 15:07:19 brianb Exp $";
|
static char software_version[] = "$Id: odbc.c,v 1.16 2004/03/25 10:34:07 brianb Exp $";
|
||||||
static void *no_unused_var_warn[] = {software_version,
|
static void *no_unused_var_warn[] = {software_version,
|
||||||
no_unused_var_warn};
|
no_unused_var_warn};
|
||||||
|
|
||||||
@@ -920,9 +920,13 @@ static SQLRETURN SQL_API _SQLFreeStmt(
|
|||||||
SQLUSMALLINT fOption)
|
SQLUSMALLINT fOption)
|
||||||
{
|
{
|
||||||
struct _hstmt *stmt=(struct _hstmt *)hstmt;
|
struct _hstmt *stmt=(struct _hstmt *)hstmt;
|
||||||
|
struct _hdbc *dbc = (struct _hdbc *) stmt->hdbc;
|
||||||
|
struct _henv *env = (struct _henv *) dbc->henv;
|
||||||
|
MdbSQL *sql = env->sql;
|
||||||
|
|
||||||
TRACE("_SQLFreeStmt");
|
TRACE("_SQLFreeStmt");
|
||||||
if (fOption==SQL_DROP) {
|
if (fOption==SQL_DROP) {
|
||||||
|
mdb_sql_reset(sql);
|
||||||
g_free(stmt);
|
g_free(stmt);
|
||||||
} else if (fOption==SQL_CLOSE) {
|
} else if (fOption==SQL_CLOSE) {
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user