diff options
author | randomdan <randomdan@localhost> | 2010-11-30 21:03:08 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2010-11-30 21:03:08 +0000 |
commit | c8f303cd304e8fc08c726a03b95d51e998cd21bb (patch) | |
tree | bd767395217aded8b2e6df5188705058cd5b0fba /libodbcpp/command.h | |
parent | Use proper ODBC SQL_SUCCEEDED macro, not SQL_SUCCESS comparison (diff) | |
download | libdbpp-odbc-c8f303cd304e8fc08c726a03b95d51e998cd21bb.tar.bz2 libdbpp-odbc-c8f303cd304e8fc08c726a03b95d51e998cd21bb.tar.xz libdbpp-odbc-c8f303cd304e8fc08c726a03b95d51e998cd21bb.zip |
Support binding null to an SQL command parameter
Bind null for missing values for SQL merge data
Diffstat (limited to 'libodbcpp/command.h')
-rw-r--r-- | libodbcpp/command.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libodbcpp/command.h b/libodbcpp/command.h index 0517afd..1bc9f6d 100644 --- a/libodbcpp/command.h +++ b/libodbcpp/command.h @@ -29,6 +29,8 @@ namespace ODBC { void bindParamT(unsigned int i, const SQL_TIMESTAMP_STRUCT &); void bindParamT(unsigned int i, time_t); + void bindNull(unsigned int i); + const std::string sql; protected: friend class Param; |