summaryrefslogtreecommitdiff
path: root/libodbcpp/column.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-05-02 12:44:03 +0000
committerrandomdan <randomdan@localhost>2010-05-02 12:44:03 +0000
commitc3da11f658e572d19ad00d6c5e6ff8ecb884bf66 (patch)
treec7035bcc0741ce7472ec6dbb56b4dc93913ee5af /libodbcpp/column.h
parentAdd a writeToBuf function and use it (diff)
downloadlibdbpp-odbc-c3da11f658e572d19ad00d6c5e6ff8ecb884bf66.tar.bz2
libdbpp-odbc-c3da11f658e572d19ad00d6c5e6ff8ecb884bf66.tar.xz
libdbpp-odbc-c3da11f658e572d19ad00d6c5e6ff8ecb884bf66.zip
Ditch crazy timetypepair and just use an ODBC struct
Diffstat (limited to 'libodbcpp/column.h')
-rw-r--r--libodbcpp/column.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libodbcpp/column.h b/libodbcpp/column.h
index 616ca2d..992a958 100644
--- a/libodbcpp/column.h
+++ b/libodbcpp/column.h
@@ -20,7 +20,7 @@ namespace ODBC {
operator const char * () const;
operator std::string () const;
operator String () const;
- operator const struct tm & () const;
+ operator struct tm () const;
virtual void rebind(Command *, unsigned int col) const = 0;
virtual int writeToBuf(char ** buf) const = 0;
virtual int writeToBuf(char ** buf, const char * fmt) const = 0;
@@ -42,5 +42,8 @@ namespace ODBC {
};
}
+void operator << (SQL_TIMESTAMP_STRUCT & target, const struct tm &);
+void operator << (struct tm &, const SQL_TIMESTAMP_STRUCT & target);
+
#endif