-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
[psqldef] Syntax error when using psqldef with Supabase #451
Labels
psqldef
Bugs or feature requests related to PostgreSQL
Comments
Can you share the output of |
@k0kubun |
The error appears to occur in the following locations. CREATE TABLE auth.saml_providers (
id uuid NOT NULL,
sso_provider_id uuid NOT NULL,
entity_id text NOT NULL,
metadata_xml text NOT NULL,
metadata_url text,
attribute_mapping jsonb,
created_at timestamp with time zone,
updated_at timestamp with time zone,
CONSTRAINT "entity_id not empty" CHECK ((char_length(entity_id) > 0)),
-- ^ here
CONSTRAINT "metadata_url not empty" CHECK (((metadata_url = NULL::text) OR (char_length(metadata_url) > 0))),
CONSTRAINT "metadata_xml not empty" CHECK ((char_length(metadata_xml) > 0))
); I confirmed that a space in the name of the constraint would cause an error.
If the constraint name is
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Supabase
Platform
--export output
$ psqldef --host db.[host].supabase.co --user postgres --password [password] postgres --export 2023/10/10 00:26:41 syntax error at or near "empty"
Input SQL
Current output
$ psqldef --host db.[host].supabase.co --user postgres --password [password] postgres --export 2023/10/10 00:26:41 syntax error at or near "empty"
Expected output
No error
The text was updated successfully, but these errors were encountered: