[#8430] Ignore ON { DELETE | UPDATE } NO ACTION in dialects that do not support the syntax
This commit is contained in:
parent
6b6627dc89
commit
de302f0cc5
@ -52,6 +52,7 @@ import static org.jooq.SQLDialect.HSQLDB;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.MARIADB;
|
||||
import static org.jooq.SQLDialect.MYSQL;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.POSTGRES;
|
||||
import static org.jooq.SQLDialect.SQLITE;
|
||||
// ...
|
||||
@ -87,8 +88,13 @@ public interface ConstraintForeignKeyOnStep extends ConstraintFinalStep {
|
||||
/**
|
||||
* Add an <code>ON DELETE NO ACTION</code> clause to the
|
||||
* <code>FOREIGN KEY</code> constraint.
|
||||
* <p>
|
||||
* This is the standard action according to the SQL standard. If a given
|
||||
* {@link SQLDialect} does not support setting this action explicitly, no
|
||||
* explicit action will be specified and calling this method is equivalent
|
||||
* to not calling any method at all.
|
||||
*/
|
||||
@Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
|
||||
@Support
|
||||
ConstraintForeignKeyOnStep onDeleteNoAction();
|
||||
|
||||
/**
|
||||
@ -109,7 +115,7 @@ public interface ConstraintForeignKeyOnStep extends ConstraintFinalStep {
|
||||
* Add an <code>ON DELETE SET NULL</code> clause to the
|
||||
* <code>FOREIGN KEY</code> constraint.
|
||||
*/
|
||||
@Support
|
||||
@Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
|
||||
ConstraintForeignKeyOnStep onDeleteSetNull();
|
||||
|
||||
/**
|
||||
@ -122,8 +128,13 @@ public interface ConstraintForeignKeyOnStep extends ConstraintFinalStep {
|
||||
/**
|
||||
* Add an <code>ON UPDATE NO ACTION</code> clause to the
|
||||
* <code>FOREIGN KEY</code> constraint.
|
||||
* <p>
|
||||
* This is the standard action according to the SQL standard. If a given
|
||||
* {@link SQLDialect} does not support setting this action explicitly, no
|
||||
* explicit action will be specified and calling this method is equivalent
|
||||
* to not calling any method at all.
|
||||
*/
|
||||
@Support({ CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, MYSQL, POSTGRES, SQLITE })
|
||||
@Support
|
||||
ConstraintForeignKeyOnStep onUpdateNoAction();
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user