[jOOQ/jOOQ#10437] Get HANA dialect up to date
This includes: - Re-generated integration test code - LISTAGG() support - MEDIAN() support - Bitwise function support - [jOOQ/jOOQ#9190] CREATE FUNCTION and CREATE PROCEDURE - Fixed STDDEV_POP and VAR_POP functions
This commit is contained in:
parent
0eba4e8dea
commit
49345fff72
@ -48,6 +48,7 @@ import static org.jooq.SQLDialect.CUBRID;
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.H2;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.HSQLDB;
|
||||
import static org.jooq.SQLDialect.MARIADB;
|
||||
import static org.jooq.SQLDialect.MYSQL;
|
||||
|
||||
@ -48,6 +48,7 @@ import static org.jooq.SQLDialect.CUBRID;
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.H2;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.HSQLDB;
|
||||
import static org.jooq.SQLDialect.MARIADB;
|
||||
// ...
|
||||
|
||||
@ -45,6 +45,7 @@ import static org.jooq.SQLDialect.CUBRID;
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.H2;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.HSQLDB;
|
||||
import static org.jooq.SQLDialect.MARIADB;
|
||||
// ...
|
||||
|
||||
@ -38,6 +38,7 @@
|
||||
package org.jooq.impl;
|
||||
|
||||
import static org.jooq.impl.DSL.inline;
|
||||
import static org.jooq.impl.Names.N_BITCOUNT;
|
||||
import static org.jooq.impl.Names.N_BIT_COUNT;
|
||||
import static org.jooq.impl.Names.N_COUNTSET;
|
||||
|
||||
@ -72,6 +73,10 @@ final class BitCount extends AbstractField<Integer> {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// [#3962] The databases listed here are the same ones that need to
|
||||
// emulate the SHR(a, b) function via a / POWER(2, b). BitCount is
|
||||
// expensive enough already, we shouldn't also introduce POWER()
|
||||
|
||||
@ -313,6 +313,10 @@ package org.jooq.impl;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -288,6 +288,14 @@ package org.jooq.impl;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -47,6 +47,7 @@ import static org.jooq.SQLDialect.CUBRID;
|
||||
import static org.jooq.SQLDialect.DERBY;
|
||||
import static org.jooq.SQLDialect.FIREBIRD;
|
||||
import static org.jooq.SQLDialect.H2;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.HSQLDB;
|
||||
// ...
|
||||
// ...
|
||||
|
||||
@ -389,6 +389,7 @@ final class Keywords {
|
||||
static final Keyword K_SQL = keyword("sql");
|
||||
static final Keyword K_SQLCODE = keyword("sqlcode");
|
||||
static final Keyword K_SQLSTATE = keyword("sqlstate");
|
||||
static final Keyword K_SQL_ERROR_CODE = keyword("sql_error_code");
|
||||
static final Keyword K_START_AT = keyword("start at");
|
||||
static final Keyword K_START_WITH = keyword("start with");
|
||||
static final Keyword K_STATEMENT = keyword("statement");
|
||||
|
||||
@ -45,6 +45,7 @@ import static org.jooq.SQLDialect.CUBRID;
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.H2;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.HSQLDB;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.MARIADB;
|
||||
|
||||
@ -374,6 +374,16 @@ package org.jooq.impl;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -91,6 +91,7 @@ final class Names {
|
||||
static final Name N_BITXOR = unquotedName("bitxor");
|
||||
static final Name N_BIT_AND = unquotedName("bit_and");
|
||||
static final Name N_BIT_AND_AGG = unquotedName("bit_and_agg");
|
||||
static final Name N_BITCOUNT = unquotedName("bitcount");
|
||||
static final Name N_BIT_COUNT = unquotedName("bit_count");
|
||||
static final Name N_BIT_LENGTH = unquotedName("bit_length");
|
||||
static final Name N_BIT_OR = unquotedName("bit_or");
|
||||
|
||||
@ -7192,7 +7192,7 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
|
||||
if (N.is(type))
|
||||
if (parseFunctionNameIf("BIT_LENGTH"))
|
||||
return bitLength((Field) parseFieldParenthesised(S));
|
||||
else if (parseFunctionNameIf("BIT_COUNT"))
|
||||
else if (parseFunctionNameIf("BITCOUNT", "BIT_COUNT"))
|
||||
return bitCount((Field) parseFieldNumericOpParenthesised());
|
||||
else if (parseFunctionNameIf("BYTE_LENGTH"))
|
||||
return octetLength((Field) parseFieldParenthesised(S));
|
||||
|
||||
@ -135,6 +135,11 @@ package org.jooq.impl;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -103,16 +103,6 @@ package org.jooq.impl;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -102,7 +102,6 @@ extends
|
||||
|
||||
|
||||
|
||||
|
||||
default:
|
||||
super.acceptFunctionName(ctx);
|
||||
break;
|
||||
|
||||
@ -113,10 +113,6 @@ extends
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
default:
|
||||
super.acceptFunctionName(ctx);
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user