[#430] Add support for the Firebird database - Fixed REPLACE()
This commit is contained in:
parent
102e1f6bf9
commit
bb3df952f2
@ -60,8 +60,7 @@ class Replace extends AbstractFunction<String> {
|
||||
final Field<String> getFunction0(Configuration configuration) {
|
||||
Field<?>[] args = getArguments();
|
||||
|
||||
// [#861] Many dialects don't ship with a single-argument replace
|
||||
// function:
|
||||
// [#861] Most dialects don't ship with a two-argument replace function:
|
||||
switch (configuration.getDialect()) {
|
||||
case ASE: {
|
||||
if (args.length == 2) {
|
||||
@ -73,6 +72,7 @@ class Replace extends AbstractFunction<String> {
|
||||
}
|
||||
|
||||
case DB2:
|
||||
case FIREBIRD:
|
||||
case HSQLDB:
|
||||
case INGRES:
|
||||
case MYSQL:
|
||||
|
||||
@ -153,9 +153,9 @@ class Val<T> extends AbstractField<T> implements Param<T> {
|
||||
// These dialects can hardly detect the type of a bound constant.
|
||||
case DB2:
|
||||
case DERBY:
|
||||
case FIREBIRD:
|
||||
|
||||
// These dialects have some trouble, when they mostly get it right.
|
||||
case FIREBIRD:
|
||||
case H2:
|
||||
case HSQLDB:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user