[jOOQ/jOOQ#15815] Add more emulation support for ALTER TABLE .. DROP

CONSTRAINT IF EXISTS

Support added for:

- Db2
- Firebird
- MariaDB 10.4
- Oracle
- SQL Server
This commit is contained in:
Lukas Eder 2023-11-10 13:43:16 +01:00
parent 0f7869164b
commit ecbbb734b4
2 changed files with 6 additions and 4 deletions

View File

@ -57,6 +57,7 @@ import static org.jooq.SQLDialect.IGNITE;
// ...
import static org.jooq.SQLDialect.MARIADB;
// ...
// ...
import static org.jooq.SQLDialect.MYSQL;
// ...
// ...
@ -703,7 +704,7 @@ public interface AlterTableStep {
* statement.
*/
@NotNull @CheckReturnValue
@Support({ H2, POSTGRES, YUGABYTEDB })
@Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
AlterTableDropStep dropIfExists(Constraint constraint);
/**
@ -713,7 +714,7 @@ public interface AlterTableStep {
* @see DSL#constraint(String)
*/
@NotNull @CheckReturnValue
@Support({ H2, POSTGRES, YUGABYTEDB })
@Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
AlterTableDropStep dropConstraintIfExists(Constraint constraint);
/**
@ -723,7 +724,7 @@ public interface AlterTableStep {
* @see DSL#constraint(String)
*/
@NotNull @CheckReturnValue
@Support({ H2, POSTGRES, YUGABYTEDB })
@Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
AlterTableDropStep dropConstraintIfExists(Name constraint);
/**
@ -733,7 +734,7 @@ public interface AlterTableStep {
* @see DSL#constraint(String)
*/
@NotNull @CheckReturnValue
@Support({ H2, POSTGRES, YUGABYTEDB })
@Support({ FIREBIRD, H2, MARIADB, POSTGRES, YUGABYTEDB })
AlterTableDropStep dropConstraintIfExists(String constraint);
/**

View File

@ -5529,6 +5529,7 @@ final class Tools {
case FIREBIRD: {