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] String can not cast to SQLExpr #6151

Open
cheese8 opened this issue Oct 7, 2024 · 0 comments · May be fixed by #6152
Open

[BUG] String can not cast to SQLExpr #6151

cheese8 opened this issue Oct 7, 2024 · 0 comments · May be fixed by #6152

Comments

@cheese8
Copy link

cheese8 commented Oct 7, 2024

Database Type

mysql

Database Version

mysql 5.7

Druid Version

1.2.23

JDK Version

Jdk8

Error SQL

insert into tbl1(field1, field2) values (val11, val12), (val21, val22)

Testcase Code

No response

Stacktrace Info

Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to com.alibaba.druid.sql.ast.SQLExpr
	at com.alibaba.druid.sql.dialect.mysql.visitor.MySqlOutputVisitor.printValuesList(MySqlOutputVisitor.java:1279)
	at com.alibaba.druid.sql.dialect.mysql.visitor.MySqlOutputVisitor.visit(MySqlOutputVisitor.java:1241)
	at com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlInsertStatement.accept0(MySqlInsertStatement.java:134)
	at com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlInsertStatement.accept0(MySqlInsertStatement.java:127)
	at com.alibaba.druid.sql.ast.SQLObjectImpl.accept(SQLObjectImpl.java:48)
	at com.alibaba.druid.sql.visitor.ParameterizedOutputVisitorUtils.parameterize(ParameterizedOutputVisitorUtils.java:375)
	at com.alibaba.druid.sql.ast.SQLStatementImpl.toParameterizedString(SQLStatementImpl.java:63)

Error Info

No response

@cheese8 cheese8 linked a pull request Oct 7, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant