If I call a PostgreSQL 9.4 PL/pgSQL stored procedure
with a void return type using sqlu:
sqlu"SELECT my_stored_procedure($param)"
The stored procedure successfully executes by the db, but Slick throws a SlickException: Update statements should not return a ResultSet
If I change the stored procedure to have an explicit return type, such as Boolean, and return that in the PL/pgSQL function, and call the slick code with sql, then Slick is fine:
sql"SELECT my_stored_procedure($param)".as[Boolean]
I can get by with the latter syntax, but it's not idiomatic Slick (if I'm not mistaken). Is this a bug, or is there a better way to call a stored procedure and avoid this exception?