Skip to content

Commit 6db7366

Browse files
yahondaclaude
andcommitted
Add comments explaining ORA-00942 regex change for Oracle 23c
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3fe091f commit 6db7366

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

spec/plsql/connection_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@
441441
@conn.exec "CREATE GLOBAL TEMPORARY TABLE #{tmp_table} (dummy CHAR(1))"
442442
expect { @conn.select_first("SELECT * FROM #{tmp_table}") }.not_to raise_error
443443
@conn.drop_all_ruby_temporary_tables
444+
# ORA-00942 message in Oracle 23c includes schema and table name:
445+
# 'table or view "SCHEMA"."TABLE" does not exist'
444446
expect { @conn.select_first("SELECT * FROM #{tmp_table}") }.to raise_error(/table or view.*does not exist/)
445447
end
446448

@@ -449,6 +451,7 @@
449451
@conn.exec "CREATE GLOBAL TEMPORARY TABLE #{tmp_table} (dummy CHAR(1))"
450452
expect { @conn.select_first("SELECT * FROM #{tmp_table}") }.not_to raise_error
451453
@conn.drop_session_ruby_temporary_tables
454+
# ORA-00942 message in Oracle 23c includes schema and table name
452455
expect { @conn.select_first("SELECT * FROM #{tmp_table}") }.to raise_error(/table or view.*does not exist/)
453456
end
454457

@@ -483,6 +486,7 @@ def reconnect_connection
483486
expect { @conn.select_first("SELECT * FROM #{tmp_table}") }.not_to raise_error
484487
@conn.logoff
485488
reconnect_connection
489+
# ORA-00942 message in Oracle 23c includes schema and table name
486490
expect { @conn.select_first("SELECT * FROM #{tmp_table}") }.to raise_error(/table or view.*does not exist/)
487491
end
488492

0 commit comments

Comments
 (0)