diff options
author | randomdan <randomdan@localhost> | 2012-12-20 18:44:17 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2012-12-20 18:44:17 +0000 |
commit | bc96d68331097dd4736cfbb887aa395c9f898387 (patch) | |
tree | f1de1f0c24eabb2a2764653cbbec421866678b28 /libpqpp | |
parent | Migrate all stuff to stricter compilations/links and C++0x builds (diff) | |
download | libdbpp-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.cpp | 3 |
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)); } } |