You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Migrations break when a BEGIN ATOMIC statement includes CASE #3474
Describe the bug
When a migration contains a BEGIN ATOMIC function that includes CASE ... END, the migration fails with syntax error at end of input (SQLSTATE 42601).
To Reproduce
Steps to reproduce the behavior:
Create a new migration with a function like
CREATE FUNCTION test RETURNS BOOLEAN LANGUAGE sql
BEGIN ATOMIC
SELECT CASE
WHEN TRUE THEN TRUE
ELSE FALSE
END;
END;
Attempt to run the migration
Expected behavior
The migration should succeed.
Screenshots
n/a
System information
Rerun the failing command with --create-ticket flag.
We're closing this because it has not had any activity for 45 days, and we try to keep the Supabase CLI issue tracker focused on reports that are still current.
If this still reproduces on the latest Supabase CLI, please comment with /reopen on its own line and include your CLI version, updated reproduction steps, and any recent error output. We appreciate the signal and are happy to take another look.
Activity
github-actions commentedon Jun 17, 2026
Hi! Thanks for opening this issue.
We're closing this because it has not had any activity for 45 days, and we try to keep the Supabase CLI issue tracker focused on reports that are still current.
If this still reproduces on the latest Supabase CLI, please comment with
/reopenon its own line and include your CLI version, updated reproduction steps, and any recent error output. We appreciate the signal and are happy to take another look.