Posts by Alisson Diniz • 21 points
1 post
-
2
votes1
answer304
viewsQ: Sql Groovy, pass the value of an IN parameter
I have the following code: def pessoaIds = [1, 2, 3, 4, 5] def query = "SELECT * FROM Pessoa WHERE id IN(?)" def pessoaList = sql.rows(query, [pessoaIds]) In this case "personList" returns an empty…