Replies: 3 comments 4 replies
-
We have two MySQL grammars: the "official" Oracle MySQL by Mike Lischke; and the Positive Tech grammar. Please leave the "official" grammar as is because the grammar is/going to be derived from the official source. Unfortunately, Mike is only writing for TypeScript, not for the other targets, which is why it exists here. I haven't written the scripts that will scrape the grammar from the Oracle Github repo yet, but that will be coming. And, when it does, everything that was done to the Oracle-based grammar here will be overwritten. The other MySQL grammar is already being extended in non-standard MySQL ways. I have no problem doing that, but the changes must be gated with semantic predicates. A semantic predicate must be at the beginning of an "alt" in order to allow the parser to function correctly. |
Beta Was this translation helpful? Give feedback.
-
Generally, if the syntax is not in the "official," it's best to add a semantic predicate to it. I would prefer not to go to the PL/SQL specs, see a diff in the syntax between the one here and the specs, and not know why it's in there. I do know Oracle has a hard time keeping up with the doc, though. On retiring old syntax, Mike added semantic predicates for different versions in the "official" MySQL grammar. We should do that for the plsql grammar, e.g., here. Forking the plsql grammar is going to lead to maintenance issues. |
Beta Was this translation helpful? Give feedback.
-
Hi @kaby76 so to be clear:
Does that sound sufficient to you? |
Beta Was this translation helpful? Give feedback.
-
Hi team,
The Debezium PlSql grammar was initially forked from the ANTLR grammar. However, over the past year, significant divergence has occurred between the two, making maintenance challenging. To improve maintainability and ensure consistency, we propose synchronizing our PlSql grammar with the upstream ANTLR module. Our grammar includes legacy and logminer specific extensions. We are interested in contributing these extensions back to the ANTLR module. Would this be beneficial or acceptable to the community? Thanks.
cc: @Naros @jpechane
Beta Was this translation helpful? Give feedback.
All reactions