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] 用ast 的SQLUtils解析postgresql修改字段类型的ddl有问题 #6206

Open
liusen259 opened this issue Oct 29, 2024 · 0 comments
Open

Comments

@liusen259
Copy link

Database Type

postgresql

Database Version

postgresql

Druid Version

1.2.8

JDK Version

jdk8

Error SQL

ALTER TABLE t_test_user1 ALTER COLUMN a1 TYPE bpchar(20);

Testcase Code

List statementList = SQLUtils.parseStatements(sql, dbType, true);

Stacktrace Info

No response

Error Info

原本sql语句是ALTER TABLE t_test_user1 ALTER COLUMN a1 TYPE bpchar(20);
转换完成之后ALTER TABLE t_test_user1 ALTER COLUMN a1 bpchar(20);
少了一个TYPE,导致代码修改表字段失败。

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