summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libodbcpp/odbc-command.cpp')
-rw-r--r--libodbcpp/odbc-command.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/libodbcpp/odbc-command.cpp b/libodbcpp/odbc-command.cpp
index 43572c8..34febf3 100644
--- a/libodbcpp/odbc-command.cpp
+++ b/libodbcpp/odbc-command.cpp
@@ -5,6 +5,7 @@
ODBC::Command::Command(const Connection & c, const std::string & s) :
DB::Command(s),
+ hStmt(nullptr),
connection(c)
{
RETCODE rc = SQLAllocHandle(SQL_HANDLE_STMT, c.conn, &hStmt);
@@ -29,12 +30,3 @@ ODBC::Command::Command(const Connection & c, const std::string & s) :
params.resize(pcount);
}
-ODBC::Command::~Command()
-{
- for (Params::iterator i = params.begin(); i != params.end(); ++i) {
- if (*i) {
- delete *i;
- }
- }
-}
-