sqlparser / gsp_demo_java

Java demos for the General SQL Parser library
124 stars 68 forks source link

Class of GFmtOPT beStyleCreatetableRightBEOnNewline parameters seem to have no effect #6

Open CembZy opened 4 years ago

CembZy commented 4 years ago

When I put the beStyleCreatetableRightBEOnNewline were set to false and true, run after the results are the same, for example,are after conversion: CREATE TABLE province(id VARCHAR(19) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,                         name VARCHAR(10) CHARACTER SET utf8mb4 COLLATE DEFAULT NULL,                          creator VARCHAR(15) CHARACTER SET utf8mb4 COLLATE DEFAULT NULL,                          create_time DATETIME DEFAULT NULL,                          update_time DATETIME DEFAULT NULL,                          remark VARCHAR(20) CHARACTER SET utf8mb4 COLLATE DEFAULT NULL,                          flag INT DEFAULT '0',                          PRIMARY KEY (id) ) ENGINE=INNODB DEFAULT ; What is this formatting rule? When set to true, does each field line start at the rightmost end of the statement formatted by the default rule?

CembZy commented 4 years ago

The parameter indentLen change does not take effect

sqlparser commented 4 years ago

@2133223 Please post the comment for this issue here: https://github.com/sqlparser/chenbo/issues/1