Skip to content

Commit

Permalink
Fix the wrong function
Browse files Browse the repository at this point in the history
  • Loading branch information
nakamura-to committed Jun 18, 2023
1 parent 6570138 commit 6c5f37d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions content/en/docs/Reference/Query/QueryDsl/delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,14 @@ delete from ADDRESS where ADDRESS_ID = ? and VERSION = ? returning ADDRESS_ID
```

```kotlin
val query: Query<Pair<Int?, String?>?> = QueryDsl.update(a).single(address).returning(a.addressId, a.street)
val query: Query<Pair<Int?, String?>?> = QueryDsl.delete(a).single(address).returning(a.addressId, a.street)
/*
delete from ADDRESS where ADDRESS_ID = ? and VERSION = ? returning ADDRESS_ID, STREET
*/
```

```kotlin
val query: Query<Triple<Int?, String?, Int?>?> = QueryDsl.update(a).single(address).returning(a.addressId, a.street, a.version)
val query: Query<Triple<Int?, String?, Int?>?> = QueryDsl.delete(a).single(address).returning(a.addressId, a.street, a.version)
/*
delete from ADDRESS where ADDRESS_ID = ? and VERSION = ? returning ADDRESS_ID, STREET, VERSION
*/
Expand Down
4 changes: 2 additions & 2 deletions content/ja/docs/Reference/Query/QueryDsl/delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ delete from ADDRESS where ADDRESS_ID = ? and VERSION = ? returning ADDRESS_ID
```

```kotlin
val query: Query<Pair<Int?, String?>?> = QueryDsl.update(a).single(address).returning(a.addressId, a.street)
val query: Query<Pair<Int?, String?>?> = QueryDsl.delete(a).single(address).returning(a.addressId, a.street)
/*
delete from ADDRESS where ADDRESS_ID = ? and VERSION = ? returning ADDRESS_ID, STREET
*/
```

```kotlin
val query: Query<Triple<Int?, String?, Int?>?> = QueryDsl.update(a).single(address).returning(a.addressId, a.street, a.version)
val query: Query<Triple<Int?, String?, Int?>?> = QueryDsl.delete(a).single(address).returning(a.addressId, a.street, a.version)
/*
delete from ADDRESS where ADDRESS_ID = ? and VERSION = ? returning ADDRESS_ID, STREET, VERSION
*/
Expand Down

0 comments on commit 6c5f37d

Please sign in to comment.