this throws an error:
criteria.isIn(“IDCol”,javaCast(“java.lang.Integer[]”,listToArray(valueList(queryResult.IDCol)))).list();
An unhandled exception has occurred. Please look at the diagnostic information below:
Type org.hibernate.exception.GenericJDBCException
Message could not execute query
Detail
Extended Info
Message could not execute query
Tag Context C:\inetpub\Frameworks\coldbox\coldbox_3_5\system\orm\hibernate\CriteriaBuilder.cfc (161)
the valuelist() dumps as “1321818,1534258,1433553”.
this does NOT throw an error:
criteria.isIn(“IDCol”,javaCast(“java.lang.Integer[]”,listToArray(“1321818,1534258,1433553”))).list();
the same results show when using restrictions in a criteria query.