-
Notifications
You must be signed in to change notification settings - Fork 104
DROP TABLE: Can we classify it as hint instead as error? #365
-
If I write a drop table statement, it is technically correct code:
DROP TABLE IF EXISTS public.groups;
DROP TABLE IF EXISTS groups;
But it creates the following error:
Dropping a table may break existing clients.
I was wondering if this could/should be a hint or a warning instead of an error since this statement may be intended and therefore correct.
Another option would be to provide an override option like in python or typescript for types:
python: # type: ignore typescript: // @ts-ignore // @ts-expect-error
Or is this an intended behavior? If so, why?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
@psteinroe is currently working on annotations, so we'll soon have a way to // @pg-ignore
it 👍
that being said, you're probably right, this should be a warning, not an error. WDYT @psteinroe ?
Beta Was this translation helpful? Give feedback.
All reactions
-
Yes
Beta Was this translation helpful? Give feedback.