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
CREATE TABLE `test` ( `t_id` BIGINT NOT NULL COMMENT 'id', INDEX `idx_t_id` (`t_id` ASC) VISIBLE )
报错信息:
merge sql error, dbType mysql, druid-1.2.5, sql : CREATE TABLE test ( t_id BIGINT NOT NULL COMMENT 'id',
INDEX idx_t_id (t_id ASC) VISIBLE
)
com.alibaba.druid.sql.parser.ParserException: syntax error, error in :'ASC) VISIBLE
)', expect ), actual null, pos 120, line 3, column 44, token IDENTIFIER VISIBLE
at com.alibaba.druid.sql.parser.SQLParser.printError(SQLParser.java:576)
at com.alibaba.druid.sql.parser.SQLParser.accept(SQLParser.java:584)
at com.alibaba.druid.sql.dialect.mysql.parser.MySqlCreateTableParser.parseCreateTable(MySqlCreateTableParser.java:366)
at com.alibaba.druid.sql.dialect.mysql.parser.MySqlStatementParser.parseCreate(MySqlStatementParser.java:309)
at com.alibaba.druid.sql.parser.SQLStatementParser.parseStatementList(SQLStatementParser.java:249)
at com.alibaba.druid.sql.parser.SQLStatementParser.parseStatementList(SQLStatementParser.java:113)
at com.alibaba.druid.sql.visitor.ParameterizedOutputVisitorUtils.parameterize(ParameterizedOutputVisitorUtils.java:153)
at com.alibaba.druid.sql.visitor.ParameterizedOutputVisitorUtils.parameterize(ParameterizedOutputVisitorUtils.java:126)
at com.alibaba.druid.filter.stat.StatFilter.mergeSql(StatFilter.java:156)
at com.alibaba.druid.filter.stat.StatFilter.createSqlStat(StatFilter.java:657)
at com.alibaba.druid.filter.stat.StatFilter.statementPrepareAfter(StatFilter.java:320)
at com.alibaba.druid.filter.FilterEventAdapter.connection_prepareStatement(FilterEventAdapter.java:124)
at com.alibaba.druid.filter.FilterChainImpl.connection_prepareStatement(FilterChainImpl.java:568)
at com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl.prepareStatement(ConnectionProxyImpl.java:341)
at com.alibaba.druid.pool.DruidPooledConnection.prepareStatement(DruidPooledConnection.java:366)
其他:
com.alibaba.druid.VERSION 里的版本号好像没改,还是 1.2.5;
The text was updated successfully, but these errors were encountered:
版本信息:
SQL 语句:
CREATE TABLE `test` ( `t_id` BIGINT NOT NULL COMMENT 'id', INDEX `idx_t_id` (`t_id` ASC) VISIBLE )
报错信息:
其他:
com.alibaba.druid.VERSION
里的版本号好像没改,还是1.2.5
;The text was updated successfully, but these errors were encountered: