[jOOQ/jOOQ#15732] UDT bind variable support
This commit is contained in:
parent
360f69a889
commit
b39e88f4b7
@ -329,7 +329,7 @@ public interface AlterTableStep {
|
||||
* the <code>ALTER TABLE</code> statement.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support({ CLICKHOUSE, FIREBIRD, H2, IGNITE, MARIADB, MYSQL, POSTGRES, YUGABYTEDB })
|
||||
@Support({ CLICKHOUSE, DUCKDB, FIREBIRD, H2, IGNITE, MARIADB, MYSQL, POSTGRES, YUGABYTEDB })
|
||||
AlterTableAddStep add(TableElement... fields);
|
||||
|
||||
/**
|
||||
@ -337,7 +337,7 @@ public interface AlterTableStep {
|
||||
* the <code>ALTER TABLE</code> statement.
|
||||
*/
|
||||
@NotNull @CheckReturnValue
|
||||
@Support({ CLICKHOUSE, FIREBIRD, H2, IGNITE, MARIADB, MYSQL, POSTGRES, YUGABYTEDB })
|
||||
@Support({ CLICKHOUSE, DUCKDB, FIREBIRD, H2, IGNITE, MARIADB, MYSQL, POSTGRES, YUGABYTEDB })
|
||||
AlterTableAddStep add(Collection<? extends TableElement> fields);
|
||||
|
||||
/**
|
||||
|
||||
@ -13692,7 +13692,7 @@ public class DSL {
|
||||
* Create a qualified type, given its type name.
|
||||
*/
|
||||
@NotNull
|
||||
@Support({ H2, POSTGRES, YUGABYTEDB })
|
||||
@Support({ DUCKDB, H2, POSTGRES, YUGABYTEDB })
|
||||
public static Type<?> type(@Stringly.Name String name) {
|
||||
return type(name(name));
|
||||
}
|
||||
@ -13701,7 +13701,7 @@ public class DSL {
|
||||
* Create a qualified type, given its type name.
|
||||
*/
|
||||
@NotNull
|
||||
@Support({ H2, POSTGRES, YUGABYTEDB })
|
||||
@Support({ DUCKDB, H2, POSTGRES, YUGABYTEDB })
|
||||
public static Type<?> type(Name name) {
|
||||
return type(name, SQLDataType.OTHER);
|
||||
}
|
||||
@ -13710,7 +13710,7 @@ public class DSL {
|
||||
* Create a qualified type, given its type name.
|
||||
*/
|
||||
@NotNull
|
||||
@Support({ H2, POSTGRES, YUGABYTEDB })
|
||||
@Support({ DUCKDB, H2, POSTGRES, YUGABYTEDB })
|
||||
public static <T> Type<T> type(@Stringly.Name String name, DataType<T> type) {
|
||||
return type(name(name), type);
|
||||
}
|
||||
@ -13719,7 +13719,7 @@ public class DSL {
|
||||
* Create a qualified type, given its type name.
|
||||
*/
|
||||
@NotNull
|
||||
@Support({ H2, POSTGRES, YUGABYTEDB })
|
||||
@Support({ DUCKDB, H2, POSTGRES, YUGABYTEDB })
|
||||
public static <T> Type<T> type(Name name, DataType<T> type) {
|
||||
return new TypeImpl<>(name, CommentImpl.NO_COMMENT, type);
|
||||
}
|
||||
|
||||
@ -3972,7 +3972,7 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
|
||||
|
||||
|
||||
|
||||
static final Set<SQLDialect> REQUIRE_RECORD_CAST = SQLDialect.supportedBy(POSTGRES, YUGABYTEDB);
|
||||
static final Set<SQLDialect> REQUIRE_RECORD_CAST = SQLDialect.supportedBy(DUCKDB, POSTGRES, YUGABYTEDB);
|
||||
|
||||
DefaultRecordBinding(DataType<Record> dataType, Converter<Record, U> converter) {
|
||||
super(dataType, converter);
|
||||
|
||||
@ -149,6 +149,7 @@ final class QualifiedRecordConstant<R extends QualifiedRecord<R>> extends Abstra
|
||||
|
||||
|
||||
|
||||
case DUCKDB:
|
||||
case POSTGRES:
|
||||
case YUGABYTEDB:
|
||||
c.visit(K_ROW);
|
||||
@ -192,6 +193,7 @@ final class QualifiedRecordConstant<R extends QualifiedRecord<R>> extends Abstra
|
||||
switch (ctx.family()) {
|
||||
|
||||
|
||||
case DUCKDB:
|
||||
case POSTGRES:
|
||||
case YUGABYTEDB:
|
||||
return "ROW";
|
||||
@ -219,6 +221,7 @@ final class QualifiedRecordConstant<R extends QualifiedRecord<R>> extends Abstra
|
||||
|
||||
// Postgres cannot bind a complete structured type. The type is
|
||||
// inlined instead: ROW(.., .., ..)
|
||||
case DUCKDB:
|
||||
case POSTGRES:
|
||||
case YUGABYTEDB: {
|
||||
if (value != null)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user