Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 640490
Collapse All | Expand All

(-)file_not_specified_in_diff (-2 / +11 lines)
Line  Link Here
0
-- a/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php 2017-11-05 15:37:27.538064270 +0100
0
++ b/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php 2017-11-05 15:38:54.014644323 +0100
Lines 289-295 Link Here
289
            $sequenceName = $sequence['relname'];
289
            $sequenceName = $sequence['relname'];
290
        }
290
        }
291
291
292
        $data = $this->_conn->fetchAll('SELECT min_value, increment_by FROM ' . $this->_platform->quoteIdentifier($sequenceName));
292
        $version = floatval($this->_conn->getWrappedConnection()->getServerVersion());
293
294
        if ($version >= 10) {
295
           $data = $this->_conn->fetchAll('SELECT min_value, increment_by FROM pg_sequences WHERE schemaname = \'public\' AND sequencename = '.$this->_conn->quote($sequenceName));
296
        }
297
        else
298
        {
299
            $data = $this->_conn->fetchAll('SELECT min_value, increment_by FROM ' . $this->_platform->quoteIdentifier($sequenceName));
300
        }
301
//        $data = $this->_conn->fetchAll('SELECT min_value, increment_by FROM ' . $this->_platform->quoteIdentifier($sequenceName));
293
302
294
        return new Sequence($sequenceName, $data[0]['increment_by'], $data[0]['min_value']);
303
        return new Sequence($sequenceName, $data[0]['increment_by'], $data[0]['min_value']);
295
    }
304
    }

Return to bug 640490