[#7711] Support recent features for Sybase ASE
This commit is contained in:
parent
c09ca54349
commit
63379a2343
@ -48,6 +48,7 @@ import static org.jooq.Clause.TABLE_REFERENCE;
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.CUBRID;
|
||||
import static org.jooq.SQLDialect.DERBY;
|
||||
import static org.jooq.SQLDialect.FIREBIRD;
|
||||
|
||||
@ -109,6 +109,7 @@ import static org.jooq.impl.Keywords.K_RENAME_INDEX;
|
||||
import static org.jooq.impl.Keywords.K_RENAME_OBJECT;
|
||||
import static org.jooq.impl.Keywords.K_RENAME_TABLE;
|
||||
import static org.jooq.impl.Keywords.K_RENAME_TO;
|
||||
import static org.jooq.impl.Keywords.K_REPLACE;
|
||||
import static org.jooq.impl.Keywords.K_SET_DATA_TYPE;
|
||||
import static org.jooq.impl.Keywords.K_SET_DEFAULT;
|
||||
import static org.jooq.impl.Keywords.K_SET_NOT_NULL;
|
||||
@ -117,6 +118,7 @@ import static org.jooq.impl.Keywords.K_TO;
|
||||
import static org.jooq.impl.Keywords.K_TYPE;
|
||||
import static org.jooq.impl.Keywords.K_USING_INDEX;
|
||||
import static org.jooq.impl.Keywords.K_WHEN;
|
||||
import static org.jooq.impl.Keywords.K_WITH_NO_DATACOPY;
|
||||
import static org.jooq.impl.Tools.begin;
|
||||
import static org.jooq.impl.Tools.beginExecuteImmediate;
|
||||
import static org.jooq.impl.Tools.beginTryCatch;
|
||||
@ -722,6 +724,8 @@ final class AlterTableImpl extends AbstractQuery implements
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1035,6 +1039,14 @@ final class AlterTableImpl extends AbstractQuery implements
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1112,6 +1124,7 @@ final class AlterTableImpl extends AbstractQuery implements
|
||||
|
||||
|
||||
|
||||
|
||||
default:
|
||||
ctx.sql(' ').visit(K_SET_DEFAULT);
|
||||
break;
|
||||
@ -1174,6 +1187,11 @@ final class AlterTableImpl extends AbstractQuery implements
|
||||
ctx.sql(' ').visit(K_CASCADE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ctx.end(ALTER_TABLE_DROP);
|
||||
}
|
||||
else if (dropConstraint != null) {
|
||||
@ -1213,6 +1231,7 @@ final class AlterTableImpl extends AbstractQuery implements
|
||||
|
||||
|
||||
|
||||
|
||||
default:
|
||||
ctx.visit(K_DROP);
|
||||
break;
|
||||
@ -1308,6 +1327,9 @@ final class AlterTableImpl extends AbstractQuery implements
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -37,6 +37,7 @@
|
||||
*/
|
||||
package org.jooq.impl;
|
||||
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.FIREBIRD;
|
||||
@ -184,6 +185,7 @@ final class BlockImpl extends AbstractQuery implements Block {
|
||||
|
||||
|
||||
|
||||
|
||||
case FIREBIRD:
|
||||
case MARIADB:
|
||||
default:
|
||||
@ -214,6 +216,9 @@ final class BlockImpl extends AbstractQuery implements Block {
|
||||
|
||||
|
||||
if (!(s instanceof Block))
|
||||
|
||||
|
||||
|
||||
ctx.sql(';');
|
||||
}
|
||||
}
|
||||
@ -231,6 +236,7 @@ final class BlockImpl extends AbstractQuery implements Block {
|
||||
|
||||
|
||||
|
||||
|
||||
default:
|
||||
ctx.sql(';');
|
||||
}
|
||||
|
||||
@ -303,6 +303,7 @@ final class Keywords {
|
||||
static final Keyword K_WITH_GRANT_OPTION = keyword("with grant option");
|
||||
static final Keyword K_WITH_LOCK = keyword("with lock");
|
||||
static final Keyword K_WITH_NO_DATA = keyword("with no data");
|
||||
static final Keyword K_WITH_NO_DATACOPY = keyword("with no datacopy");
|
||||
static final Keyword K_WITH_PRIMARY_KEY = keyword("with primary key");
|
||||
static final Keyword K_WITH_READ_ONLY = keyword("with read only");
|
||||
static final Keyword K_WITH_ROLLUP = keyword("with rollup");
|
||||
|
||||
@ -37,6 +37,7 @@
|
||||
*/
|
||||
package org.jooq.impl;
|
||||
|
||||
// ...
|
||||
import static org.jooq.impl.DSL.falseCondition;
|
||||
import static org.jooq.impl.DSL.one;
|
||||
import static org.jooq.impl.DSL.select;
|
||||
@ -69,8 +70,13 @@ final class NullStatement extends AbstractStatement {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
default:
|
||||
ctx.visit(K_NULL);
|
||||
ctx.visit(K_NULL).sql(';');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user