Skip to content

Commit

Permalink
Fix paged_operations oracle/db2 specs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Sep 28, 2023
1 parent 450dea5 commit a0d281c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/extensions/paged_operations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,19 +182,19 @@
end

it "should raise error for DB2 with emulated offsets" do
@c.dataset = Sequel.mock('db2')[:t]
@c.dataset = Sequel.connect('mock://db2')[:t]
ds = @c.dataset
proc{ds.offset(1).paged_delete}.must_raise Sequel::Error
proc{ds.offset(1).paged_update(:x=>1)}.must_raise Sequel::Error
proc{ds.offset(1).paged_datasets{}}.must_raise Sequel::Error
proc{ds.paged_delete}.must_raise Sequel::Error
proc{ds.paged_update(:x=>1)}.must_raise Sequel::Error
proc{ds.paged_datasets{}}.must_raise Sequel::Error
end

it "should raise error paged_delete for Oracle with emulated offsets" do
db = Sequel.mock('oracle')
def db.server_version; 11020002; end
db = Sequel.connect('mock://oracle')
def db.server_version(_=nil); 11020002; end
@c.dataset = db[:t]
ds = @c.dataset
proc{ds.offset(1).paged_delete}.must_raise Sequel::Error
proc{ds.paged_delete}.must_raise Sequel::Error
end

it "should raise error for dataset with offset" do
Expand Down

0 comments on commit a0d281c

Please sign in to comment.