Skip to content

Commit 5d5de72

Browse files
committed
Update grammars
1 parent cd96021 commit 5d5de72

24 files changed

+42059
-39170
lines changed

src/sonar-sql-plugin/src/main/java/org/antlr/sql/dialects/mysql/MySqlLexer.interp

Lines changed: 31 additions & 4 deletions
Large diffs are not rendered by default.

src/sonar-sql-plugin/src/main/java/org/antlr/sql/dialects/mysql/MySqlLexer.java

Lines changed: 4274 additions & 4224 deletions
Large diffs are not rendered by default.

src/sonar-sql-plugin/src/main/java/org/antlr/sql/dialects/mysql/MySqlLexer.tokens

Lines changed: 1601 additions & 1583 deletions
Large diffs are not rendered by default.

src/sonar-sql-plugin/src/main/java/org/antlr/sql/dialects/mysql/MySqlParser.interp

Lines changed: 23 additions & 3 deletions
Large diffs are not rendered by default.

src/sonar-sql-plugin/src/main/java/org/antlr/sql/dialects/mysql/MySqlParser.java

Lines changed: 9730 additions & 8123 deletions
Large diffs are not rendered by default.

src/sonar-sql-plugin/src/main/java/org/antlr/sql/dialects/mysql/MySqlParser.tokens

Lines changed: 1601 additions & 1583 deletions
Large diffs are not rendered by default.

src/sonar-sql-plugin/src/main/java/org/antlr/sql/dialects/mysql/MySqlParserBaseListener.java

Lines changed: 86 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,18 @@ public class MySqlParserBaseListener implements MySqlParserListener {
707707
* <p>The default implementation does nothing.</p>
708708
*/
709709
@Override public void exitReferenceColumnConstraint(MySqlParser.ReferenceColumnConstraintContext ctx) { }
710+
/**
711+
* {@inheritDoc}
712+
*
713+
* <p>The default implementation does nothing.</p>
714+
*/
715+
@Override public void enterCollateColumnConstraint(MySqlParser.CollateColumnConstraintContext ctx) { }
716+
/**
717+
* {@inheritDoc}
718+
*
719+
* <p>The default implementation does nothing.</p>
720+
*/
721+
@Override public void exitCollateColumnConstraint(MySqlParser.CollateColumnConstraintContext ctx) { }
710722
/**
711723
* {@inheritDoc}
712724
*
@@ -1751,6 +1763,18 @@ public class MySqlParserBaseListener implements MySqlParserListener {
17511763
* <p>The default implementation does nothing.</p>
17521764
*/
17531765
@Override public void exitAlterByDropPrimaryKey(MySqlParser.AlterByDropPrimaryKeyContext ctx) { }
1766+
/**
1767+
* {@inheritDoc}
1768+
*
1769+
* <p>The default implementation does nothing.</p>
1770+
*/
1771+
@Override public void enterAlterByRenameIndex(MySqlParser.AlterByRenameIndexContext ctx) { }
1772+
/**
1773+
* {@inheritDoc}
1774+
*
1775+
* <p>The default implementation does nothing.</p>
1776+
*/
1777+
@Override public void exitAlterByRenameIndex(MySqlParser.AlterByRenameIndexContext ctx) { }
17541778
/**
17551779
* {@inheritDoc}
17561780
*
@@ -1996,13 +2020,13 @@ public class MySqlParserBaseListener implements MySqlParserListener {
19962020
*
19972021
* <p>The default implementation does nothing.</p>
19982022
*/
1999-
@Override public void enterAlterByAnalyzePartitiion(MySqlParser.AlterByAnalyzePartitiionContext ctx) { }
2023+
@Override public void enterAlterByAnalyzePartition(MySqlParser.AlterByAnalyzePartitionContext ctx) { }
20002024
/**
20012025
* {@inheritDoc}
20022026
*
20032027
* <p>The default implementation does nothing.</p>
20042028
*/
2005-
@Override public void exitAlterByAnalyzePartitiion(MySqlParser.AlterByAnalyzePartitiionContext ctx) { }
2029+
@Override public void exitAlterByAnalyzePartition(MySqlParser.AlterByAnalyzePartitionContext ctx) { }
20062030
/**
20072031
* {@inheritDoc}
20082032
*
@@ -2951,6 +2975,18 @@ public class MySqlParserBaseListener implements MySqlParserListener {
29512975
* <p>The default implementation does nothing.</p>
29522976
*/
29532977
@Override public void exitLimitClause(MySqlParser.LimitClauseContext ctx) { }
2978+
/**
2979+
* {@inheritDoc}
2980+
*
2981+
* <p>The default implementation does nothing.</p>
2982+
*/
2983+
@Override public void enterLimitClauseAtom(MySqlParser.LimitClauseAtomContext ctx) { }
2984+
/**
2985+
* {@inheritDoc}
2986+
*
2987+
* <p>The default implementation does nothing.</p>
2988+
*/
2989+
@Override public void exitLimitClauseAtom(MySqlParser.LimitClauseAtomContext ctx) { }
29542990
/**
29552991
* {@inheritDoc}
29562992
*
@@ -4523,6 +4559,18 @@ public class MySqlParserBaseListener implements MySqlParserListener {
45234559
* <p>The default implementation does nothing.</p>
45244560
*/
45254561
@Override public void exitSetAutocommit(MySqlParser.SetAutocommitContext ctx) { }
4562+
/**
4563+
* {@inheritDoc}
4564+
*
4565+
* <p>The default implementation does nothing.</p>
4566+
*/
4567+
@Override public void enterSetNewValueInsideTrigger(MySqlParser.SetNewValueInsideTriggerContext ctx) { }
4568+
/**
4569+
* {@inheritDoc}
4570+
*
4571+
* <p>The default implementation does nothing.</p>
4572+
*/
4573+
@Override public void exitSetNewValueInsideTrigger(MySqlParser.SetNewValueInsideTriggerContext ctx) { }
45264574
/**
45274575
* {@inheritDoc}
45284576
*
@@ -5327,6 +5375,30 @@ public class MySqlParserBaseListener implements MySqlParserListener {
53275375
* <p>The default implementation does nothing.</p>
53285376
*/
53295377
@Override public void exitStringDataType(MySqlParser.StringDataTypeContext ctx) { }
5378+
/**
5379+
* {@inheritDoc}
5380+
*
5381+
* <p>The default implementation does nothing.</p>
5382+
*/
5383+
@Override public void enterNationalStringDataType(MySqlParser.NationalStringDataTypeContext ctx) { }
5384+
/**
5385+
* {@inheritDoc}
5386+
*
5387+
* <p>The default implementation does nothing.</p>
5388+
*/
5389+
@Override public void exitNationalStringDataType(MySqlParser.NationalStringDataTypeContext ctx) { }
5390+
/**
5391+
* {@inheritDoc}
5392+
*
5393+
* <p>The default implementation does nothing.</p>
5394+
*/
5395+
@Override public void enterNationalVaryingStringDataType(MySqlParser.NationalVaryingStringDataTypeContext ctx) { }
5396+
/**
5397+
* {@inheritDoc}
5398+
*
5399+
* <p>The default implementation does nothing.</p>
5400+
*/
5401+
@Override public void exitNationalVaryingStringDataType(MySqlParser.NationalVaryingStringDataTypeContext ctx) { }
53305402
/**
53315403
* {@inheritDoc}
53325404
*
@@ -5375,6 +5447,18 @@ public class MySqlParserBaseListener implements MySqlParserListener {
53755447
* <p>The default implementation does nothing.</p>
53765448
*/
53775449
@Override public void exitSpatialDataType(MySqlParser.SpatialDataTypeContext ctx) { }
5450+
/**
5451+
* {@inheritDoc}
5452+
*
5453+
* <p>The default implementation does nothing.</p>
5454+
*/
5455+
@Override public void enterCollectionOptions(MySqlParser.CollectionOptionsContext ctx) { }
5456+
/**
5457+
* {@inheritDoc}
5458+
*
5459+
* <p>The default implementation does nothing.</p>
5460+
*/
5461+
@Override public void exitCollectionOptions(MySqlParser.CollectionOptionsContext ctx) { }
53785462
/**
53795463
* {@inheritDoc}
53805464
*

src/sonar-sql-plugin/src/main/java/org/antlr/sql/dialects/mysql/MySqlParserBaseVisitor.java

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,13 @@ public class MySqlParserBaseVisitor<T> extends AbstractParseTreeVisitor<T> imple
417417
* {@link #visitChildren} on {@code ctx}.</p>
418418
*/
419419
@Override public T visitReferenceColumnConstraint(MySqlParser.ReferenceColumnConstraintContext ctx) { return visitChildren(ctx); }
420+
/**
421+
* {@inheritDoc}
422+
*
423+
* <p>The default implementation returns the result of calling
424+
* {@link #visitChildren} on {@code ctx}.</p>
425+
*/
426+
@Override public T visitCollateColumnConstraint(MySqlParser.CollateColumnConstraintContext ctx) { return visitChildren(ctx); }
420427
/**
421428
* {@inheritDoc}
422429
*
@@ -1026,6 +1033,13 @@ public class MySqlParserBaseVisitor<T> extends AbstractParseTreeVisitor<T> imple
10261033
* {@link #visitChildren} on {@code ctx}.</p>
10271034
*/
10281035
@Override public T visitAlterByDropPrimaryKey(MySqlParser.AlterByDropPrimaryKeyContext ctx) { return visitChildren(ctx); }
1036+
/**
1037+
* {@inheritDoc}
1038+
*
1039+
* <p>The default implementation returns the result of calling
1040+
* {@link #visitChildren} on {@code ctx}.</p>
1041+
*/
1042+
@Override public T visitAlterByRenameIndex(MySqlParser.AlterByRenameIndexContext ctx) { return visitChildren(ctx); }
10291043
/**
10301044
* {@inheritDoc}
10311045
*
@@ -1172,7 +1186,7 @@ public class MySqlParserBaseVisitor<T> extends AbstractParseTreeVisitor<T> imple
11721186
* <p>The default implementation returns the result of calling
11731187
* {@link #visitChildren} on {@code ctx}.</p>
11741188
*/
1175-
@Override public T visitAlterByAnalyzePartitiion(MySqlParser.AlterByAnalyzePartitiionContext ctx) { return visitChildren(ctx); }
1189+
@Override public T visitAlterByAnalyzePartition(MySqlParser.AlterByAnalyzePartitionContext ctx) { return visitChildren(ctx); }
11761190
/**
11771191
* {@inheritDoc}
11781192
*
@@ -1726,6 +1740,13 @@ public class MySqlParserBaseVisitor<T> extends AbstractParseTreeVisitor<T> imple
17261740
* {@link #visitChildren} on {@code ctx}.</p>
17271741
*/
17281742
@Override public T visitLimitClause(MySqlParser.LimitClauseContext ctx) { return visitChildren(ctx); }
1743+
/**
1744+
* {@inheritDoc}
1745+
*
1746+
* <p>The default implementation returns the result of calling
1747+
* {@link #visitChildren} on {@code ctx}.</p>
1748+
*/
1749+
@Override public T visitLimitClauseAtom(MySqlParser.LimitClauseAtomContext ctx) { return visitChildren(ctx); }
17291750
/**
17301751
* {@inheritDoc}
17311752
*
@@ -2643,6 +2664,13 @@ public class MySqlParserBaseVisitor<T> extends AbstractParseTreeVisitor<T> imple
26432664
* {@link #visitChildren} on {@code ctx}.</p>
26442665
*/
26452666
@Override public T visitSetAutocommit(MySqlParser.SetAutocommitContext ctx) { return visitChildren(ctx); }
2667+
/**
2668+
* {@inheritDoc}
2669+
*
2670+
* <p>The default implementation returns the result of calling
2671+
* {@link #visitChildren} on {@code ctx}.</p>
2672+
*/
2673+
@Override public T visitSetNewValueInsideTrigger(MySqlParser.SetNewValueInsideTriggerContext ctx) { return visitChildren(ctx); }
26462674
/**
26472675
* {@inheritDoc}
26482676
*
@@ -3112,6 +3140,20 @@ public class MySqlParserBaseVisitor<T> extends AbstractParseTreeVisitor<T> imple
31123140
* {@link #visitChildren} on {@code ctx}.</p>
31133141
*/
31143142
@Override public T visitStringDataType(MySqlParser.StringDataTypeContext ctx) { return visitChildren(ctx); }
3143+
/**
3144+
* {@inheritDoc}
3145+
*
3146+
* <p>The default implementation returns the result of calling
3147+
* {@link #visitChildren} on {@code ctx}.</p>
3148+
*/
3149+
@Override public T visitNationalStringDataType(MySqlParser.NationalStringDataTypeContext ctx) { return visitChildren(ctx); }
3150+
/**
3151+
* {@inheritDoc}
3152+
*
3153+
* <p>The default implementation returns the result of calling
3154+
* {@link #visitChildren} on {@code ctx}.</p>
3155+
*/
3156+
@Override public T visitNationalVaryingStringDataType(MySqlParser.NationalVaryingStringDataTypeContext ctx) { return visitChildren(ctx); }
31153157
/**
31163158
* {@inheritDoc}
31173159
*
@@ -3140,6 +3182,13 @@ public class MySqlParserBaseVisitor<T> extends AbstractParseTreeVisitor<T> imple
31403182
* {@link #visitChildren} on {@code ctx}.</p>
31413183
*/
31423184
@Override public T visitSpatialDataType(MySqlParser.SpatialDataTypeContext ctx) { return visitChildren(ctx); }
3185+
/**
3186+
* {@inheritDoc}
3187+
*
3188+
* <p>The default implementation returns the result of calling
3189+
* {@link #visitChildren} on {@code ctx}.</p>
3190+
*/
3191+
@Override public T visitCollectionOptions(MySqlParser.CollectionOptionsContext ctx) { return visitChildren(ctx); }
31433192
/**
31443193
* {@inheritDoc}
31453194
*

src/sonar-sql-plugin/src/main/java/org/antlr/sql/dialects/mysql/MySqlParserListener.java

Lines changed: 84 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,18 @@ public interface MySqlParserListener extends ParseTreeListener {
631631
* @param ctx the parse tree
632632
*/
633633
void exitReferenceColumnConstraint(MySqlParser.ReferenceColumnConstraintContext ctx);
634+
/**
635+
* Enter a parse tree produced by the {@code collateColumnConstraint}
636+
* labeled alternative in {@link MySqlParser#columnConstraint}.
637+
* @param ctx the parse tree
638+
*/
639+
void enterCollateColumnConstraint(MySqlParser.CollateColumnConstraintContext ctx);
640+
/**
641+
* Exit a parse tree produced by the {@code collateColumnConstraint}
642+
* labeled alternative in {@link MySqlParser#columnConstraint}.
643+
* @param ctx the parse tree
644+
*/
645+
void exitCollateColumnConstraint(MySqlParser.CollateColumnConstraintContext ctx);
634646
/**
635647
* Enter a parse tree produced by the {@code generatedColumnConstraint}
636648
* labeled alternative in {@link MySqlParser#columnConstraint}.
@@ -1641,6 +1653,18 @@ public interface MySqlParserListener extends ParseTreeListener {
16411653
* @param ctx the parse tree
16421654
*/
16431655
void exitAlterByDropPrimaryKey(MySqlParser.AlterByDropPrimaryKeyContext ctx);
1656+
/**
1657+
* Enter a parse tree produced by the {@code alterByRenameIndex}
1658+
* labeled alternative in {@link MySqlParser#alterSpecification}.
1659+
* @param ctx the parse tree
1660+
*/
1661+
void enterAlterByRenameIndex(MySqlParser.AlterByRenameIndexContext ctx);
1662+
/**
1663+
* Exit a parse tree produced by the {@code alterByRenameIndex}
1664+
* labeled alternative in {@link MySqlParser#alterSpecification}.
1665+
* @param ctx the parse tree
1666+
*/
1667+
void exitAlterByRenameIndex(MySqlParser.AlterByRenameIndexContext ctx);
16441668
/**
16451669
* Enter a parse tree produced by the {@code alterByDropIndex}
16461670
* labeled alternative in {@link MySqlParser#alterSpecification}.
@@ -1882,17 +1906,17 @@ public interface MySqlParserListener extends ParseTreeListener {
18821906
*/
18831907
void exitAlterByExchangePartition(MySqlParser.AlterByExchangePartitionContext ctx);
18841908
/**
1885-
* Enter a parse tree produced by the {@code alterByAnalyzePartitiion}
1909+
* Enter a parse tree produced by the {@code alterByAnalyzePartition}
18861910
* labeled alternative in {@link MySqlParser#alterSpecification}.
18871911
* @param ctx the parse tree
18881912
*/
1889-
void enterAlterByAnalyzePartitiion(MySqlParser.AlterByAnalyzePartitiionContext ctx);
1913+
void enterAlterByAnalyzePartition(MySqlParser.AlterByAnalyzePartitionContext ctx);
18901914
/**
1891-
* Exit a parse tree produced by the {@code alterByAnalyzePartitiion}
1915+
* Exit a parse tree produced by the {@code alterByAnalyzePartition}
18921916
* labeled alternative in {@link MySqlParser#alterSpecification}.
18931917
* @param ctx the parse tree
18941918
*/
1895-
void exitAlterByAnalyzePartitiion(MySqlParser.AlterByAnalyzePartitiionContext ctx);
1919+
void exitAlterByAnalyzePartition(MySqlParser.AlterByAnalyzePartitionContext ctx);
18961920
/**
18971921
* Enter a parse tree produced by the {@code alterByCheckPartition}
18981922
* labeled alternative in {@link MySqlParser#alterSpecification}.
@@ -2735,6 +2759,16 @@ public interface MySqlParserListener extends ParseTreeListener {
27352759
* @param ctx the parse tree
27362760
*/
27372761
void exitLimitClause(MySqlParser.LimitClauseContext ctx);
2762+
/**
2763+
* Enter a parse tree produced by {@link MySqlParser#limitClauseAtom}.
2764+
* @param ctx the parse tree
2765+
*/
2766+
void enterLimitClauseAtom(MySqlParser.LimitClauseAtomContext ctx);
2767+
/**
2768+
* Exit a parse tree produced by {@link MySqlParser#limitClauseAtom}.
2769+
* @param ctx the parse tree
2770+
*/
2771+
void exitLimitClauseAtom(MySqlParser.LimitClauseAtomContext ctx);
27382772
/**
27392773
* Enter a parse tree produced by {@link MySqlParser#startTransaction}.
27402774
* @param ctx the parse tree
@@ -4145,6 +4179,18 @@ public interface MySqlParserListener extends ParseTreeListener {
41454179
* @param ctx the parse tree
41464180
*/
41474181
void exitSetAutocommit(MySqlParser.SetAutocommitContext ctx);
4182+
/**
4183+
* Enter a parse tree produced by the {@code setNewValueInsideTrigger}
4184+
* labeled alternative in {@link MySqlParser#setStatement}.
4185+
* @param ctx the parse tree
4186+
*/
4187+
void enterSetNewValueInsideTrigger(MySqlParser.SetNewValueInsideTriggerContext ctx);
4188+
/**
4189+
* Exit a parse tree produced by the {@code setNewValueInsideTrigger}
4190+
* labeled alternative in {@link MySqlParser#setStatement}.
4191+
* @param ctx the parse tree
4192+
*/
4193+
void exitSetNewValueInsideTrigger(MySqlParser.SetNewValueInsideTriggerContext ctx);
41484194
/**
41494195
* Enter a parse tree produced by the {@code showMasterLogs}
41504196
* labeled alternative in {@link MySqlParser#showStatement}.
@@ -4863,6 +4909,30 @@ public interface MySqlParserListener extends ParseTreeListener {
48634909
* @param ctx the parse tree
48644910
*/
48654911
void exitStringDataType(MySqlParser.StringDataTypeContext ctx);
4912+
/**
4913+
* Enter a parse tree produced by the {@code nationalStringDataType}
4914+
* labeled alternative in {@link MySqlParser#dataType}.
4915+
* @param ctx the parse tree
4916+
*/
4917+
void enterNationalStringDataType(MySqlParser.NationalStringDataTypeContext ctx);
4918+
/**
4919+
* Exit a parse tree produced by the {@code nationalStringDataType}
4920+
* labeled alternative in {@link MySqlParser#dataType}.
4921+
* @param ctx the parse tree
4922+
*/
4923+
void exitNationalStringDataType(MySqlParser.NationalStringDataTypeContext ctx);
4924+
/**
4925+
* Enter a parse tree produced by the {@code nationalVaryingStringDataType}
4926+
* labeled alternative in {@link MySqlParser#dataType}.
4927+
* @param ctx the parse tree
4928+
*/
4929+
void enterNationalVaryingStringDataType(MySqlParser.NationalVaryingStringDataTypeContext ctx);
4930+
/**
4931+
* Exit a parse tree produced by the {@code nationalVaryingStringDataType}
4932+
* labeled alternative in {@link MySqlParser#dataType}.
4933+
* @param ctx the parse tree
4934+
*/
4935+
void exitNationalVaryingStringDataType(MySqlParser.NationalVaryingStringDataTypeContext ctx);
48664936
/**
48674937
* Enter a parse tree produced by the {@code dimensionDataType}
48684938
* labeled alternative in {@link MySqlParser#dataType}.
@@ -4911,6 +4981,16 @@ public interface MySqlParserListener extends ParseTreeListener {
49114981
* @param ctx the parse tree
49124982
*/
49134983
void exitSpatialDataType(MySqlParser.SpatialDataTypeContext ctx);
4984+
/**
4985+
* Enter a parse tree produced by {@link MySqlParser#collectionOptions}.
4986+
* @param ctx the parse tree
4987+
*/
4988+
void enterCollectionOptions(MySqlParser.CollectionOptionsContext ctx);
4989+
/**
4990+
* Exit a parse tree produced by {@link MySqlParser#collectionOptions}.
4991+
* @param ctx the parse tree
4992+
*/
4993+
void exitCollectionOptions(MySqlParser.CollectionOptionsContext ctx);
49144994
/**
49154995
* Enter a parse tree produced by {@link MySqlParser#convertedDataType}.
49164996
* @param ctx the parse tree

0 commit comments

Comments
 (0)