Skip to content

Commit 23c5880

Browse files
authored
fix: remove grammar for create/alter compiled SQL scalar function (#2738)
* fix: remove grammar for create/alter compiled SQL scalar function remove grammar for create/alter compiled SQL scalar function. It seems COBOL exec sql block doesn't support this statement. In general, COBOL doesn't seems to support PL SQL. Signed-off-by: amanprashant <[email protected]> * revert: revert changes for db2sql_data_types rule Signed-off-by: amanprashant <[email protected]> * chore: clean up PL SQL related statements from the Cobol Db2 grammar Signed-off-by: amanprashant <[email protected]> * chore: clean up unsupported procedures grammar from the Cobol Db2 grammar Signed-off-by: amanprashant <[email protected]> * chore: remove commented codes Signed-off-by: amanprashant <[email protected]> * revert: revert gammar changes for alter functions that can be compiled Signed-off-by: amanprashant <[email protected]> * revert: revert grammar changes for alter procedures that can be compiled Signed-off-by: amanprashant <[email protected]> * fix: clean up as per PR comments Signed-off-by: amanprashant <[email protected]> --------- Signed-off-by: amanprashant <[email protected]>
1 parent 0831c65 commit 23c5880

File tree

6 files changed

+147
-435
lines changed

6 files changed

+147
-435
lines changed

server/engine/src/main/antlr4/org/eclipse/lsp/cobol/implicitDialects/sql/Db2SqlExecLexer.g4

+3
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ FILLER: F I L L E R;
325325
FINAL : F I N A L;
326326
FIRST : F I R S T;
327327
FIRST_VALUE: F I R S T UNDERSCORECHAR V A L U E;
328+
FIXEDLENGTH: F I X E D LENGTH;
328329
FLOAT : F L O A T;
329330
FOLLOWING : F O L L O W I N G;
330331
FOR : F O R;
@@ -364,6 +365,7 @@ HISTORY : H I S T O R Y;
364365
HOLD : H O L D;
365366
HOUR : H O U R;
366367
HOURS : H O U R S;
368+
HUFFMAN: H U F F M A N;
367369
ID : I D;
368370
IDENTITY : I D E N T I T Y;
369371
IF : I F;
@@ -667,6 +669,7 @@ SOURCE : S O U R C E;
667669
SPACE : S P A C E;
668670
SPECIAL : S P E C I A L;
669671
SPECIFIC : S P E C I F I C;
672+
SQL: S Q L;
670673
SQLIMS: S Q L I M S;
671674
SQLADM : S Q L A D M;
672675
SQLCA : S Q L C A;

0 commit comments

Comments
 (0)