ORDER BY FIELD(..) throws java.sql.SQLException: Operand should contain 1 column(s)

Description

Since the update from Hibernate 5.0.6 to 5.0.7 our queries using ORDER BY FIELD won't work anymore. It throws java.sql.SQLException: Operand should contain 1 column(s)

The Query simply is:
SELECT e FROM MyEntity e WHERE e.id IN (:ids) ORDER BY FIELD(id, :ids)

The generated SQL shows a difference:
5.0.6: ... order by FIELD(id, ?, ?, ?)
5.0.7: ... order by FIELD(id, (?, ?, ?))

Thanks in advance!

Environment

Ubuntu Linux 15.10, Java 8, Hibernate 5.0.7, MySQL Driver 5.1.34

Status

Assignee

Vlad Mihalcea

Reporter

Benjamin Makus

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.0.7
5.1.0

Priority

Minor
Configure