diff --git a/pgsql/Pgsql_Value.h b/pgsql/Pgsql_Value.h index 0e44db8..8f2f9cf 100644 --- a/pgsql/Pgsql_Value.h +++ b/pgsql/Pgsql_Value.h @@ -5,6 +5,7 @@ #include "Pgsql_oids.h" #include "ArrayParser.h" #include +#include #include #include @@ -132,6 +133,8 @@ namespace Pgsql { start = ++pos; // skip space and set new start to match } } + + inline Oid getOid() const { return m_typ; } private: const char *m_val; Oid m_typ; @@ -140,7 +143,8 @@ namespace Pgsql { template void operator<<(T &s, const Value &v) { - s = static_cast(v); + //s = static_cast(v); + s = v.operator T(); }