[#430] Add support for the Firebird database - Fixed REPLACE()

This commit is contained in:
Lukas Eder 2012-08-19 18:23:28 +02:00
parent 102e1f6bf9
commit bb3df952f2
2 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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: