summaryrefslogtreecommitdiffstats
path: root/kexi/kexidb/drivers/pqxx/pqxxcursor.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-07-26 18:12:33 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-07-26 18:12:54 +0200
commit13b67c9bf79a68cd654e94ff24a0b9274681ace6 (patch)
tree48efc8a447491f2eaf9ccac7b306bc0ef224bdc2 /kexi/kexidb/drivers/pqxx/pqxxcursor.h
parentad5d5e83d748c73885eb9016137b2a13f1ec2a36 (diff)
downloadkoffice-13b67c9bf79a68cd654e94ff24a0b9274681ace6.tar.gz
koffice-13b67c9bf79a68cd654e94ff24a0b9274681ace6.zip
Fix FTBFS with libpqxx >= 6.x
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit c17464869b6c5f7fbbf5a072ea470fbfff2ae26b)
Diffstat (limited to 'kexi/kexidb/drivers/pqxx/pqxxcursor.h')
-rw-r--r--kexi/kexidb/drivers/pqxx/pqxxcursor.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/kexi/kexidb/drivers/pqxx/pqxxcursor.h b/kexi/kexidb/drivers/pqxx/pqxxcursor.h
index 0a0fb2d5..8304ea2d 100644
--- a/kexi/kexidb/drivers/pqxx/pqxxcursor.h
+++ b/kexi/kexidb/drivers/pqxx/pqxxcursor.h
@@ -20,6 +20,8 @@
#ifndef KEXIDB_CURSOR_PQXX_H
#define KEXIDB_CURSOR_PQXX_H
+#include "config.h"
+
#include <kexidb/cursor.h>
#include <kexidb/connection.h>
#include <kexidb/utils.h>
@@ -74,7 +76,7 @@ private:
friend class pqxxSqlConnection;
};
-inline TQVariant pgsqlCStrToVariant(const pqxx::result::field& r)
+inline TQVariant pgsqlCStrToVariant(const PQXX_FIELD_CLASS& r)
{
switch(r.type())
{