[jOOQ/jOOQ#14660] Work around Snowflake's INSERT .. VALUES limitation of not being able to reference expressions

This commit is contained in:
Lukas Eder 2023-02-20 15:11:39 +01:00
parent 22a77ea842
commit 0e9b6bfd91
2 changed files with 6 additions and 0 deletions

View File

@ -357,6 +357,7 @@ final class FieldMapsForInsert extends AbstractQueryPart implements UNotYetImple
default:

View File

@ -3799,6 +3799,11 @@ final class Tools {
return field instanceof Param;
}
static final boolean isParamOrCastParam(Field<?> field) {
return field instanceof Param
|| field instanceof Cast && isParamOrCastParam(((Cast<?>) field).$field());
}
static final boolean isVal(Field<?> field) {
return field instanceof Val
|| field instanceof ConvertedVal && ((ConvertedVal<?>) field).delegate instanceof Val;