|
63 | 63 | import org.hibernate.sql.exec.spi.JdbcOperation;
|
64 | 64 | import org.hibernate.sql.model.MutationOperation;
|
65 | 65 | import org.hibernate.sql.model.internal.OptionalTableUpdate;
|
66 |
| -import org.hibernate.sql.model.jdbc.OptionalTableUpdateOperation; |
67 | 66 | import org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl;
|
68 | 67 | import org.hibernate.tool.schema.extract.spi.SequenceInformationExtractor;
|
69 | 68 | import org.hibernate.type.descriptor.jdbc.H2FormatJsonJdbcType;
|
@@ -335,11 +334,11 @@ public void initializeFunctionRegistry(FunctionContributions functionContributio
|
335 | 334 | }
|
336 | 335 |
|
337 | 336 | /**
|
338 |
| - * H2 requires a very special emulation, because {@code unnest} is pretty much useless, |
339 |
| - * due to https://github.com/h2database/h2database/issues/1815. |
340 |
| - * This emulation uses {@code array_get}, {@code array_length} and {@code system_range} functions to roughly achieve the same, |
341 |
| - * but requires that {@code system_range} is fed with a "maximum array size". |
342 |
| - */ |
| 337 | + * H2 requires a very special emulation, because {@code unnest} is pretty much useless, |
| 338 | + * due to <a href="https://github.com/h2database/h2database/issues/1815">issue 1815</a>. |
| 339 | + * This emulation uses {@code array_get}, {@code array_length} and {@code system_range} functions to roughly achieve the same, |
| 340 | + * but requires that {@code system_range} is fed with a "maximum array size". |
| 341 | + */ |
343 | 342 | protected int getMaximumArraySize() {
|
344 | 343 | return 1000;
|
345 | 344 | }
|
@@ -954,12 +953,12 @@ private static MutationOperation usingMerge(
|
954 | 953 | return translator.createMergeOperation( optionalTableUpdate );
|
955 | 954 | }
|
956 | 955 |
|
957 |
| - private static MutationOperation withoutMerge( |
958 |
| - EntityMutationTarget mutationTarget, |
959 |
| - OptionalTableUpdate optionalTableUpdate, |
960 |
| - SessionFactoryImplementor factory) { |
961 |
| - return new OptionalTableUpdateOperation( mutationTarget, optionalTableUpdate, factory ); |
962 |
| - } |
| 956 | +// private static MutationOperation withoutMerge( |
| 957 | +// EntityMutationTarget mutationTarget, |
| 958 | +// OptionalTableUpdate optionalTableUpdate, |
| 959 | +// SessionFactoryImplementor factory) { |
| 960 | +// return new OptionalTableUpdateOperation( mutationTarget, optionalTableUpdate, factory ); |
| 961 | +// } |
963 | 962 |
|
964 | 963 | @Override
|
965 | 964 | public ParameterMarkerStrategy getNativeParameterMarkerStrategy() {
|
|
0 commit comments