diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2011-04-10 17:53:28 +0200 |
---|---|---|
committer | Heinz Wiesinger <pprkut@slackbuilds.org> | 2011-04-12 22:59:04 +0200 |
commit | 0c1bd470ac7103871a88f0fac957ec217403d3cf (patch) | |
tree | 84f821bd0c5bd56c5b03dfa8a895e95765afcfb4 /libraries/libqsqlpsql/qsql_psql_cpp.patch | |
parent | 24cb543d48febad8475ba741144a96c9dea699a3 (diff) | |
download | slackbuilds-0c1bd470ac7103871a88f0fac957ec217403d3cf.tar.gz |
libraries/libqsqlpsql: Updated for version 4.7.0_7abde40
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'libraries/libqsqlpsql/qsql_psql_cpp.patch')
-rw-r--r-- | libraries/libqsqlpsql/qsql_psql_cpp.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/libraries/libqsqlpsql/qsql_psql_cpp.patch b/libraries/libqsqlpsql/qsql_psql_cpp.patch new file mode 100644 index 0000000000..6d4ee2dd7c --- /dev/null +++ b/libraries/libqsqlpsql/qsql_psql_cpp.patch @@ -0,0 +1,46 @@ +--- qt-everywhere-opensource-src-4.7.0/src/sql/drivers/psql/qsql_psql.cpp 2010-09-10 11:05:25.000000000 +0200 ++++ qsql_psql.cpp 2010-11-03 12:37:55.966977333 +0100 +@@ -661,6 +661,17 @@ + break; + } + break; ++ case 9: ++ switch (vMin) { ++ case 0: ++ serverVersion = QPSQLDriver::Version9; ++ break; ++ default: ++ serverVersion = QPSQLDriver::Version9; ++ break; ++ } ++ break; ++ + default: + break; + } +@@ -852,7 +863,8 @@ + // This hack can dissapear once there is an API to query this sort of information. + if (d->pro == QPSQLDriver::Version8 || + d->pro == QPSQLDriver::Version81 || +- d->pro == QPSQLDriver::Version82) { ++ d->pro == QPSQLDriver::Version82 || ++ d->pro == QPSQLDriver::Version9) { + transaction_failed = qstrcmp(PQcmdStatus(res), "ROLLBACK") == 0; + } + +@@ -963,6 +975,7 @@ + case QPSQLDriver::Version8: + case QPSQLDriver::Version81: + case QPSQLDriver::Version82: ++ case QPSQLDriver::Version9: + stmt = QLatin1String("SELECT pg_attribute.attname, pg_attribute.atttypid::int, " + "pg_class.relname " + "FROM pg_attribute, pg_class " +@@ -1046,6 +1059,7 @@ + case QPSQLDriver::Version8: + case QPSQLDriver::Version81: + case QPSQLDriver::Version82: ++ case QPSQLDriver::Version9: + stmt = QLatin1String("select pg_attribute.attname, pg_attribute.atttypid::int, " + "pg_attribute.attnotnull, pg_attribute.attlen, pg_attribute.atttypmod, " + "pg_attrdef.adsrc " |