File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
main/javacc/net/sf/jsqlparser/parser
test/java/net/sf/jsqlparser/test/create Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -535,7 +535,7 @@ String RelObjectName():
535535 | tk=<K_LAST> | tk=<K_MATERIALIZED> | tk=<K_NULLS> | tk=<K_PARTITION> | tk=<K_RANGE>
536536 | tk=<K_ROW> | tk=<K_ROWS> | tk=<K_SIBLINGS> | tk=<K_VALUE> | tk=<K_XML>
537537 | tk=<K_COLUMN> | tk=<K_REPLACE> | tk=<K_TRUNCATE> | tk=<K_KEY> | tk=<K_ANY>
538- | tk=<K_OPEN> | tk=<K_OVER>
538+ | tk=<K_OPEN> | tk=<K_OVER> | tk=<K_VALUES>
539539 )
540540
541541 { return tk.image; }
Original file line number Diff line number Diff line change @@ -149,6 +149,14 @@ public void testCreateTableArrays() throws JSQLParserException {
149149 public void testCreateTableArrays2 () throws JSQLParserException {
150150 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE sal_emp (name text, pay_by_quarter integer[5], schedule text[3][2])" );
151151 }
152+
153+ public void testCreateTableColumnValues () throws JSQLParserException {
154+ assertSqlCanBeParsedAndDeparsed ("CREATE TABLE mytable1 (values INTEGER)" );
155+ }
156+
157+ public void testCreateTableColumnValue () throws JSQLParserException {
158+ assertSqlCanBeParsedAndDeparsed ("CREATE TABLE mytable1 (value INTEGER)" );
159+ }
152160
153161 public void testRUBiSCreateList () throws Exception {
154162 BufferedReader in = new BufferedReader (new InputStreamReader (CreateTableTest .class .getResourceAsStream ("/RUBiS-create-requests.txt" )));
You can’t perform that action at this time.
0 commit comments