From bc96d68331097dd4736cfbb887aa395c9f898387 Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 20 Dec 2012 18:44:17 +0000 Subject: Default to string binding instead of throwing an error --- libpqpp/column.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libpqpp') diff --git a/libpqpp/column.cpp b/libpqpp/column.cpp index b931d08..90858c8 100644 --- a/libpqpp/column.cpp +++ b/libpqpp/column.cpp @@ -61,8 +61,7 @@ PQ::Column::apply(DB::HandleField & h) const h.timestamp(tm); break; default: - fprintf(stderr, "Unknown Oid %d\n", oid); - throw Error("Unknown Oid"); + h.string(PQgetvalue(sc->execRes, sc->tuple, colNo), PQgetlength(sc->execRes, sc->tuple, colNo)); } } -- cgit v1.2.3