Rails/WhereEquals
cop report offenses with not equivalent auto correction code for database name contained where query since 2.26.0
#1340
Labels
bug
Something isn't working
Expected behavior
not report offenses for this code that contains where clause
database_name.table_name.column_name
style query.That is rubocop-rails v2.25.1 behavior.
NOTE: This query is a query to mysql via Redshift using Redshift Federated Query.
Actual behavior
report offense with not equivalent auto correction code.
Steps to reproduce the problem
Redshift::User.where('mysql.users.status = ?', 1)
RuboCop version
Include the output of
rubocop -V
orbundle exec rubocop -V
if using Bundler. Here's an example:You can see extension cop versions (e.g. rubocop-rails, rubocop-performance, and others) output by rubocop -V,
include them as well. Here's an example:
The text was updated successfully, but these errors were encountered: