diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-05-02 18:41:53 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-05-02 18:41:53 +0100 |
commit | b0cf524f61e5d814fdac4018c3ff4946b9600702 (patch) | |
tree | daafd50182ad0e6cc5dd045d9c5635a74462eaff /libpqpp/column.cpp | |
parent | Centralize all the column reference storage logic (diff) | |
download | libdbpp-postgresql-b0cf524f61e5d814fdac4018c3ff4946b9600702.tar.bz2 libdbpp-postgresql-b0cf524f61e5d814fdac4018c3ff4946b9600702.tar.xz libdbpp-postgresql-b0cf524f61e5d814fdac4018c3ff4946b9600702.zip |
Add support for RDBMS boolean/bit types
Diffstat (limited to 'libpqpp/column.cpp')
-rw-r--r-- | libpqpp/column.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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: |