Skip to content

Can't describe Postgres 12+ database: column r.consrc does not exists. #6957

@rodrigo-web-developer

Description

@rodrigo-web-developer

Node version: 9.7.0
Sails version: 0.11.4
DB adapter & version: sails-postgresql@0.11.4
Postgres version: 12


Error: column r.consrc does not exists.

In lib/adapter.js of sails-postgresql module, the function describe() execute a query that breaks in postgres 12+ because the column consrc of pg_constraint no longer exists, so the "schema" property of connection object will never be populated.

I had read the latest version of sails-postgresql and the same query is applied (but the file is: helpers/describe.js).

What can I do to run postgres 12 with sails?

Metadata

Metadata

Assignees

No one assigned

    Labels

    helpful info or workaroundormRelated to models, datastores, orm config, Waterline, sails-hook-orm, etc.postgresqlIssue only occurs when using PostgreSQL

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions