Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Liquibase生成的删除约束的语句报错 #6286

Open
594679316 opened this issue Dec 13, 2024 · 0 comments
Open

[BUG] Liquibase生成的删除约束的语句报错 #6286

594679316 opened this issue Dec 13, 2024 · 0 comments

Comments

@594679316
Copy link

Database Type

Oracle

Database Version

Oracle 19c

Druid Version

1.2.22

JDK Version

JDK1.8

Error SQL

ALTER TABLE schema.tableName DROP CONSTRAINT constraintname DROP INDEX

Testcase Code

No response

Stacktrace Info

No response

Error Info

[com.alibaba.druid.filter.stat.StatFilter mergeSql 160] [Thread-1] ==> merge sql error, dbType oracle, druid-1.2.22, sql : ALTER TABLE schema.tableName DROP CONSTRAINT constraintname DROP INDEX
com.alibaba.druid.sql.parser.ParserException: illegal name, pos 99, line 1, column 100, token EOF
at com.alibaba.druid.sql.parser.SQLExprParser.name(SQLExprParser.java:2425)
at com.alibaba.druid.sql.dialect.oracle.parser.OracleExprParser.name(OracleExprParser.java:1117)
at com.alibaba.druid.sql.dialect.oracle.parser.OracleStatementParser.parseAlterDrop(OracleStatementParser.java:1758)
at com.alibaba.druid.sql.dialect.oracle.parser.OracleStatementParser.parseAlterTable(OracleStatementParser.java:1649)
at com.alibaba.druid.sql.dialect.oracle.parser.OracleStatementParser.parserAlter(OracleStatementParser.java:1324)
at com.alibaba.druid.sql.dialect.oracle.parser.OracleStatementParser.parseStatementList(OracleStatementParser.java:147)
at com.alibaba.druid.sql.parser.SQLStatementParser.parseStatementList(SQLStatementParser.java:106)
at com.alibaba.druid.sql.visitor.ParameterizedOutputVisitorUtils.parameterize(ParameterizedOutputVisitorUtils.java:164)
at com.alibaba.druid.sql.visitor.ParameterizedOutputVisitorUtils.parameterize(ParameterizedOutputVisitorUtils.java:135)
at com.alibaba.druid.filter.stat.StatFilter.mergeSql(StatFilter.java:158)
at com.alibaba.druid.filter.stat.StatFilter.createSqlStat(StatFilter.java:692)
at com.alibaba.druid.filter.stat.StatFilter.internalBeforeStatementExecute(StatFilter.java:431)
at com.alibaba.druid.filter.stat.StatFilter.statementExecuteBefore(StatFilter.java:379)
at com.alibaba.druid.filter.FilterEventAdapter.statement_execute(FilterEventAdapter.java:179)
at com.alibaba.druid.filter.FilterChainImpl.statement_execute(FilterChainImpl.java:3007)
at com.alibaba.druid.proxy.jdbc.StatementProxyImpl.execute(StatementProxyImpl.java:143)
at com.alibaba.druid.pool.DruidPooledStatement.execute(DruidPooledStatement.java:635)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant