[jOOQ/jOOQ#14653] Support JSON_GET_ATTRIBUTE and JSON_GET_ELEMENT

This commit is contained in:
Lukas Eder 2023-02-20 16:12:51 +01:00
parent 848b2b9b8a
commit 694f566df9
5 changed files with 126 additions and 0 deletions

View File

@ -92,6 +92,33 @@ implements
// XXX: QueryPart API
// -------------------------------------------------------------------------
@Override
final boolean parenthesised(Context<?> ctx) {
switch (ctx.family()) {
case MARIADB:
case MYSQL:
return false;
default:
return false;
}
}
@Override
public final void accept(Context<?> ctx) {
switch (ctx.family()) {
@ -123,6 +150,10 @@ implements

View File

@ -92,6 +92,33 @@ implements
// XXX: QueryPart API
// -------------------------------------------------------------------------
@Override
final boolean parenthesised(Context<?> ctx) {
switch (ctx.family()) {
case MARIADB:
case MYSQL:
return false;
default:
return false;
}
}
@Override
public final void accept(Context<?> ctx) {
switch (ctx.family()) {
@ -118,6 +145,10 @@ implements

View File

@ -92,6 +92,33 @@ implements
// XXX: QueryPart API
// -------------------------------------------------------------------------
@Override
final boolean parenthesised(Context<?> ctx) {
switch (ctx.family()) {
case MARIADB:
case MYSQL:
return false;
default:
return false;
}
}
@Override
public final void accept(Context<?> ctx) {
switch (ctx.family()) {
@ -123,6 +150,10 @@ implements

View File

@ -92,6 +92,33 @@ implements
// XXX: QueryPart API
// -------------------------------------------------------------------------
@Override
final boolean parenthesised(Context<?> ctx) {
switch (ctx.family()) {
case MARIADB:
case MYSQL:
return false;
default:
return false;
}
}
@Override
public final void accept(Context<?> ctx) {
switch (ctx.family()) {
@ -118,6 +145,10 @@ implements

View File

@ -131,6 +131,7 @@ final class Names {
static final Name N_GENERATOR = systemName("generator");
static final Name N_GEN_ID = systemName("gen_id");
static final Name N_GEN_UUID = systemName("gen_uuid");
static final Name N_GET = systemName("get");
static final Name N_GETDATE = systemName("getdate");
static final Name N_GREATEST = systemName("greatest");
static final Name N_GROUPING_SETS = systemName("grouping sets");
@ -393,6 +394,7 @@ final class Names {
static final Name N_GENERATE_UUID = systemName("generate_uuid");
static final Name N_GENGUID = systemName("genguid");
static final Name N_GEN_RANDOM_UUID = systemName("gen_random_uuid");
static final Name N_GET = systemName("get");
static final Name N_GETBIT = systemName("getbit");
static final Name N_GET_BIT = systemName("get_bit");
static final Name N_GOTO = systemName("goto");