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

Breaks with Rails 6 #5

Open
rubenfonseca opened this issue Aug 23, 2019 · 0 comments
Open

Breaks with Rails 6 #5

rubenfonseca opened this issue Aug 23, 2019 · 0 comments

Comments

@rubenfonseca
Copy link

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)
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

1 participant