Failed Conditions
Push — master ( 0c7452...fcc00d )
by Marco
14:49 queued 14:40
created

PostgreSQL100Platform::getReservedKeywordsClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\DBAL\Platforms;
6
7
use Doctrine\DBAL\Platforms\Keywords\PostgreSQL100Keywords;
8
9
/**
10
 * Provides the behavior, features and SQL dialect of the PostgreSQL 10.0 database platform.
11
 */
12
class PostgreSQL100Platform extends PostgreSQL94Platform
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17 51
    protected function getReservedKeywordsClass() : string
18
    {
19 51
        return PostgreSQL100Keywords::class;
20
    }
21
22 1
    public function getListSequencesSQL($database) : string
23
    {
24
        return "SELECT sequence_name AS relname,
25
                       sequence_schema AS schemaname,
26
                       minimum_value AS min_value, 
27
                       increment AS increment_by
28
                FROM   information_schema.sequences
29 1
                WHERE  sequence_catalog = " . $this->quoteStringLiteral($database) . "
30
                AND    sequence_schema NOT LIKE 'pg\_%'
31
                AND    sequence_schema != 'information_schema'";
32
    }
33
}
34