[Bug 224393] Update to nextcoud 12.0.4 INVALID_HASH PostgreSqlSchemaManager.php

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Dec 17 00:53:10 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224393

            Bug ID: 224393
           Summary: Update to nextcoud 12.0.4 INVALID_HASH
                    PostgreSqlSchemaManager.php
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: peo at bsdlabs.com

Relates to Bug 224142, looks like the checksum was mot recalculated after the
change

  - INVALID_HASH:
    -
3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php:
      - expected:
9c9a80a71990dc784914780024b780189f7f68d38ee98f49439d5db9adce290d1105a17fb8a670090fa92b65760775fb942bc3060b368bf16b82702fa2d5f9f2
      - current:
5839a5ca8dacedb7eb8ab40e9025614a042741557346ddd228f3e0aa38a6bb352226c59b3b429057651ad6c58ba20f69a4049178c39aedf7a9a7c462faa042d4


--- PostgreSqlSchemaManager.php 2017-12-17 01:40:25.826548000 +0100
+++
./nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php
    2017-12-04 08:19:01.000000000 +0100
@@ -289,16 +289,7 @@
             $sequenceName = $sequence['relname'];
         }

-        $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));
+        $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']);
     }

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list