From fea1965942d2b48f4c0f6c50de3113cf02d6e33e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 2 May 2015 18:41:53 +0100 Subject: Add support for RDBMS boolean/bit types --- libpqpp/column.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpqpp/column.cpp') diff --git a/libpqpp/column.cpp b/libpqpp/column.cpp index 745fdd5..c43e4ab 100644 --- a/libpqpp/column.cpp +++ b/libpqpp/column.cpp @@ -32,7 +32,7 @@ PQ::Column::apply(DB::HandleField & h) const h.string(PQgetvalue(sc->execRes, sc->tuple, colNo), PQgetlength(sc->execRes, sc->tuple, colNo)); break; case 16: //BOOLOID: - h.integer(PQgetvalue(sc->execRes, sc->tuple, colNo)[0] == 't' ? 1 : 0); + h.boolean(PQgetvalue(sc->execRes, sc->tuple, colNo)[0] == 't' ? 1 : 0); break; case 21: //INT2OID: case 23: //INT4OID: -- cgit v1.2.3