Skip to content

Commit 3b28ed5

Browse files
yahondaclaude
andcommitted
Accept Closed ResultSet error message in cursor spec
ojdbc17 23.x reports fetches from an auto-closed cursor as ORA-17010 "Closed ResultSet" instead of the older "Closed Statement" message, so the spec regex now also matches the new wording. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f98f69f commit 3b28ed5

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/)
1878+
expect { cursor2.fetch }.to raise_error(/Cursor was already closed|Closed Statement|Closed ResultSet/)
18791879
end
18801880

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

0 commit comments

Comments
 (0)