summaryrefslogtreecommitdiff
path: root/libpqpp
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2012-12-20 18:44:17 +0000
committerrandomdan <randomdan@localhost>2012-12-20 18:44:17 +0000
commitbc96d68331097dd4736cfbb887aa395c9f898387 (patch)
treef1de1f0c24eabb2a2764653cbbec421866678b28 /libpqpp
parentMigrate all stuff to stricter compilations/links and C++0x builds (diff)
downloadlibdbpp-postgresql-bc96d68331097dd4736cfbb887aa395c9f898387.tar.bz2
libdbpp-postgresql-bc96d68331097dd4736cfbb887aa395c9f898387.tar.xz
libdbpp-postgresql-bc96d68331097dd4736cfbb887aa395c9f898387.zip
Default to string binding instead of throwing an error
Diffstat (limited to 'libpqpp')
-rw-r--r--libpqpp/column.cpp3
1 files changed, 1 insertions, 2 deletions
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));
}
}