diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-05-02 21:03:02 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-05-02 21:03:02 +0100 |
commit | ab0c36c30c96a00742e525f288d7a09354d5fb49 (patch) | |
tree | fbef3c0fc57ddcf6088766e3d3763e35f56f3372 /libodbcpp/param.h | |
parent | Add support for RDBMS boolean/bit types (diff) | |
download | libdbpp-odbc-ab0c36c30c96a00742e525f288d7a09354d5fb49.tar.bz2 libdbpp-odbc-ab0c36c30c96a00742e525f288d7a09354d5fb49.tar.xz libdbpp-odbc-ab0c36c30c96a00742e525f288d7a09354d5fb49.zip |
Fix parameter specification on interval types
Diffstat (limited to 'libodbcpp/param.h')
-rw-r--r-- | libodbcpp/param.h | 4 |
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); |