[jOOQ/jOOQ#10153] Get HANA dialect support up to date
This commit is contained in:
parent
4bb01eb4d7
commit
dcc6c0e155
@ -44,6 +44,7 @@ package org.jooq;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.DERBY;
|
||||
import static org.jooq.SQLDialect.H2;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.HSQLDB;
|
||||
import static org.jooq.SQLDialect.MARIADB;
|
||||
// ...
|
||||
|
||||
@ -44,6 +44,7 @@ package org.jooq;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.DERBY;
|
||||
import static org.jooq.SQLDialect.H2;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.HSQLDB;
|
||||
import static org.jooq.SQLDialect.MARIADB;
|
||||
// ...
|
||||
|
||||
@ -39,6 +39,7 @@ package org.jooq;
|
||||
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.H2;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.HSQLDB;
|
||||
import static org.jooq.SQLDialect.POSTGRES;
|
||||
// ...
|
||||
|
||||
@ -48,6 +48,7 @@ import static org.jooq.SQLDialect.DERBY;
|
||||
import static org.jooq.SQLDialect.FIREBIRD;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.H2;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.HSQLDB;
|
||||
// ...
|
||||
// ...
|
||||
|
||||
@ -39,6 +39,7 @@ package org.jooq;
|
||||
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.H2;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.HSQLDB;
|
||||
import static org.jooq.SQLDialect.POSTGRES;
|
||||
// ...
|
||||
|
||||
@ -37,6 +37,7 @@
|
||||
*/
|
||||
package org.jooq;
|
||||
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.POSTGRES;
|
||||
|
||||
@ -37,6 +37,7 @@
|
||||
*/
|
||||
package org.jooq;
|
||||
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.POSTGRES;
|
||||
|
||||
@ -37,6 +37,7 @@
|
||||
*/
|
||||
package org.jooq;
|
||||
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.POSTGRES;
|
||||
|
||||
@ -37,6 +37,7 @@
|
||||
*/
|
||||
package org.jooq;
|
||||
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.POSTGRES;
|
||||
|
||||
@ -50,6 +50,7 @@ import static org.jooq.SQLDialect.FIREBIRD;
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.impl.DSL.index;
|
||||
import static org.jooq.impl.DSL.inline;
|
||||
import static org.jooq.impl.DSL.name;
|
||||
|
||||
@ -40,10 +40,16 @@ package org.jooq.impl;
|
||||
import static org.jooq.Clause.ALTER_SCHEMA;
|
||||
import static org.jooq.Clause.ALTER_SCHEMA_RENAME;
|
||||
import static org.jooq.Clause.ALTER_SCHEMA_SCHEMA;
|
||||
// ...
|
||||
import static org.jooq.impl.DSL.name;
|
||||
import static org.jooq.impl.Keywords.K_ALTER_SCHEMA;
|
||||
import static org.jooq.impl.Keywords.K_IF_EXISTS;
|
||||
import static org.jooq.impl.Keywords.K_RENAME;
|
||||
import static org.jooq.impl.Keywords.K_RENAME_TO;
|
||||
import static org.jooq.impl.Keywords.K_SCHEMA;
|
||||
import static org.jooq.impl.Keywords.K_TO;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import org.jooq.AlterSchemaFinalStep;
|
||||
import org.jooq.AlterSchemaStep;
|
||||
@ -51,6 +57,8 @@ import org.jooq.Clause;
|
||||
import org.jooq.Configuration;
|
||||
import org.jooq.Context;
|
||||
import org.jooq.Name;
|
||||
// ...
|
||||
import org.jooq.SQLDialect;
|
||||
import org.jooq.Schema;
|
||||
|
||||
/**
|
||||
@ -65,12 +73,16 @@ final class AlterSchemaImpl extends AbstractRowCountQuery implements
|
||||
/**
|
||||
* Generated UID
|
||||
*/
|
||||
private static final long serialVersionUID = 8904572826501186329L;
|
||||
private static final Clause[] CLAUSES = { ALTER_SCHEMA };
|
||||
private static final long serialVersionUID = 8904572826501186329L;
|
||||
private static final Clause[] CLAUSES = { ALTER_SCHEMA };
|
||||
|
||||
private final Schema schema;
|
||||
private final boolean ifExists;
|
||||
private Schema renameTo;
|
||||
|
||||
|
||||
|
||||
|
||||
private final Schema schema;
|
||||
private final boolean ifExists;
|
||||
private Schema renameTo;
|
||||
|
||||
AlterSchemaImpl(Configuration configuration, Schema schema) {
|
||||
this(configuration, schema, false);
|
||||
@ -113,8 +125,14 @@ final class AlterSchemaImpl extends AbstractRowCountQuery implements
|
||||
|
||||
@Override
|
||||
public final void accept(Context<?> ctx) {
|
||||
ctx.start(ALTER_SCHEMA_SCHEMA)
|
||||
.visit(K_ALTER_SCHEMA);
|
||||
ctx.start(ALTER_SCHEMA_SCHEMA);
|
||||
|
||||
boolean supportRename = false;
|
||||
|
||||
if (supportRename)
|
||||
ctx.visit(K_RENAME).sql(' ').visit(K_SCHEMA);
|
||||
else
|
||||
ctx.visit(K_ALTER_SCHEMA);
|
||||
|
||||
if (ifExists)
|
||||
ctx.sql(' ').visit(K_IF_EXISTS);
|
||||
@ -129,7 +147,7 @@ final class AlterSchemaImpl extends AbstractRowCountQuery implements
|
||||
|
||||
ctx.start(ALTER_SCHEMA_RENAME)
|
||||
.qualify(false)
|
||||
.visit(K_RENAME_TO).sql(' ').visit(renameTo)
|
||||
.visit(supportRename ? K_TO : K_RENAME_TO).sql(' ').visit(renameTo)
|
||||
.qualify(qualify)
|
||||
.end(ALTER_SCHEMA_RENAME);
|
||||
}
|
||||
|
||||
@ -1480,8 +1480,14 @@ final class AlterTableImpl extends AbstractRowCountQuery implements
|
||||
break;
|
||||
}
|
||||
|
||||
ctx.sql(' ')
|
||||
.qualify(false)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ctx.sql(' ');
|
||||
|
||||
ctx.qualify(false)
|
||||
.visit(alterColumn)
|
||||
.qualify(true);
|
||||
|
||||
@ -1594,6 +1600,11 @@ final class AlterTableImpl extends AbstractRowCountQuery implements
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ctx.end(ALTER_TABLE_ALTER);
|
||||
}
|
||||
else if (dropColumns != null) {
|
||||
|
||||
@ -42,6 +42,7 @@ import static org.jooq.Clause.CONSTRAINT;
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.impl.ConstraintImpl.Action.CASCADE;
|
||||
import static org.jooq.impl.ConstraintImpl.Action.NO_ACTION;
|
||||
import static org.jooq.impl.ConstraintImpl.Action.RESTRICT;
|
||||
|
||||
@ -37,6 +37,7 @@
|
||||
*/
|
||||
package org.jooq.impl;
|
||||
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.conf.ParamType.INLINED;
|
||||
import static org.jooq.impl.DSL.cast;
|
||||
@ -320,6 +321,17 @@ implements
|
||||
else if (passingMechanism == BY_VALUE)
|
||||
ctx.sql(' ').visit(K_BY).sql(' ').visit(K_VALUE);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ctx.sql(' ').visit(passing);
|
||||
}
|
||||
|
||||
@ -358,6 +370,10 @@ implements
|
||||
|
||||
if (path != null)
|
||||
ctx.sql(' ').visit(K_PATH).sql(' ').visit(inline(path));
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user