summaryrefslogtreecommitdiffstats
path: root/kexi/kexidb/drivers/pqxx/pqxxcursor.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-07-26 18:12:33 +0200
committerSlávek Banko <[email protected]>2018-07-26 18:12:54 +0200
commit13b67c9bf79a68cd654e94ff24a0b9274681ace6 (patch)
tree48efc8a447491f2eaf9ccac7b306bc0ef224bdc2 /kexi/kexidb/drivers/pqxx/pqxxcursor.cpp
parentad5d5e83d748c73885eb9016137b2a13f1ec2a36 (diff)
downloadkoffice-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.cpp4
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]);
}