[#4324] DROP SEQUENCE statement has a mandatory RESTRICT keyword in Derby
This commit is contained in:
parent
a762a767ef
commit
0dc660ebc6
@ -5183,7 +5183,7 @@ public interface DSLContext extends Scope {
|
||||
*
|
||||
* @see DSL#dropSequence(String)
|
||||
*/
|
||||
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
|
||||
@Support({ DERBY, FIREBIRD, H2, HSQLDB, POSTGRES })
|
||||
DropSequenceFinalStep dropSequence(String sequence);
|
||||
|
||||
/**
|
||||
@ -5191,7 +5191,7 @@ public interface DSLContext extends Scope {
|
||||
*
|
||||
* @see DSL#dropSequence(Name)
|
||||
*/
|
||||
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
|
||||
@Support({ DERBY, FIREBIRD, H2, HSQLDB, POSTGRES })
|
||||
DropSequenceFinalStep dropSequence(Name sequence);
|
||||
|
||||
/**
|
||||
@ -5199,7 +5199,7 @@ public interface DSLContext extends Scope {
|
||||
*
|
||||
* @see DSL#dropSequence(Sequence)
|
||||
*/
|
||||
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
|
||||
@Support({ DERBY, FIREBIRD, H2, HSQLDB, POSTGRES })
|
||||
DropSequenceFinalStep dropSequence(Sequence<?> sequence);
|
||||
|
||||
/**
|
||||
|
||||
@ -4665,7 +4665,7 @@ public class DSL {
|
||||
*
|
||||
* @see DSLContext#dropSequence(String)
|
||||
*/
|
||||
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
|
||||
@Support({ DERBY, FIREBIRD, H2, HSQLDB, POSTGRES })
|
||||
public static <T extends Number> DropSequenceFinalStep dropSequence(String sequence) {
|
||||
return using(new DefaultConfiguration()).dropSequence(sequence);
|
||||
}
|
||||
@ -4675,7 +4675,7 @@ public class DSL {
|
||||
*
|
||||
* @see DSLContext#dropSequence(Name)
|
||||
*/
|
||||
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
|
||||
@Support({ DERBY, FIREBIRD, H2, HSQLDB, POSTGRES })
|
||||
public static <T extends Number> DropSequenceFinalStep dropSequence(Name sequence) {
|
||||
return using(new DefaultConfiguration()).dropSequence(sequence);
|
||||
}
|
||||
@ -4685,7 +4685,7 @@ public class DSL {
|
||||
*
|
||||
* @see DSLContext#dropSequence(Sequence)
|
||||
*/
|
||||
@Support({ FIREBIRD, H2, HSQLDB, POSTGRES })
|
||||
@Support({ DERBY, FIREBIRD, H2, HSQLDB, POSTGRES })
|
||||
public static <T extends Number> DropSequenceFinalStep dropSequence(Sequence<?> sequence) {
|
||||
return using(new DefaultConfiguration()).dropSequence(sequence);
|
||||
}
|
||||
|
||||
@ -115,8 +115,12 @@ class DropSequenceImpl extends AbstractQuery implements
|
||||
if (ifExists && supportsIfExists(ctx))
|
||||
ctx.keyword("if exists").sql(' ');
|
||||
|
||||
ctx.visit(sequence)
|
||||
.end(DROP_SEQUENCE_SEQUENCE);
|
||||
ctx.visit(sequence);
|
||||
|
||||
if (ctx.family() == DERBY)
|
||||
ctx.sql(' ').keyword("restrict");
|
||||
|
||||
ctx.end(DROP_SEQUENCE_SEQUENCE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
Reference in New Issue
Block a user