summaryrefslogtreecommitdiff
path: root/libpqpp/column.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp/column.cpp')
-rw-r--r--libpqpp/column.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libpqpp/column.cpp b/libpqpp/column.cpp
index 1f7b932..745fdd5 100644
--- a/libpqpp/column.cpp
+++ b/libpqpp/column.cpp
@@ -61,8 +61,11 @@ PQ::Column::apply(DB::HandleField & h) const
}
break;
}
- case 702: //ABSTIMEOID:
case 1082: //DATEOID:
+ h.timestamp(boost::posix_time::ptime(
+ boost::gregorian::from_string(PQgetvalue(sc->execRes, sc->tuple, colNo))));
+ break;
+ case 702: //ABSTIMEOID:
case 1114: //TIMESTAMPOID:
case 1184: //TIMESTAMPTZOID:
h.timestamp(boost::posix_time::time_from_string(PQgetvalue(sc->execRes, sc->tuple, colNo)));