[#8424] Better VALUES() emulation in Informix using TABLE(MULTISET)

This commit is contained in:
lukaseder 2019-03-18 09:41:28 +01:00
parent 6fa0d3ccad
commit 6b6627dc89

View File

@ -38,6 +38,9 @@
package org.jooq.impl;
import static org.jooq.Clause.TABLE_VALUES;
// ...
import static org.jooq.impl.Keywords.K_MULTISET;
import static org.jooq.impl.Keywords.K_TABLE;
import static org.jooq.impl.Keywords.K_VALUES;
import org.jooq.Context;
@ -109,7 +112,6 @@ final class Values<R extends Record> extends AbstractTable<R> {
case FIREBIRD:
case MARIADB:
case MYSQL: {
@ -147,9 +149,16 @@ final class Values<R extends Record> extends AbstractTable<R> {
default: {
ctx.start(TABLE_VALUES)
.visit(K_VALUES);
ctx.start(TABLE_VALUES);
ctx.visit(K_VALUES);
if (rows.length > 1)
ctx.formatIndentStart()
@ -167,6 +176,10 @@ final class Values<R extends Record> extends AbstractTable<R> {
ctx.formatIndentEnd()
.formatNewLine();
ctx.end(TABLE_VALUES);
break;
}