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]: "ALTER TABLE" can collect entities but entities don't have belongStmt #311

Open
Kijin-Seija opened this issue May 28, 2024 · 0 comments

Comments

@Kijin-Seija
Copy link
Contributor

Kijin-Seija commented May 28, 2024

Version

4.0.1

Which SQL?

Postgre

SQL content

ALTER TABLE my_table DROP a_column|;

JavaScript/TypeScript code

No response

What happened?

my_table can be collected but it has no belongStmt, then people cannot use isContainCaret or other properities


my_table被收集了但是其属性里没有belongStmt, 基于isContainCaret或其他StmtContext属性的功能可能会无法正常工作。

image

I find that maybe there's no definition of altertablestmt. I will create a PR and try to cover it. If there is already a roadmap, ignore the PR.


看了下好像是没有定义'altertablestmt'这个StmtContext,我这边尝试添加了一下,已测试通过。如果这在你们的roadmap上,请忽略此PR

Relevant log output

No response

@Kijin-Seija Kijin-Seija changed the title [Bug]: "ALTER TABLE" can collect entities but entities don't hava belongStmt [Bug]: "ALTER TABLE" can collect entities but entities don't have belongStmt May 28, 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

1 participant