From c5f116af8c044883edf44311173a0c6c017b7d59 Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 17 Feb 2011 20:42:53 +0000 Subject: Add check function for when a connection is finished with, but you don't want to close it Use prepared statements only for modifications, use fetch instead for selects (doesn't load an entire record set) Support varchar oid --- libpqpp/column.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libpqpp/column.cpp') diff --git a/libpqpp/column.cpp b/libpqpp/column.cpp index 1bd212a..b931d08 100644 --- a/libpqpp/column.cpp +++ b/libpqpp/column.cpp @@ -26,6 +26,7 @@ PQ::Column::apply(DB::HandleField & h) const struct tm tm; switch (oid) { case 18: //CHAROID: + case 1043: //VARCHAROID: case 25: //TEXTOID: case 142: //XMLOID: h.string(PQgetvalue(sc->execRes, sc->tuple, colNo), PQgetlength(sc->execRes, sc->tuple, colNo)); -- cgit v1.2.3