Browse Source

limit 1 useless

main
pvincent 3 months ago
parent
commit
f34e1d1972
  1. 1
      lib/semantic/subscribers/active_record.rb

1
lib/semantic/subscribers/active_record.rb

@ -67,6 +67,7 @@ module Semantic
bounds.map { |b| boolean_or_numeric?(b) ? b.to_s : "'#{b}'" }
.each_with_index { |sb, index| statement.gsub!("$#{index + 1}", sb) }
statement.gsub!(/ LIMIT 1$/, '') # LIMIT 1 is useless!
statement
end

Loading…
Cancel
Save