Skip to content

Commit

Permalink
Add version guard around PostgreSQL spec that uses lock_timeout
Browse files Browse the repository at this point in the history
lock_timeout was added in PostgreSQL 9.3, and Sequel supports back
to PostgreSQL 8.4.
  • Loading branch information
jeremyevans committed Dec 29, 2023
1 parent f7d161f commit 764c774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/adapters/postgres_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def c.exec_prepared(*); super; nil end
# Must disconnect to ensure connections with lock/statement timeout are not left in the pool
@db.disconnect
end
end
end if DB.server_version >= 90300

it "should be able to handle various types of IN/NOT IN queries" do
ds = @db.select(1)
Expand Down

0 comments on commit 764c774

Please sign in to comment.