diff options
Diffstat (limited to 'libodbcpp/column.h')
-rw-r--r-- | libodbcpp/column.h | 5 |
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 |