diff options
author | Slávek Banko <[email protected]> | 2018-07-26 18:12:33 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2018-07-26 18:12:54 +0200 |
commit | 13b67c9bf79a68cd654e94ff24a0b9274681ace6 (patch) | |
tree | 48efc8a447491f2eaf9ccac7b306bc0ef224bdc2 /kexi/kexidb/drivers/pqxx/pqxxcursor.cpp | |
parent | ad5d5e83d748c73885eb9016137b2a13f1ec2a36 (diff) | |
download | koffice-13b67c9bf79a68cd654e94ff24a0b9274681ace6.tar.gz koffice-13b67c9bf79a68cd654e94ff24a0b9274681ace6.zip |
Fix FTBFS with libpqxx >= 6.x
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit c17464869b6c5f7fbbf5a072ea470fbfff2ae26b)
Diffstat (limited to 'kexi/kexidb/drivers/pqxx/pqxxcursor.cpp')
-rw-r--r-- | kexi/kexidb/drivers/pqxx/pqxxcursor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp b/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp index 746a383a..048d6685 100644 --- a/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp +++ b/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp @@ -34,7 +34,7 @@ using namespace KexiDB; unsigned int pqxxSqlCursor_trans_num=0; //!< debug helper -static TQByteArray pgsqlByteaToByteArray(const pqxx::result::field& r) +static TQByteArray pgsqlByteaToByteArray(const PQXX_FIELD_CLASS& r) { return KexiDB::pgsqlByteaToByteArray(r.c_str(), r.size()); } @@ -243,7 +243,7 @@ TQVariant pqxxSqlCursor::pValue(uint pos)const } else if (f->typeGroup() == Field::BLOBGroup) { -// pqxx::result::field r = (*m_res)[at()][pos]; +// PQXX_FIELD_CLASS r = (*m_res)[at()][pos]; // kdDebug() << r.name() << ", " << r.c_str() << ", " << r.type() << ", " << r.size() << endl; return ::pgsqlByteaToByteArray((*m_res)[at()][pos]); } |