Fix HANA test failures

This commit is contained in:
Christian Beikov 2022-01-04 15:17:22 +01:00
parent de1de9f629
commit afe9b6744e
2 changed files with 7 additions and 1 deletions

View File

@ -289,6 +289,7 @@ public abstract class AbstractHANADialect extends Dialect {
CommonFunctionFactory.cosh( queryEngine );
CommonFunctionFactory.sinh( queryEngine );
CommonFunctionFactory.tanh( queryEngine );
CommonFunctionFactory.log10_log( queryEngine );
CommonFunctionFactory.bitand( queryEngine );
CommonFunctionFactory.hourMinuteSecond( queryEngine );
CommonFunctionFactory.yearMonthDay( queryEngine );
@ -1106,6 +1107,11 @@ public abstract class AbstractHANADialect extends Dialect {
}
}
@Override
public String generatedAs(String generatedAs) {
return " generated always as (" + generatedAs + ")";
}
public boolean isUseUnicodeStringTypes() {
return this.useUnicodeStringTypes;
}

View File

@ -99,7 +99,7 @@ public class CommonFunctionFactory {
}
/**
* For Oracle
* For Oracle and HANA
*/
public static void log10_log(QueryEngine queryEngine) {
queryEngine.getSqmFunctionRegistry().patternDescriptorBuilder( "log10", "log(10,?1)" )