Skip to content
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] Cannot use jsonb default '{}'::jsonb #251

Closed
shiroemons opened this issue Jul 1, 2022 · 1 comment
Closed

[psqldef] Cannot use jsonb default '{}'::jsonb #251

shiroemons opened this issue Jul 1, 2022 · 1 comment

Comments

@shiroemons
Copy link

--export output

CREATE TABLE "public"."payload_data" (
    "id" bigserial NOT NULL,
    "payload" jsonb NOT NULL DEFAULT '{}'::jsonb,
    PRIMARY KEY ("id")
);

Input SQL(Same as export)

CREATE TABLE "public"."payload_data" (
    "id" bigserial NOT NULL,
    "payload" jsonb NOT NULL DEFAULT '{}'::jsonb,
    PRIMARY KEY ("id")
);

Current output

found syntax error when parsing DDL "CREATE TABLE "public"."payload_data" (
    "id" bigserial NOT NULL,
    "payload" jsonb NOT NULL DEFAULT '{}'::jsonb,
    PRIMARY KEY ("id")
)": syntax error at position 117 near 'jsonb'

Expected output

No error with the input

@k0kubun k0kubun closed this as completed in 6decd22 Jul 1, 2022
@k0kubun
Copy link
Collaborator

k0kubun commented Jul 1, 2022

Fixed in v0.11.62. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants