PostgreSQL94Keywords.php 630 Bytes
Newer Older
1 2 3 4
<?php

namespace Doctrine\DBAL\Platforms\Keywords;

5 6 7
use function array_diff;
use function array_merge;

8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
/**
 * PostgreSQL 9.4 reserved keywords list.
 */
class PostgreSQL94Keywords extends PostgreSQL92Keywords
{
    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'PostgreSQL94';
    }

    /**
     * {@inheritdoc}
     *
     * @link http://www.postgresql.org/docs/9.4/static/sql-keywords-appendix.html
     */
    protected function getKeywords()
    {
28
        $parentKeywords = array_diff(parent::getKeywords(), ['OVER']);
29

30
        return array_merge($parentKeywords, ['LATERAL']);
31 32
    }
}