Skip to content

Commit e2e48e4

Browse files
committed
Fix test failing on MariaDB
1 parent a234ea6 commit e2e48e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

documentation/src/test/java/org/hibernate/userguide/mapping/basic/SubselectTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,12 @@ public void setDescription(String description) {
235235
@Subselect(
236236
"select " +
237237
" a.id as id, " +
238-
" c.first_name||' '||c.last_name as clientName, " +
238+
" concat(concat(c.first_name, ' '), c.last_name) as clientName, " +
239239
" sum(at.cents) as balance " +
240240
"from account a " +
241241
"join client c on c.id = a.client_id " +
242242
"join account_transaction at on a.id = at.account_id " +
243-
"group by a.id, c.first_name||' '||c.last_name"
243+
"group by a.id, concat(concat(c.first_name, ' '), c.last_name)"
244244
)
245245
@Synchronize( {"client", "account", "account_transaction"} )
246246
public static class AccountSummary {

0 commit comments

Comments
 (0)