Skip to content

Why do the adapters (postgres, pgx) ignore the config? #547

Closed

Description

@FAQinghere

schemaName := ""

The config actually has the schema name (potentially already explicitly set), but here it is being ignored unless an orthogonal parameter happens to have some particular value).

Activity

  1. dhui commented on Apr 20, 2021

    @dhui
    Member

    Good catch! It looks like the SchemaName and MigrationsTableQuoted config values don't play nicely with each other...
    We should default to the config SchemaName and overwrite that if the quoted migration table name also specifies a schema. This should be fixed on both the pgx and postgres drivers.

  2. dhui commented on Apr 20, 2021

    @dhui
    Member

    @stephane-klein do you have time/bandwidth to address this issue?
    Adding the MigrationsTableQuoted config broke how the SchemaName config is used.

  3. stephane-klein commented on Apr 20, 2021

    @stephane-klein
    Contributor

    do you have time/bandwidth to address this issue?

    @dhui Yes, I can (I think the 2021-04-21 morning).

  4. FAQinghere commented on Apr 21, 2021

    @FAQinghere
    Author

    To be fair, I believe that config value was never respected consistently in the Postgres driver, going back years. The issue was not introduced by the latest changes. I’m pretty sure that a couple of years ago on some project I simply made it use that config value and suddenly it all worked fine (no need for the quoted table name handling, etc.).

  5. stephane-klein commented on Apr 21, 2021

    @stephane-klein
    Contributor

    Some notes:

  6. jeffwidman commented on May 12, 2021

    @jeffwidman
    Contributor

    Was this issue fixed by #550?

  7. dhui commented on May 13, 2021

    @dhui
    Member

    @jeffwidman yep, this is fixed by #550

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions