Skip to content

Bug: DEFAULT can't be parsed in all valid positions #40

Open

Description

@ad-si

This can be parsed:

ALTER TABLE "users" ADD COLUMN "col" TEXT DEFAULT 'x' NOT NULL 

but this causes an error:

ALTER TABLE "users" ADD COLUMN "col" TEXT NOT NULL DEFAULT 'x'

This should also be parsable as far as I can tell!

Activity

  1. JakeWheat commented on Nov 2, 2022

    @JakeWheat
    Owner

    Yes, both should parse successfully.

    I'm not working on this repo these days, but if you want to do some pull requests, I would be happy to support them, and make a new release, including for your other reports, which are good ideas too.

  2. ad-si commented on Nov 2, 2022

    @ad-si
    Author

    Thanks for the support! I'm planing to send PRs for the issues I opened soon. I'm just on a tight schedule right now and it's faster to simply fix the issues upstream on airsequel.com. 😅
    I didn't mean to pressure you with the issues, I just thought it would be better to post them upstream instead of keeping them in our own issue tracker…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions