summaryrefslogtreecommitdiff
path: root/debian/patches/17_add_postgresql_8.3_support.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/17_add_postgresql_8.3_support.diff')
-rw-r--r--debian/patches/17_add_postgresql_8.3_support.diff46
1 files changed, 46 insertions, 0 deletions
diff --git a/debian/patches/17_add_postgresql_8.3_support.diff b/debian/patches/17_add_postgresql_8.3_support.diff
new file mode 100644
index 0000000..7edc391
--- /dev/null
+++ b/debian/patches/17_add_postgresql_8.3_support.diff
@@ -0,0 +1,46 @@
+Enable PostgreSQL 8.3 support.
+
+--- a/src/sql/drivers/psql/qsql_psql.cpp
++++ b/src/sql/drivers/psql/qsql_psql.cpp
+@@ -633,9 +633,12 @@ static QPSQLDriver::Protocol getPSQLVers
+ serverVersion = QPSQLDriver::Version81;
+ break;
+ case 2:
+- default:
+ serverVersion = QPSQLDriver::Version82;
+ break;
++ case 3:
++ default:
++ serverVersion = QPSQLDriver::Version83;
++ break;
+ }
+ break;
+ default:
+@@ -916,6 +919,7 @@ QSqlIndex QPSQLDriver::primaryIndex(cons
+ case QPSQLDriver::Version8:
+ case QPSQLDriver::Version81:
+ case QPSQLDriver::Version82:
++ case QPSQLDriver::Version83:
+ stmt = QLatin1String("SELECT pg_attribute.attname, pg_attribute.atttypid::int, "
+ "pg_class.relname "
+ "FROM pg_attribute, pg_class "
+@@ -989,6 +993,7 @@ QSqlRecord QPSQLDriver::record(const QSt
+ case QPSQLDriver::Version8:
+ case QPSQLDriver::Version81:
+ case QPSQLDriver::Version82:
++ case QPSQLDriver::Version83:
+ stmt = QLatin1String("select pg_attribute.attname, pg_attribute.atttypid::int, "
+ "pg_attribute.attnotnull, pg_attribute.attlen, pg_attribute.atttypmod, "
+ "pg_attrdef.adsrc "
+--- a/src/sql/drivers/psql/qsql_psql.h
++++ b/src/sql/drivers/psql/qsql_psql.h
+@@ -100,7 +100,8 @@ public:
+ Version74 = 10,
+ Version8 = 11,
+ Version81 = 12,
+- Version82 = 13
++ Version82 = 13,
++ Version83 = 14
+ };
+
+ explicit QPSQLDriver(QObject *parent=0);