[jOOQ/jOOQ#6956] Support MARIADB and MYSQL
- Added MariaDB annotations - Test workarounds for missing REFERENCING clause support
This commit is contained in:
parent
86cc65c617
commit
19913c0521
@ -483,6 +483,17 @@ package org.jooq.impl;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -50,6 +50,7 @@ import static org.jooq.SQLDialect.FIREBIRD;
|
||||
// ...
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.MYSQL;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.POSTGRES;
|
||||
// ...
|
||||
@ -104,7 +105,7 @@ final class CreateViewImpl<R extends Record> extends AbstractRowCountQuery imple
|
||||
*/
|
||||
private static final long serialVersionUID = 8904572826501186329L;
|
||||
private static final Clause[] CLAUSES = { CREATE_VIEW };
|
||||
private static final Set<SQLDialect> NO_SUPPORT_IF_NOT_EXISTS = SQLDialect.supportedBy(DERBY, FIREBIRD, POSTGRES);
|
||||
private static final Set<SQLDialect> NO_SUPPORT_IF_NOT_EXISTS = SQLDialect.supportedBy(DERBY, FIREBIRD, MYSQL, POSTGRES);
|
||||
|
||||
private final boolean ifNotExists;
|
||||
private final boolean orReplace;
|
||||
|
||||
@ -5284,6 +5284,15 @@ final class Tools {
|
||||
return updateCounts == 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Increment a counter, run a runnable, and decrement the counter again.
|
||||
*/
|
||||
static final void increment(Map<Object, Object> data, DataKey key, Runnable runnable) {
|
||||
increment(data, key);
|
||||
runnable.run();
|
||||
decrement(data, key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Increment a counter and return true if the counter was zero prior to
|
||||
* incrementing.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user