Skip to content

Commit a137695

Browse files
authored
[informix-sql] Support of set deferred_prepare statement (#3889)
1 parent 14dd22c commit a137695

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

sql/informix-sql/InformixSQLLexer.g4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ DATASKIP : 'DATASKIP';
8282
DEFAULT : 'DEFAULT';
8383
DEFERRABLE : 'DEFERRABLE';
8484
DEFERRED : 'DEFERRED';
85+
DEFERRED_PREPARE : 'DEFERRED_PREPARE';
8586
DELETE : 'DELETE';
8687
DEBUG : 'DEBUG';
8788
DESC : 'DESC';

sql/informix-sql/InformixSQLParser.g4

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ unitStatement
7373
| setCollation
7474
| setDataskip
7575
| setDebugFile
76+
| setDeferredPrepareStatement
7677
) SCOL
7778
;
7879

@@ -251,6 +252,11 @@ setDebugFile
251252
: SET DEBUG FILE TO (CHAR_STRING | identifier) (WITH APPEND)?
252253
;
253254

255+
// https://www.ibm.com/docs/en/informix-servers/14.10?topic=statements-set-deferred-prepare-statement
256+
setDeferredPrepareStatement
257+
: SET DEFERRED_PREPARE (ENABLED | DISABLED)?
258+
;
259+
254260
quotedString
255261
: CHAR_STRING
256262
;
@@ -311,6 +317,7 @@ keyword
311317
| DEFAULT
312318
| DEFERRABLE
313319
| DEFERRED
320+
| DEFERRED_PREPARE
314321
| DELETE
315322
| DESC
316323
| DETACH
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set deferred_prepare;
2+
set deferred_prepare enabled;
3+
set deferred_prepare DISABLED;

0 commit comments

Comments
 (0)