Skip to content

Commit 6e7dafd

Browse files
Merge pull request #576 from niconoe-/feature/include-mysql-9.0-and-mariadb-11.5
Add missing MySQL 9.0 and MariaDB 11.5 contexts.
2 parents a4bdc3a + 5a8080e commit 6e7dafd

File tree

9 files changed

+4288
-1
lines changed

9 files changed

+4288
-1
lines changed

psalm-baseline.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,9 @@
629629
<file src="src/Contexts/ContextMariaDb110400.php">
630630
<PropertyTypeCoercion occurrences="1"/>
631631
</file>
632+
<file src="src/Contexts/ContextMariaDb110500.php">
633+
<PropertyTypeCoercion occurrences="1"/>
634+
</file>
632635
<file src="src/Contexts/ContextMySql50000.php">
633636
<PropertyTypeCoercion occurrences="1"/>
634637
</file>
@@ -659,6 +662,9 @@
659662
<file src="src/Contexts/ContextMySql80400.php">
660663
<PropertyTypeCoercion occurrences="1"/>
661664
</file>
665+
<file src="src/Contexts/ContextMySql90000.php">
666+
<PropertyTypeCoercion occurrences="1"/>
667+
</file>
662668
<file src="src/Lexer.php">
663669
<LoopInvalidation occurrences="3">
664670
<code>$this-&gt;last</code>

src/Contexts/ContextMariaDb110500.php

Lines changed: 1096 additions & 0 deletions
Large diffs are not rendered by default.

src/Contexts/ContextMySql90000.php

Lines changed: 1090 additions & 0 deletions
Large diffs are not rendered by default.

src/Tools/ContextGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class ContextGenerator
6565
'MySql80200' => 'https://dev.mysql.com/doc/refman/8.2/en/keywords.html',
6666
'MySql80300' => 'https://dev.mysql.com/doc/refman/8.3/en/keywords.html',
6767
'MySql80400' => 'https://dev.mysql.com/doc/refman/8.4/en/keywords.html',
68+
'MySql90000' => 'https://dev.mysql.com/doc/refman/9.0/en/keywords.html',
6869
'MariaDb100000' => 'https://mariadb.com/kb/en/reserved-words/',
6970
'MariaDb100100' => 'https://mariadb.com/kb/en/reserved-words/',
7071
'MariaDb100200' => 'https://mariadb.com/kb/en/reserved-words/',
@@ -82,6 +83,7 @@ class ContextGenerator
8283
'MariaDb110200' => 'https://mariadb.com/kb/en/reserved-words/',
8384
'MariaDb110300' => 'https://mariadb.com/kb/en/reserved-words/',
8485
'MariaDb110400' => 'https://mariadb.com/kb/en/reserved-words/',
86+
'MariaDb110500' => 'https://mariadb.com/kb/en/reserved-words/',
8587
];
8688

8789
/**

tests/Lexer/ContextTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static function contextLoadingProvider(): array
6565
'MySql50700',
6666
],
6767
'MySQL fallback' => [
68-
'MySql99999',
68+
'MySql9897969594',
6969
'MySql50700',
7070
],
7171
'MariaDB match' => [
@@ -114,6 +114,8 @@ public static function contextNamesProvider(): array
114114
['MySql80100'],
115115
['MySql80200'],
116116
['MySql80300'],
117+
['MySql80400'],
118+
['MySql90000'],
117119
['MariaDb100000'],
118120
['MariaDb100100'],
119121
['MariaDb100200'],
@@ -131,6 +133,7 @@ public static function contextNamesProvider(): array
131133
['MariaDb110200'],
132134
['MariaDb110300'],
133135
['MariaDb110400'],
136+
['MariaDb110500'],
134137
];
135138
}
136139

@@ -161,6 +164,8 @@ public function contextClassesProvider(): array
161164
[Contexts\ContextMySql80100::class],
162165
[Contexts\ContextMySql80200::class],
163166
[Contexts\ContextMySql80300::class],
167+
[Contexts\ContextMySql80400::class],
168+
[Contexts\ContextMySql90000::class],
164169
[Contexts\ContextMariaDb100000::class],
165170
[Contexts\ContextMariaDb100100::class],
166171
[Contexts\ContextMariaDb100200::class],
@@ -178,6 +183,7 @@ public function contextClassesProvider(): array
178183
[Contexts\ContextMariaDb110200::class],
179184
[Contexts\ContextMariaDb110300::class],
180185
[Contexts\ContextMariaDb110400::class],
186+
[Contexts\ContextMariaDb110500::class],
181187
];
182188
}
183189

0 commit comments

Comments
 (0)