Skip to content

DDL drop table: Switch error message to warning type #367

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

Open
2 tasks done
Donnerstagnacht opened this issue Apr 22, 2025 · 0 comments
Open
2 tasks done

DDL drop table: Switch error message to warning type #367

Donnerstagnacht opened this issue Apr 22, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Donnerstagnacht
Copy link

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

As discussed in #365

If I write a drop table statement, it is technically correct code:

But it creates the following error:

Dropping a table may break existing clients.
image

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Create a table and drop it
DROP TABLE IF EXISTS public.groups;
DROP TABLE IF EXISTS groups;

Expected behavior

Error should be a hint or a warning instead of an error since this statement may be intended and therefore correct.

System information

  • OS: windows 11
  • editor: vs-code
  • pls: 0.5.0

Additional context

Another option could the intended and planned pls annotation:
// @pg-ignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant