[#1730] Compilation errors in SQLite generated code when flag
<instanceFields/> is set to true
This commit is contained in:
parent
c8d2b997dc
commit
e346394ac7
@ -1582,7 +1582,15 @@ public class DefaultGenerator extends AbstractGenerator {
|
||||
out.println(" alias) {");
|
||||
|
||||
out.print("\t\tsuper(alias, ");
|
||||
out.print(strategy.getFullJavaIdentifier(schema));
|
||||
|
||||
// [#1730] Prevent compilation errors
|
||||
if (schema.isDefaultSchema()) {
|
||||
out.print("null");
|
||||
}
|
||||
else {
|
||||
out.print(strategy.getFullJavaIdentifier(schema));
|
||||
}
|
||||
|
||||
out.print(", ");
|
||||
out.print(strategy.getFullJavaIdentifier(table));
|
||||
out.println(");");
|
||||
|
||||
@ -57,7 +57,11 @@ public class TableImpl<R extends Record> extends AbstractTable<R> {
|
||||
private final AliasProviderImpl<Table<R>> alias;
|
||||
|
||||
public TableImpl(String name) {
|
||||
this(name, null);
|
||||
this(name, null, null);
|
||||
}
|
||||
|
||||
public TableImpl(String name, Table<R> aliased) {
|
||||
this(name, null, aliased);
|
||||
}
|
||||
|
||||
public TableImpl(String name, Schema schema) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user