Closed
Description
The START WITH NN in ORACLE is not supported.
I mean JsqlParser cannot parse an Oracle Table that has a START WITH NN.
(Don't know if this is a feature request or a bug).
For example; this table is not parsable:
-- location
CREATE TABLE locations
(
location_id NUMBER GENERATED BY DEFAULT AS IDENTITY START WITH 24
PRIMARY KEY ,
address VARCHAR2( 255 ) NOT NULL,
postal_code VARCHAR2( 20 ) ,
city VARCHAR2( 50 ) ,
state VARCHAR2( 50 ) ,
country_id CHAR( 2 ) , -- fk
CONSTRAINT fk_locations_countries
FOREIGN KEY( country_id )
REFERENCES countries( country_id )
ON DELETE CASCADE
);
It raises a JSQLParserException
:
Encountered unexpected token: "START" "START"
If I remove START WITH 24
, the table is parsable.
Best,
N.
Metadata
Metadata
Assignees
Labels
No labels