HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: /var/www/javago-portal-updates/vendor/doctrine/dbal/src/Platforms/Keywords/MySQL84Keywords.php
<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Platforms\Keywords;

use Doctrine\Deprecations\Deprecation;

use function array_diff;
use function array_merge;

/**
 * MySQL 8.4 reserved keywords list.
 */
class MySQL84Keywords extends MySQL80Keywords
{
    /**
     * {@inheritDoc}
     *
     * @deprecated
     */
    public function getName()
    {
        Deprecation::triggerIfCalledFromOutside(
            'doctrine/dbal',
            'https://github.com/doctrine/dbal/pull/5433',
            'MySQL84Keywords::getName() is deprecated.',
        );

        return 'MySQL84';
    }

    /**
     * {@inheritDoc}
     *
     * @link https://dev.mysql.com/doc/refman/8.4/en/keywords.html
     */
    protected function getKeywords()
    {
        $keywords = parent::getKeywords();

        // Removed Keywords and Reserved Words
        $keywords = array_diff($keywords, [
            'MASTER_BIND',
            'MASTER_SSL_VERIFY_SERVER_CERT',
        ]);

        // New Keywords and Reserved Words
        $keywords = array_merge($keywords, [
            'AUTO',
            'BERNOULLI',
            'GTIDS',
            'LOG',
            'MANUAL',
            'PARALLEL',
            'PARSE_TREE',
            'QUALIFY',
            'S3',
            'TABLESAMPLE',
        ]);

        return $keywords;
    }
}