CREATE OR REPLACE TRIGGER does not validate in SQL editor #16926
tanius
started this conversation in
Contribute to Supabase
Replies: 1 comment
-
Limited by the parser itself: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug report
Describe the bug
CREATE OR REPLACE TRIGGER ...
is valid syntax since PostgreSQL 14 (see). Such queries work in Supabase databases when executed viapsql
. However, such a query is not accepted by the SQL editor on app.supabase.com:To Reproduce
Go to any of your projects on app.supabase.com
Click on "SQL Editor" in the left column.
Enter and execute a valid
CREATE OR REPLACE TRIGGER
query, such as:Expected behavior
The Supabase SQL Editor should accept the query, since it's valid SQL. It probably needs to be updated. Similar problems may exist with other syntax that is valid since PostgreSQL 14 (or even earlier).
Beta Was this translation helpful? Give feedback.
All reactions