Permalink
Browse files

[#1109] Standalone TABLE or VARRAY types are not correctly initialised

before referencing tables load them
  • Loading branch information...
1 parent d40772a commit 63d038b6c647b124cf65b81b63c020f5e413f7d2 @lukaseder lukaseder committed May 1, 2012
@@ -106,10 +106,6 @@
import org.jooq.test.oracle.generatedclasses.test.Sequences;
import org.jooq.test.oracle.generatedclasses.test.packages.Library;
import org.jooq.test.oracle.generatedclasses.test.routines.F377;
-import org.jooq.test.oracle.generatedclasses.test.routines.FArrays1;
-import org.jooq.test.oracle.generatedclasses.test.routines.FArrays4;
-import org.jooq.test.oracle.generatedclasses.test.routines.FTables1;
-import org.jooq.test.oracle.generatedclasses.test.routines.FTables4;
import org.jooq.test.oracle.generatedclasses.test.tables.VIncomplete;
import org.jooq.test.oracle.generatedclasses.test.tables.records.TArraysRecord;
import org.jooq.test.oracle.generatedclasses.test.tables.records.TAuthorRecord;
@@ -832,13 +828,6 @@ public void testOraclePipelinedFunctions() throws Exception {
@Test
public void testOracleTableTypes() throws Exception {
- // TODO [#523] [#1109] These two statements are needed when running this test
- // in standalone mode. The data type is not registered automatically for
- // ArrayRecords
- new FArrays1();
- new FTables1();
- new FArrays4();
- new FTables4();
// FIRST, check unnesting of VARRAY/TABLE of NUMBER
// ------------------------------------------------
@@ -100,12 +100,16 @@ protected ArrayRecordImpl(String name, DataType<T> type) {
/**
* Create an empty array record
*/
+ @SuppressWarnings("unchecked")
protected ArrayRecordImpl(Schema schema, String name, DataType<T> type, Configuration configuration) {
super(configuration);
this.schema = schema;
this.name = name;
this.type = type;
+
+ // Array data type initialisation
+ type.asArrayDataType(getClass());
}
/**

0 comments on commit 63d038b

Please sign in to comment.