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

pgsql解析SET SCHEMA语法时出错 #5870

Closed
kang2086 opened this issue Apr 26, 2024 · 1 comment
Closed

pgsql解析SET SCHEMA语法时出错 #5870

kang2086 opened this issue Apr 26, 2024 · 1 comment

Comments

@kang2086
Copy link

pgsql语法:
SET SCHEMA 'platform_base';

drop table if exists JC_FUND_ACCOUNT_TEST cascade;
.....

多余的解析值
企业微信截图_20240426173711

@lizongbo
Copy link
Collaborator

lizongbo commented May 4, 2024

你根本没提供使用的druid的版本,我用1.2..22验证了解析是正常的,只是生成的sql存在问题,多了个to,导致再次解析会失败,我优化一下。
请使用最新版本的进行验证

lizongbo added a commit to lizongbo/druid that referenced this issue May 4, 2024
优化postgresql解析set schema和set names的逻辑 alibaba#5870
lizongbo added a commit that referenced this issue May 4, 2024
优化postgresql解析set schema和set names的逻辑 #5870
@lizongbo lizongbo closed this as completed May 4, 2024
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

2 participants