[jOOQ/jOOQ#10528] Get SQL Server procedural logic up to date
This commit is contained in:
parent
9ca2a49641
commit
3a2c761bad
@ -49,6 +49,8 @@ import static org.jooq.SQLDialect.MARIADB;
|
||||
import static org.jooq.SQLDialect.MYSQL;
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.POSTGRES;
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.conf.ParamType.INLINED;
|
||||
import static org.jooq.impl.Keywords.K_ALIAS;
|
||||
import static org.jooq.impl.Keywords.K_AS;
|
||||
@ -116,6 +118,8 @@ final class BlockImpl extends AbstractRowCountQuery implements Block {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
final Collection<? extends Statement> statements;
|
||||
final boolean alwaysWrapInBeginEnd;
|
||||
|
||||
@ -135,11 +139,9 @@ final class BlockImpl extends AbstractRowCountQuery implements Block {
|
||||
.visit(K_EXECUTE_BLOCK).sql(' ').visit(K_AS).formatSeparator();
|
||||
|
||||
ctx.data(DATA_FORCE_STATIC_STATEMENT, true);
|
||||
scopeDeclarations(ctx, c -> accept0(c));
|
||||
}
|
||||
else
|
||||
accept0(ctx);
|
||||
|
||||
accept0(ctx);
|
||||
decrement(ctx.data(), DATA_BLOCK_NESTING);
|
||||
break;
|
||||
}
|
||||
@ -194,7 +196,6 @@ final class BlockImpl extends AbstractRowCountQuery implements Block {
|
||||
|
||||
|
||||
|
||||
|
||||
case MYSQL: {
|
||||
String name = randomName();
|
||||
|
||||
@ -350,6 +351,15 @@ final class BlockImpl extends AbstractRowCountQuery implements Block {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -280,6 +280,10 @@ package org.jooq.impl;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -128,5 +128,6 @@ package org.jooq.impl;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user