[jOOQ/jOOQ#11323] Add HSQLDB procedural language support

This commit is contained in:
Lukas Eder 2021-01-27 15:17:19 +01:00
parent 551c6a3a90
commit c89b97d64c
5 changed files with 32 additions and 8 deletions

View File

@ -223,13 +223,14 @@ final class BlockImpl extends AbstractRowCountQuery implements Block {
break;
}
case HSQLDB:
case MARIADB:
default: {
increment(ctx.data(), DATA_BLOCK_NESTING);
accept0(ctx);
@ -473,7 +474,7 @@ final class BlockImpl extends AbstractRowCountQuery implements Block {
if (ctx.family() == MARIADB && toplevel(ctx.data(), DATA_BLOCK_NESTING))
ctx.sql(' ').visit(K_NOT).sql(' ').visit(K_ATOMIC);
else if (ctx.family() == HSQLDB && toplevel(ctx.data(), DATA_BLOCK_NESTING))
else if (ctx.family() == HSQLDB)
ctx.sql(' ').visit(K_ATOMIC);
ctx.formatIndentStart();

View File

@ -523,6 +523,9 @@ package org.jooq.impl;

View File

@ -246,6 +246,7 @@ final class Keywords {
static final Keyword K_MATERIALIZED = keyword("materialized");
static final Keyword K_MAXVALUE = keyword("maxvalue");
static final Keyword K_MERGE_INTO = keyword("merge into");
static final Keyword K_MESSAGE = keyword("message");
static final Keyword K_MESSAGE_TEXT = keyword("message_text");
static final Keyword K_MILLISECOND = keyword("millisecond");
static final Keyword K_MINUS = keyword("minus");

View File

@ -120,6 +120,25 @@ package org.jooq.impl;

View File

@ -5297,7 +5297,7 @@ final class Tools {
if (updateCounts == null)
throw new IllegalStateException();
else
return updateCounts == 1;
return updateCounts.intValue() == 1;
}
/**