File tree Expand file tree Collapse file tree 7 files changed +34
-7
lines changed
src/test/java/com/querydsl/jpa/suites
src/test/java/com/querydsl/sql/codegen Expand file tree Collapse file tree 7 files changed +34
-7
lines changed Original file line number Diff line number Diff line change 45
45
<hsqldb .version>2.6.0</hsqldb .version>
46
46
<h2 .version>1.4.197</h2 .version>
47
47
<postgresql .version>42.3.4</postgresql .version>
48
- <oracle .version>11.2 .0.4 </oracle .version>
48
+ <oracle .version>21.7 .0.0 </oracle .version>
49
49
<mysql .version>8.0.29</mysql .version>
50
50
<mssql .version>11.2.1.jre8</mssql .version>
51
51
<cubrid .version>9.3.9.0002</cubrid .version>
432
432
<exclude >org.apche.derby:derby:*:*:compile</exclude >
433
433
<exclude >mysql:mysql-connector-java:*:*:compile</exclude >
434
434
<exclude >com.microsoft.sqlserver:mssql-jdbc:*:*:compile</exclude >
435
- <exclude >com.oracle:ojdbc6 :*:*:compile</exclude >
435
+ <exclude >com.oracle:ojdbc8 :*:*:compile</exclude >
436
436
<exclude >org.postgresql:postgresql:*:*:compile</exclude >
437
437
<exclude >cubrid:cubrid-jdbc:*:*:compile</exclude >
438
438
<exclude >org.firebirdsql.jdbc:jaybird:*:*:compile</exclude >
Original file line number Diff line number Diff line change 194
194
</dependency >
195
195
<dependency >
196
196
<groupId >com.oracle.database.jdbc</groupId >
197
- <artifactId >ojdbc6 </artifactId >
197
+ <artifactId >ojdbc8 </artifactId >
198
198
<version >${oracle.version} </version >
199
199
<scope >test</scope >
200
200
</dependency >
Original file line number Diff line number Diff line change 1
1
package com .querydsl .jpa .suites ;
2
2
3
+ import java .util .TimeZone ;
4
+
5
+ import org .junit .AfterClass ;
3
6
import org .junit .BeforeClass ;
4
7
import org .junit .experimental .categories .Category ;
5
8
@@ -17,10 +20,23 @@ public static class Serialization extends SerializationBase { }
17
20
public static class Hibernate extends HibernateBase { }
18
21
public static class HibernateSQL extends HibernateSQLBase { }
19
22
23
+ private static TimeZone defaultZone ;
24
+
20
25
@ BeforeClass
21
26
public static void setUp () throws Exception {
22
27
Mode .mode .set ("oracle" );
23
28
Mode .target .set (Target .ORACLE );
29
+
30
+ // change time zone to work around ORA-01882
31
+ // see https://gist.github.com/jarek-przygodzki/cbea3cedae3aef2bbbe0ff6b057e8321
32
+ // the test may work fine on your machine without this, but it fails when the GitHub runner executes it
33
+ defaultZone = TimeZone .getDefault ();
34
+ TimeZone .setDefault (TimeZone .getTimeZone ("UTC" ));
35
+ }
36
+
37
+ @ AfterClass
38
+ public static void tearDown () {
39
+ TimeZone .setDefault (defaultZone );
24
40
}
25
41
26
42
}
Original file line number Diff line number Diff line change 97
97
</dependency >
98
98
<dependency >
99
99
<groupId >com.oracle.database.jdbc</groupId >
100
- <artifactId >ojdbc6 </artifactId >
100
+ <artifactId >ojdbc8 </artifactId >
101
101
<version >${oracle.version} </version >
102
102
<scope >test</scope >
103
103
</dependency >
Original file line number Diff line number Diff line change 13
13
*/
14
14
package com .querydsl .sql .codegen ;
15
15
16
+ import java .util .TimeZone ;
17
+
16
18
import org .junit .BeforeClass ;
17
19
import org .junit .experimental .categories .Category ;
18
20
@@ -24,7 +26,16 @@ public class ExportOracleTest extends ExportBaseTest {
24
26
25
27
@ BeforeClass
26
28
public static void setUpClass () throws Exception {
27
- Connections .initOracle ();
29
+ TimeZone tz = TimeZone .getDefault ();
30
+ try {
31
+ // change time zone to work around ORA-01882
32
+ // see https://gist.github.com/jarek-przygodzki/cbea3cedae3aef2bbbe0ff6b057e8321
33
+ // the test may work fine on your machine without this, but it fails when the GitHub runner executes it
34
+ TimeZone .setDefault (TimeZone .getTimeZone ("UTC" ));
35
+ Connections .initOracle ();
36
+ } finally {
37
+ TimeZone .setDefault (tz );
38
+ }
28
39
}
29
40
30
41
@ Override
Original file line number Diff line number Diff line change 119
119
</dependency >
120
120
<dependency >
121
121
<groupId >com.oracle.database.jdbc</groupId >
122
- <artifactId >ojdbc6 </artifactId >
122
+ <artifactId >ojdbc8 </artifactId >
123
123
<version >${oracle.version} </version >
124
124
<scope >test</scope >
125
125
</dependency >
Original file line number Diff line number Diff line change 107
107
</dependency >
108
108
<dependency >
109
109
<groupId >com.oracle.database.jdbc</groupId >
110
- <artifactId >ojdbc6 </artifactId >
110
+ <artifactId >ojdbc8 </artifactId >
111
111
<version >${oracle.version} </version >
112
112
<scope >test</scope >
113
113
</dependency >
You can’t perform that action at this time.
0 commit comments