diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/engines/sql/relations/relation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/engines/sql/relations/relation.rb b/lib/arel/engines/sql/relations/relation.rb index 8b71aa8c04..12b328151f 100644 --- a/lib/arel/engines/sql/relations/relation.rb +++ b/lib/arel/engines/sql/relations/relation.rb @@ -35,7 +35,7 @@ module Arel ("ORDER BY #{order_clauses.join(', ')}" unless orders.blank? ), ("LIMIT #{taken}" unless taken.blank? ), ("OFFSET #{skipped}" unless skipped.blank? ), - ("#{locked}" unless locked.blank? ) + ("#{locked}" unless engine.adapter_name =~ /SQLite/ || locked.blank?) end end |