Skip to content

Commit

Permalink
[#1109] Standalone TABLE or VARRAY types are not correctly initialised
Browse files Browse the repository at this point in the history
before referencing tables load them
  • Loading branch information
lukaseder committed May 1, 2012
1 parent d40772a commit 63d038b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
11 changes: 0 additions & 11 deletions jOOQ-test/src/org/jooq/test/jOOQOracleTest.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@
import org.jooq.test.oracle.generatedclasses.test.Sequences; import org.jooq.test.oracle.generatedclasses.test.Sequences;
import org.jooq.test.oracle.generatedclasses.test.packages.Library; 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.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.VIncomplete;
import org.jooq.test.oracle.generatedclasses.test.tables.records.TArraysRecord; import org.jooq.test.oracle.generatedclasses.test.tables.records.TArraysRecord;
import org.jooq.test.oracle.generatedclasses.test.tables.records.TAuthorRecord; import org.jooq.test.oracle.generatedclasses.test.tables.records.TAuthorRecord;
Expand Down Expand Up @@ -832,13 +828,6 @@ public void testOraclePipelinedFunctions() throws Exception {


@Test @Test
public void testOracleTableTypes() throws Exception { 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 // FIRST, check unnesting of VARRAY/TABLE of NUMBER
// ------------------------------------------------ // ------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions jOOQ/src/main/java/org/jooq/impl/ArrayRecordImpl.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -100,12 +100,16 @@ protected ArrayRecordImpl(String name, DataType<T> type) {
/** /**
* Create an empty array record * Create an empty array record
*/ */
@SuppressWarnings("unchecked")
protected ArrayRecordImpl(Schema schema, String name, DataType<T> type, Configuration configuration) { protected ArrayRecordImpl(Schema schema, String name, DataType<T> type, Configuration configuration) {
super(configuration); super(configuration);


this.schema = schema; this.schema = schema;
this.name = name; this.name = name;
this.type = type; this.type = type;

// Array data type initialisation
type.asArrayDataType(getClass());
} }


/** /**
Expand Down

0 comments on commit 63d038b

Please sign in to comment.