File tree Expand file tree Collapse file tree 2 files changed +5
-29
lines changed
main/java/com/clickhouse/r2dbc
test/java/com/clickhouse/r2dbc/spi/test Expand file tree Collapse file tree 2 files changed +5
-29
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,6 @@ public Flux<? extends Result> execute() {
156156
157157 @ Override
158158 public Statement returnGeneratedValues (String ... columns ) {
159- throw new UnsupportedOperationException ( GENERATED_VALUES_CAN_NOT_BE_RETURNED_FROM_CLICKHOUSE_DATABASE ) ;
159+ return this ;
160160 }
161161}
Original file line number Diff line number Diff line change @@ -207,40 +207,16 @@ public void duplicateColumnNames() {
207207
208208 @ Override
209209 @ Test
210+ @ Disabled
210211 public void returnGeneratedValues () {
211- getJdbcOperations ().execute (expand (TestStatement .DROP_TABLE ));
212- getJdbcOperations ().execute (getCreateTableWithAutogeneratedKey ());
213- Flux .usingWhen (getConnectionFactory ().create (),
214- connection -> {
215- Statement statement = connection .createStatement (getInsertIntoWithAutogeneratedKey ());
216-
217- statement .returnGeneratedValues ();
218-
219- return Flux .from (statement
220- .execute ())
221- .flatMap (it -> it .map ((row , rowMetadata ) -> row .get (0 )));
222- },
223- Connection ::close )
224- .as (StepVerifier ::create )
225- .expectErrorMatches (UnsupportedOperationException .class ::isInstance )
226- .verify ();
212+ // not supported
227213 }
228214
229215 @ Override
230216 @ Test
217+ @ Disabled
231218 public void returnGeneratedValuesFails () {
232-
233- Flux .usingWhen (getConnectionFactory ().create (),
234- connection -> {
235- Statement statement = connection .createStatement (expand (TestStatement .INSERT_VALUE100 ));
236-
237- assertThrows (UnsupportedOperationException .class ,
238- () -> statement .returnGeneratedValues ((String []) null ));
239- return Mono .empty ();
240- },
241- Connection ::close )
242- .as (StepVerifier ::create )
243- .verifyComplete ();
219+ // not supported
244220 }
245221
246222 @ Override
You can’t perform that action at this time.
0 commit comments