summaryrefslogtreecommitdiff
path: root/libodbcpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-05-02 21:03:02 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-05-02 21:03:02 +0100
commitab0c36c30c96a00742e525f288d7a09354d5fb49 (patch)
treefbef3c0fc57ddcf6088766e3d3763e35f56f3372 /libodbcpp
parentAdd support for RDBMS boolean/bit types (diff)
downloadlibdbpp-odbc-ab0c36c30c96a00742e525f288d7a09354d5fb49.tar.bz2
libdbpp-odbc-ab0c36c30c96a00742e525f288d7a09354d5fb49.tar.xz
libdbpp-odbc-ab0c36c30c96a00742e525f288d7a09354d5fb49.zip
Fix parameter specification on interval types
Diffstat (limited to 'libodbcpp')
-rw-r--r--libodbcpp/param.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libodbcpp/param.h b/libodbcpp/param.h
index 53ace67..d695391 100644
--- a/libodbcpp/param.h
+++ b/libodbcpp/param.h
@@ -98,8 +98,8 @@ namespace ODBC {
IntervalParam() : Param() { }
IntervalParam(Command * c, unsigned int i) : Param(c, i) { bindLen = size(); }
virtual SQLSMALLINT ctype() const { return SQL_C_INTERVAL_DAY_TO_SECOND; }
- virtual SQLSMALLINT stype() const { return SQL_INTERVAL; }
- virtual SQLULEN size() const { return sizeof(SQL_INTERVAL); }
+ virtual SQLSMALLINT stype() const { return SQL_INTERVAL_DAY_TO_SECOND; }
+ virtual SQLULEN size() const { return sizeof(SQL_INTERVAL_STRUCT); }
virtual SQLINTEGER dp() const { return boost::posix_time::time_res_traits::num_fractional_digits(); }
virtual const void * dataAddress() const { return &data; }
void operator=(const boost::posix_time::time_duration & d);