diff options
author | randomdan <randomdan@localhost> | 2008-11-13 14:45:11 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2008-11-13 14:45:11 +0000 |
commit | efd292508070835781a0d92448a3661279dfd307 (patch) | |
tree | 0d2592bacfdb0cd159ebc5780dd69f86cc893af0 /libodbcpp/column.cpp | |
parent | Fix the C++ template errors (diff) | |
download | libdbpp-odbc-efd292508070835781a0d92448a3661279dfd307.tar.bz2 libdbpp-odbc-efd292508070835781a0d92448a3661279dfd307.tar.xz libdbpp-odbc-efd292508070835781a0d92448a3661279dfd307.zip |
Lots of little fixes
Diffstat (limited to 'libodbcpp/column.cpp')
-rw-r--r-- | libodbcpp/column.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libodbcpp/column.cpp b/libodbcpp/column.cpp index 212b792..58f9b31 100644 --- a/libodbcpp/column.cpp +++ b/libodbcpp/column.cpp @@ -2,7 +2,7 @@ #include "error.h" #include "timetypepair.h" -ODBC::Column::Column(String n, u_int i) : +ODBC::Column::Column(String n, unsigned int i) : colNo(i), name(n), fresh(false) @@ -24,12 +24,12 @@ ODBC_DEFAULT_COLUMN_CAST(SQLINTEGER, long long); ODBC_DEFAULT_COLUMN_CAST(SQLINTEGER, int); ODBC_DEFAULT_COLUMN_CAST(SQLDOUBLE, double); ODBC_DEFAULT_COLUMN_CAST(SQLDOUBLE, float); -ODBC_DEFAULT_COLUMN_CAST(SQLCHAR*, const unsigned char * const); +ODBC_DEFAULT_COLUMN_CAST(SQLCHAR*, const unsigned char *); ODBC_DEFAULT_COLUMN_CAST(SQLCHAR*, String); ODBC::Column::operator std::string() const { return (const char*)((dynamic_cast<const _Column<SQLCHAR*>& >(*this)).value); } -ODBC::Column::operator const char * const () const { +ODBC::Column::operator const char * () const { return (const char*)((dynamic_cast<const _Column<SQLCHAR*>& >(*this)).value); } ODBC::Column::operator const struct tm & () const { |