Free statement after direct exec.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 18 Jan 2008 16:28:49 +0000 (16:28 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 18 Jan 2008 16:28:49 +0000 (16:28 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2697 cb58f699-b61c-0410-a6fe-9272a202ed29

odbc-store/odbc-store.cpp

index 5a42927..ca14348 100644 (file)
@@ -582,6 +582,9 @@ int ODBCStorageService::updateRow(const char *table, const char* context, const
         return -1;
     }
 
+    SQLFreeHandle(SQL_HANDLE_STMT, stmt);
+    stmt = getHSTMT(conn);
+
     // Prepare and exectute update statement.
     q = string("UPDATE ") + table + " SET ";