From c3da11f658e572d19ad00d6c5e6ff8ecb884bf66 Mon Sep 17 00:00:00 2001 From: randomdan Date: Sun, 2 May 2010 12:44:03 +0000 Subject: Ditch crazy timetypepair and just use an ODBC struct --- libodbcpp/column.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libodbcpp/column.h') 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 -- cgit v1.2.3