diff options
author | randomdan <randomdan@localhost> | 2011-01-30 20:20:18 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-01-30 20:20:18 +0000 |
commit | f725edb356800402b8f9ee48c3ac9691dbbebbb6 (patch) | |
tree | d6d43e64529b37057cd134d1f1944900e1124958 /libodbcpp/column.h | |
parent | Centralise the ICE splicer (diff) | |
download | libdbpp-odbc-f725edb356800402b8f9ee48c3ac9691dbbebbb6.tar.bz2 libdbpp-odbc-f725edb356800402b8f9ee48c3ac9691dbbebbb6.tar.xz libdbpp-odbc-f725edb356800402b8f9ee48c3ac9691dbbebbb6.zip |
Address type inconsistency issue with size functions
Diffstat (limited to 'libodbcpp/column.h')
-rw-r--r-- | libodbcpp/column.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libodbcpp/column.h b/libodbcpp/column.h index 472f806..1ea4091 100644 --- a/libodbcpp/column.h +++ b/libodbcpp/column.h @@ -57,7 +57,7 @@ namespace ODBC { } virtual SQLSMALLINT ctype() const { return SQL_C_CHAR; } virtual SQLSMALLINT stype() const { return SQL_CHAR; } - virtual SQLINTEGER size() const { return data.size(); } + virtual SQLULEN size() const { return data.size(); } virtual SQLINTEGER dp() const { return 0; } virtual const void * dataAddress() const { return &data.front(); } virtual void * rwDataAddress() { return &data.front(); } @@ -78,7 +78,7 @@ namespace ODBC { SignedIntegerColumn(SelectCommand * sc, const Glib::ustring & n, unsigned int i) : Column(sc, n, i) { } virtual SQLSMALLINT ctype() const { return SignedIntegerParam::ctype(); } - virtual SQLLEN size() const { return SignedIntegerParam::size(); } + virtual SQLULEN size() const { return SignedIntegerParam::size(); } virtual void * rwDataAddress() { return &data; } virtual const Glib::ustring & compose() const; virtual Glib::ustring compose(const Glib::ustring & fmt) const; @@ -106,7 +106,7 @@ namespace ODBC { FloatingPointColumn(SelectCommand * sc, const Glib::ustring & n, unsigned int i) : Column(sc, n, i) { } virtual SQLSMALLINT ctype() const { return FloatingPointParam::ctype(); } - virtual SQLLEN size() const { return FloatingPointParam::size(); } + virtual SQLULEN size() const { return FloatingPointParam::size(); } virtual void * rwDataAddress() { return &data; } virtual const Glib::ustring & compose() const; virtual Glib::ustring compose(const Glib::ustring & fmt) const; @@ -121,7 +121,7 @@ namespace ODBC { TimeStampColumn(SelectCommand * sc, const Glib::ustring & n, unsigned int i) : Column(sc, n, i) { } virtual SQLSMALLINT ctype() const { return TimeStampParam::ctype(); } - virtual SQLLEN size() const { return TimeStampParam::size(); } + virtual SQLULEN size() const { return TimeStampParam::size(); } virtual void * rwDataAddress() { return &data; } virtual const Glib::ustring & compose() const; virtual Glib::ustring compose(const Glib::ustring & fmt) const; |