You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
executing the statement such as CreateTable create = (CreateTable) CCJSqlParserUtil.parse(sql); successfully;
the parameter "sql" is a create table statement with "partition",for example: create table T_TEST_PARTITION ( PART_COLUMN VARCHAR2(32) not null, OTHER_COLS VARCHAR2(10) not null ) tablespace TBS_DATA_01 partition by hash (PART_COLUMN) partitions 4 store in (TBS_DATA_01) compress;
Steps to Reproduce the Problem
1.Defining variable sql like this: String sql = " create table T_TEST_PARTITION "+ " ("+ " PART_COLUMN VARCHAR2(32) not null,"+ " OTHER_COLS VARCHAR2(10) not null"+ " )"+ " tablespace TBS_DATA_01"+ " partition by hash (PART_COLUMN)"+ " partitions 4 store in (TBS_DATA_01) compress";
2.execute statement CreateTable create = (CreateTable) CCJSqlParserUtil.parse(sql);
Actual Behavior
Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "partition" "PARTITION"
at line 1, column 1372.
Was expecting one of:
"("
"+"
"-"
";"
"="
"CASCADE"
"CHECK"
"COMMIT"
"CONSTRAINT"
"DELETE"
"EXCLUDE"
"FOREIGN"
"KEY"
"NOT"
"NULL"
"ON"
"PRIMARY"
"REFERENCES"
"ROWS"
"TABLESPACE"
"TEMP"
"TEMPORARY"
"UNIQUE"
"UNSIGNED"
"UPDATE"
"USING"
"WHERE"
"WITH"
<K_TIME_KEY_EXPR>
<S_CHAR_LITERAL>
<S_DOUBLE>
<S_IDENTIFIER>
<S_LONG>
<S_QUOTED_IDENTIFIER>
Expected Behavior
executing the statement such as
CreateTable create = (CreateTable) CCJSqlParserUtil.parse(sql);
successfully;the parameter "sql" is a create table statement with "partition",for example:
create table T_TEST_PARTITION ( PART_COLUMN VARCHAR2(32) not null, OTHER_COLS VARCHAR2(10) not null ) tablespace TBS_DATA_01 partition by hash (PART_COLUMN) partitions 4 store in (TBS_DATA_01) compress;
Steps to Reproduce the Problem
1.Defining variable
sql
like this:String sql = " create table T_TEST_PARTITION "+ " ("+ " PART_COLUMN VARCHAR2(32) not null,"+ " OTHER_COLS VARCHAR2(10) not null"+ " )"+ " tablespace TBS_DATA_01"+ " partition by hash (PART_COLUMN)"+ " partitions 4 store in (TBS_DATA_01) compress";
2.execute statement
CreateTable create = (CreateTable) CCJSqlParserUtil.parse(sql);
Specifications
The text was updated successfully, but these errors were encountered: