From c8f303cd304e8fc08c726a03b95d51e998cd21bb Mon Sep 17 00:00:00 2001 From: randomdan Date: Tue, 30 Nov 2010 21:03:08 +0000 Subject: Support binding null to an SQL command parameter Bind null for missing values for SQL merge data --- libodbcpp/param.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libodbcpp/param.cpp') diff --git a/libodbcpp/param.cpp b/libodbcpp/param.cpp index 9ccb7c9..91fc9e8 100644 --- a/libodbcpp/param.cpp +++ b/libodbcpp/param.cpp @@ -79,6 +79,12 @@ SIMPLEBINDER(const struct tm *, TimeStampParam, T); SIMPLEBINDER(const SQL_TIMESTAMP_STRUCT &, TimeStampParam, T); SIMPLEBINDER(time_t, TimeStampParam, T); +void +ODBC::Command::bindNull(unsigned int i) +{ + makeParam(i)->bind(); +} + void ODBC::GlibUstringParam::operator=(Glib::ustring const & d) { -- cgit v1.2.3