summaryrefslogtreecommitdiff
path: root/libodbcpp/param.cpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-11-30 21:03:08 +0000
committerrandomdan <randomdan@localhost>2010-11-30 21:03:08 +0000
commitc8f303cd304e8fc08c726a03b95d51e998cd21bb (patch)
treebd767395217aded8b2e6df5188705058cd5b0fba /libodbcpp/param.cpp
parentUse proper ODBC SQL_SUCCEEDED macro, not SQL_SUCCESS comparison (diff)
downloadlibdbpp-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/param.cpp')
-rw-r--r--libodbcpp/param.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libodbcpp/param.cpp b/libodbcpp/param.cpp
index 9ccb7c9..91fc9e8 100644
--- a/libodbcpp/param.cpp
+++ b/libodbcpp/param.cpp
@@ -80,6 +80,12 @@ SIMPLEBINDER(const SQL_TIMESTAMP_STRUCT &, TimeStampParam, T);
SIMPLEBINDER(time_t, TimeStampParam, T);
void
+ODBC::Command::bindNull(unsigned int i)
+{
+ makeParam<NullParam>(i)->bind();
+}
+
+void
ODBC::GlibUstringParam::operator=(Glib::ustring const & d)
{
const char * addr = data.data();