Skip to content

Commit d1aaae4

Browse files
committed
Remove removed keywords from list
1 parent 9631339 commit d1aaae4

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

src/Platforms/Keywords/MySQL84Keywords.php

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Doctrine\DBAL\Platforms\Keywords;
46

57
use Doctrine\Deprecations\Deprecation;
68

9+
use function array_diff;
710
use function array_merge;
811

912
/**
@@ -30,12 +33,44 @@ public function getName()
3033
/**
3134
* {@inheritDoc}
3235
*
33-
* @link https://dev.mysql.com/doc/refman/8.4/en/keywords.html#keywords-new-in-current-series
36+
* @link https://dev.mysql.com/doc/refman/8.4/en/keywords.html
3437
*/
3538
protected function getKeywords()
3639
{
3740
$keywords = parent::getKeywords();
3841

42+
// Removed Keywords and Reserved Words
43+
$keywords = array_diff($keywords, [
44+
'GET_MASTER_PUBLIC_KEY',
45+
'MASTER_AUTO_POSITION',
46+
'MASTER_BIND',
47+
'MASTER_COMPRESSION_ALGORITHMS',
48+
'MASTER_CONNECT_RETRY',
49+
'MASTER_DELAY',
50+
'MASTER_HEARTBEAT_PERIOD',
51+
'MASTER_HOST',
52+
'MASTER_LOG_FILE',
53+
'MASTER_LOG_POS',
54+
'MASTER_PASSWORD',
55+
'MASTER_PORT',
56+
'MASTER_PUBLIC_KEY_PATH',
57+
'MASTER_RETRY_COUNT',
58+
'MASTER_SSL',
59+
'MASTER_SSL_CA',
60+
'MASTER_SSL_CAPATH',
61+
'MASTER_SSL_CERT',
62+
'MASTER_SSL_CIPHER',
63+
'MASTER_SSL_CRL',
64+
'MASTER_SSL_CRLPATH',
65+
'MASTER_SSL_KEY',
66+
'MASTER_SSL_VERIFY_SERVER_CERT',
67+
'MASTER_TLS_CIPHERSUITES',
68+
'MASTER_TLS_VERSION',
69+
'MASTER_USER',
70+
'MASTER_ZSTD_COMPRESSION_LEVEL',
71+
]);
72+
73+
// New Keywords and Reserved Words
3974
$keywords = array_merge($keywords, [
4075
'AUTO',
4176
'BERNOULLI',

0 commit comments

Comments
 (0)