1
1
<?php
2
2
3
+ declare (strict_types=1 );
4
+
3
5
namespace Doctrine \DBAL \Platforms \Keywords ;
4
6
5
7
use Doctrine \Deprecations \Deprecation ;
6
8
9
+ use function array_diff ;
7
10
use function array_merge ;
8
11
9
12
/**
@@ -30,12 +33,44 @@ public function getName()
30
33
/**
31
34
* {@inheritDoc}
32
35
*
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
34
37
*/
35
38
protected function getKeywords ()
36
39
{
37
40
$ keywords = parent ::getKeywords ();
38
41
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
39
74
$ keywords = array_merge ($ keywords , [
40
75
'AUTO ' ,
41
76
'BERNOULLI ' ,
0 commit comments