Skip to content

Commit 3ffb0cb

Browse files
committed
Skip specs if the Oracle server and client versions do not match
This commit skip specs if it would raise the following error: https://github.com/rsim/oracle-enhanced/actions/runs/10371897254/job/28713269701?pr=2387 ```ruby ActiveRecord::StatementInvalid: OCIError: ORA-01805: possible error in date/time operation ```
1 parent 3a2b84f commit 3ffb0cb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/test_11g.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
DATABASE_HOST: localhost
3737
DATABASE_PORT: 1521
3838
DATABASE_VERSION: 11.2.0.2
39+
DATABASE_SERVER_AND_CLIENT_VERSION_DO_NOT_MATCH: true
3940

4041
services:
4142
oracle:

spec/active_record/oracle_enhanced/type/timestamp_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
end
3636

3737
describe "/ TIMESTAMP WITH TIME ZONE values from ActiveRecord model" do
38+
skip if ENV["DATABASE_SERVER_AND_CLIENT_VERSION_DO_NOT_MATCH"] == "true"
3839
before(:all) do
3940
class ::TestEmployee < ActiveRecord::Base
4041
end

0 commit comments

Comments
 (0)