Skip to content

Commit e785875

Browse files
Merge pull request #628 from MauricioFauth/new-contexts
Add contexts for MySQL 9.2, MySQL 9.3 and MariaDB 12.1
2 parents 1b07404 + 276cb55 commit e785875

12 files changed

+6440
-0
lines changed

psalm-baseline.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,9 @@
644644
<file src="src/Contexts/ContextMariaDb120000.php">
645645
<PropertyTypeCoercion occurrences="1"/>
646646
</file>
647+
<file src="src/Contexts/ContextMariaDb120100.php">
648+
<PropertyTypeCoercion occurrences="1"/>
649+
</file>
647650
<file src="src/Contexts/ContextMySql50000.php">
648651
<PropertyTypeCoercion occurrences="1"/>
649652
</file>
@@ -680,6 +683,12 @@
680683
<file src="src/Contexts/ContextMySql90100.php">
681684
<PropertyTypeCoercion occurrences="1"/>
682685
</file>
686+
<file src="src/Contexts/ContextMySql90200.php">
687+
<PropertyTypeCoercion occurrences="1"/>
688+
</file>
689+
<file src="src/Contexts/ContextMySql90300.php">
690+
<PropertyTypeCoercion occurrences="1"/>
691+
</file>
683692
<file src="src/Lexer.php">
684693
<LoopInvalidation occurrences="3">
685694
<code>$this-&gt;last</code>

src/Contexts/ContextMariaDb120100.php

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

src/Contexts/ContextMySql90200.php

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

src/Contexts/ContextMySql90300.php

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

src/Tools/ContextGenerator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ class ContextGenerator
6767
'MySql80400' => 'https://dev.mysql.com/doc/refman/8.4/en/keywords.html',
6868
'MySql90000' => 'https://dev.mysql.com/doc/refman/9.0/en/keywords.html',
6969
'MySql90100' => 'https://dev.mysql.com/doc/refman/9.1/en/keywords.html',
70+
'MySql90200' => 'https://dev.mysql.com/doc/refman/9.2/en/keywords.html',
71+
'MySql90300' => 'https://dev.mysql.com/doc/refman/9.3/en/keywords.html',
7072
'MariaDb100000' => 'https://mariadb.com/kb/en/reserved-words/',
7173
'MariaDb100100' => 'https://mariadb.com/kb/en/reserved-words/',
7274
'MariaDb100200' => 'https://mariadb.com/kb/en/reserved-words/',
@@ -89,6 +91,7 @@ class ContextGenerator
8991
'MariaDb110700' => 'https://mariadb.com/kb/en/reserved-words/',
9092
'MariaDb110800' => 'https://mariadb.com/kb/en/reserved-words/',
9193
'MariaDb120000' => 'https://mariadb.com/kb/en/reserved-words/',
94+
'MariaDb120100' => 'https://mariadb.com/kb/en/reserved-words/',
9295
];
9396

9497
/**

tests/Lexer/ContextTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ public static function contextNamesProvider(): array
117117
['MySql80400'],
118118
['MySql90000'],
119119
['MySql90100'],
120+
['MySql90200'],
121+
['MySql90300'],
120122
['MariaDb100000'],
121123
['MariaDb100100'],
122124
['MariaDb100200'],
@@ -139,6 +141,7 @@ public static function contextNamesProvider(): array
139141
['MariaDb110700'],
140142
['MariaDb110800'],
141143
['MariaDb120000'],
144+
['MariaDb120100'],
142145
];
143146
}
144147

@@ -172,6 +175,8 @@ public static function contextClassesProvider(): array
172175
[Contexts\ContextMySql80400::class],
173176
[Contexts\ContextMySql90000::class],
174177
[Contexts\ContextMySql90100::class],
178+
[Contexts\ContextMySql90200::class],
179+
[Contexts\ContextMySql90300::class],
175180
[Contexts\ContextMariaDb100000::class],
176181
[Contexts\ContextMariaDb100100::class],
177182
[Contexts\ContextMariaDb100200::class],
@@ -194,6 +199,7 @@ public static function contextClassesProvider(): array
194199
[Contexts\ContextMariaDb110700::class],
195200
[Contexts\ContextMariaDb110800::class],
196201
[Contexts\ContextMariaDb120000::class],
202+
[Contexts\ContextMariaDb120100::class],
197203
];
198204
}
199205

0 commit comments

Comments
 (0)