summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-command.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-11-18 16:55:04 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-11-18 16:55:04 +0000
commit22e0839fd6912b888b7c3c790573aef1f5df3936 (patch)
tree5e88e4de68024326b2c59b163dfc1b74a5d4c7f3 /libodbcpp/odbc-command.cpp
parentFixes for tidy (diff)
downloadlibdbpp-odbc-22e0839fd6912b888b7c3c790573aef1f5df3936.tar.bz2
libdbpp-odbc-22e0839fd6912b888b7c3c790573aef1f5df3936.tar.xz
libdbpp-odbc-22e0839fd6912b888b7c3c790573aef1f5df3936.zip
Clang format
Diffstat (limited to 'libodbcpp/odbc-command.cpp')
-rw-r--r--libodbcpp/odbc-command.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/libodbcpp/odbc-command.cpp b/libodbcpp/odbc-command.cpp
index 34febf3..c73b3f9 100644
--- a/libodbcpp/odbc-command.cpp
+++ b/libodbcpp/odbc-command.cpp
@@ -3,10 +3,7 @@
#include "odbc-param.h"
#include <sqlext.h>
-ODBC::Command::Command(const Connection & c, const std::string & s) :
- DB::Command(s),
- hStmt(nullptr),
- connection(c)
+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);
if (!SQL_SUCCEEDED(rc)) {
@@ -16,7 +13,7 @@ ODBC::Command::Command(const Connection & c, const std::string & s) :
if (!SQL_SUCCEEDED(rc)) {
throw ConnectionError(rc, SQL_HANDLE_STMT, hStmt);
}
- rc = SQLPrepare(hStmt, (SQLCHAR*)sql.c_str(), sql.length());
+ rc = SQLPrepare(hStmt, (SQLCHAR *)sql.c_str(), sql.length());
if (!SQL_SUCCEEDED(rc)) {
SQLFreeHandle(SQL_HANDLE_STMT, hStmt);
throw Error(rc, SQL_HANDLE_STMT, hStmt);
@@ -29,4 +26,3 @@ ODBC::Command::Command(const Connection & c, const std::string & s) :
}
params.resize(pcount);
}
-