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

before referencing tables load them
This commit is contained in:
Lukas Eder 2012-05-01 22:41:19 +02:00
parent d40772a8d9
commit 63d038b6c6
2 changed files with 4 additions and 11 deletions

View File

@ -106,10 +106,6 @@ import org.jooq.test.oracle.generatedclasses.test.Routines;
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 class jOOQOracleTest extends jOOQAbstractTest<
@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
// ------------------------------------------------

View File

@ -100,12 +100,16 @@ public class ArrayRecordImpl<T> extends AbstractStore<T> implements ArrayRecord<
/**
* 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());
}
/**