HHH-11806 - Add support for MariaDB 10.3
HHH-11769 - New MariaDB Dialect for MariaDB >= v10.1 Add support for IF EXISTS in constraint clauses
This commit is contained in:
parent
f6aa8abd11
commit
94e8ba7ba5
|
@ -21,4 +21,9 @@ public class MariaDB10Dialect extends MariaDB53Dialect {
|
|||
registerFunction( "to_base64", new StandardSQLFunction( "to_base64", StandardBasicTypes.STRING ) );
|
||||
registerFunction( "from_base64", new StandardSQLFunction( "from_base64", StandardBasicTypes.STRING ) );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean supportsIfExistsBeforeConstraintName() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ import static org.junit.Assert.assertThat;
|
|||
* @author Andrea Boriero
|
||||
*/
|
||||
@TestForIssue(jiraKey = "HHH-12271")
|
||||
@RequiresDialectFeature(DialectChecks.SupportDropCOnstraints.class)
|
||||
@RequiresDialectFeature(DialectChecks.SupportDropConstraints.class)
|
||||
public class ForeignKeyDropTest extends BaseUnitTestCase {
|
||||
private File output;
|
||||
private MetadataImplementor metadata;
|
||||
|
@ -71,7 +71,7 @@ public class ForeignKeyDropTest extends BaseUnitTestCase {
|
|||
|
||||
@Test
|
||||
@TestForIssue(jiraKey = "HHH-11236")
|
||||
public void testForeignKeyDropIsCOrrectlyGenerated() throws Exception {
|
||||
public void testForeignKeyDropIsCorrectlyGenerated() throws Exception {
|
||||
|
||||
schemaExport
|
||||
.drop( EnumSet.of( TargetType.SCRIPT, TargetType.DATABASE ), metadata );
|
||||
|
|
|
@ -230,7 +230,7 @@ abstract public class DialectChecks {
|
|||
}
|
||||
}
|
||||
|
||||
public static class SupportDropCOnstraints implements DialectCheck {
|
||||
public static class SupportDropConstraints implements DialectCheck {
|
||||
public boolean isMatch(Dialect dialect) {
|
||||
return dialect.dropConstraints();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue