Skip to content

Commit 5677dee

Browse files
committed
Accept "Closed Resultset" raised by ojdbc11 21.21
After bumping the 11g matrix to Instant Client 21.21 and switching to ojdbc11.jar shipped inside that zip, the driver raises "Java::JavaSql::SQLException: Closed Resultset: next" when fetching from a closed cursor (lowercase 's' in "Resultset"). The previous ojdbc11 23.26 used "Closed ResultSet" (uppercase 'S') which the spec's regex matched. Add the /i flag so both casings — and any future case variant of the same message — match.
1 parent 7600d30 commit 5677dee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/plsql/procedure_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1875,7 +1875,7 @@ def new_candidate(status)
18751875
expect(plsql.test_cursor do |cursor|
18761876
cursor2 = cursor
18771877
end).to be_nil
1878-
expect { cursor2.fetch }.to raise_error(/Cursor was already closed|Closed Statement|Closed ResultSet/)
1878+
expect { cursor2.fetch }.to raise_error(/Cursor was already closed|Closed Statement|Closed ResultSet/i)
18791879
end
18801880

18811881
it "should not raise error if cursor is closed inside block" do

0 commit comments

Comments
 (0)