Skip to content

Commit

Permalink
Added PostGIS to the available addapters for reserve_with_scope method
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Staub committed Dec 7, 2015
1 parent dbebb84 commit c17b3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/backend/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def self.reserve(worker, max_run_time = Worker.max_run_time) # rubocop:disable C
def self.reserve_with_scope(ready_scope, worker, now)
# Optimizations for faster lookups on some common databases
case connection.adapter_name
when "PostgreSQL"
when "PostgreSQL", "PostGIS"
# Custom SQL required for PostgreSQL because postgres does not support UPDATE...LIMIT
# This locks the single record 'FOR UPDATE' in the subquery
# http:https://www.postgresql.org/docs/9.0/static/sql-select.html#SQL-FOR-UPDATE-SHARE
Expand Down

0 comments on commit c17b3d9

Please sign in to comment.