Skip to content

Breaks with Rails 6 #5

@rubenfonseca

Description

@rubenfonseca

When migrating to Rails 6, all our tests stopped working when using multiple databases. It seems "dblint" either generates the wrong query and uses the wrong connection:

DBLINT (0.2ms)  SET enable_seqscan = off
  DBLINT (0.4ms)  EXPLAIN (FORMAT JSON) SELECT "tickets".* FROM "tickets" ORDER BY "tickets"."id" ASC LIMIT $1  [["LIMIT", 1]]
Traceback (most recent call last):
        1: from (irb):4
ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR:  relation "tickets" does not exist)

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