aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud/postgresql10.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/nextcloud/postgresql10.patch')
-rw-r--r--community/nextcloud/postgresql10.patch20
1 files changed, 0 insertions, 20 deletions
diff --git a/community/nextcloud/postgresql10.patch b/community/nextcloud/postgresql10.patch
deleted file mode 100644
index 7b1a6f40be4..00000000000
--- a/community/nextcloud/postgresql10.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php.orig 2017-11-05 15:37:27.538064270 +0100
-+++ b/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php 2017-11-05 15:38:54.014644323 +0100
-@@ -289,7 +289,16 @@
- $sequenceName = $sequence['relname'];
- }
-
-- $data = $this->_conn->fetchAll('SELECT min_value, increment_by FROM ' . $this->_platform->quoteIdentifier($sequenceName));
-+ $version = floatval($this->_conn->getWrappedConnection()->getServerVersion());
-+
-+ if ($version >= 10) {
-+ $data = $this->_conn->fetchAll('SELECT min_value, increment_by FROM pg_sequences WHERE schemaname = \'public\' AND sequencename = '.$this->_conn->quote($sequenceName));
-+ }
-+ else
-+ {
-+ $data = $this->_conn->fetchAll('SELECT min_value, increment_by FROM ' . $this->_platform->quoteIdentifier($sequenceName));
-+ }
-+// $data = $this->_conn->fetchAll('SELECT min_value, increment_by FROM ' . $this->_platform->quoteIdentifier($sequenceName));
-
- return new Sequence($sequenceName, $data[0]['increment_by'], $data[0]['min_value']);
- }