diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-03-30 11:43:32 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-03-30 11:43:32 +0000 |
commit | 112a648fea61335c2e01f00a1aad584d4fb0d0c8 (patch) | |
tree | ae17eea9d81d89c7c53a5f27a3471f19b77ae006 /libpqpp/pq-column.cpp | |
parent | More clang-tidy fixes (diff) | |
download | libdbpp-postgresql-112a648fea61335c2e01f00a1aad584d4fb0d0c8.tar.bz2 libdbpp-postgresql-112a648fea61335c2e01f00a1aad584d4fb0d0c8.tar.xz libdbpp-postgresql-112a648fea61335c2e01f00a1aad584d4fb0d0c8.zip |
Tidy fixes for latest clanglibdbpp-postgresql-1.4.1
Diffstat (limited to 'libpqpp/pq-column.cpp')
-rw-r--r-- | libpqpp/pq-column.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libpqpp/pq-column.cpp b/libpqpp/pq-column.cpp index e743e60..4fac1ac 100644 --- a/libpqpp/pq-column.cpp +++ b/libpqpp/pq-column.cpp @@ -5,9 +5,9 @@ #include <boost/date_time/posix_time/posix_time.hpp> PQ::Column::Column(const SelectBase * s, unsigned int i) : - DB::Column(PQfname(s->execRes, i), i), + DB::Column(PQfname(s->execRes, (int)i), i), sc(s), - oid(PQftype(sc->execRes, colNo)), + oid(PQftype(sc->execRes, (int)colNo)), buf(nullptr) { } @@ -22,19 +22,19 @@ PQ::Column::~Column() bool PQ::Column::isNull() const { - return PQgetisnull(sc->execRes, sc->tuple, colNo); + return PQgetisnull(sc->execRes, (int)sc->tuple, (int)colNo); } std::size_t PQ::Column::length() const { - return PQgetlength(sc->execRes, sc->tuple, colNo); + return PQgetlength(sc->execRes, (int)sc->tuple, (int)colNo); } const char * PQ::Column::value() const { - return PQgetvalue(sc->execRes, sc->tuple, colNo); + return PQgetvalue(sc->execRes, (int)sc->tuple, (int)colNo); } void |