File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
main/jjtree/net/sf/jsqlparser/parser Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -4195,7 +4195,7 @@ ColDataType ColDataType():
4195
4195
(tk=<K_CHARACTER> | tk=<K_BIT>) [tk2=<K_VARYING>] { colDataType.setDataType(tk.image + (tk2!=null?" " + tk2.image:"")); }
4196
4196
| tk=<K_DOUBLE> [LOOKAHEAD(2) tk2=<K_PRECISION>] { colDataType.setDataType(tk.image + (tk2!=null?" " + tk2.image:"")); }
4197
4197
| ( tk=<S_IDENTIFIER> | tk=<K_DATETIMELITERAL> | tk=<K_DATE_LITERAL> | tk=<K_XML> | tk=<K_INTERVAL>
4198
- | tk=<DT_ZONE> | tk=<K_CHAR> | tk=<K_SET> | tk=<K_BINARY> )
4198
+ | tk=<DT_ZONE> | tk=<K_CHAR> | tk=<K_SET> | tk=<K_BINARY> | tk=<K_JSON> )
4199
4199
{ colDataType.setDataType(tk.image); }
4200
4200
| tk=<K_UNSIGNED> tk2=<S_IDENTIFIER> {colDataType.setDataType(tk.image + " " + tk2.image);}
4201
4201
| LOOKAHEAD(2) tk=<K_SIGNED> tk2=<S_IDENTIFIER> {colDataType.setDataType(tk.image + " " + tk2.image);}
Original file line number Diff line number Diff line change @@ -365,6 +365,18 @@ true
365
365
tmp_ids
366
366
id.unique category
367
367
368
+ #begin
369
+ create table test.json_test (
370
+ c1 INTEGER PRIMARY KEY,
371
+ c2 varchar(20) not null,
372
+ c3 json default null
373
+ )
374
+ #end
375
+ true
376
+ test.json_test
377
+ c1.unique c2 c3
378
+
379
+
368
380
// -----------------------------------------------------------------------------------------------------------------------
369
381
// Other tests
370
382
// -----------------------------------------------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments