This is caused by our postgres jdbc driver version in midPoint.
We use/bundle postgresql-9.1-901.jdbc4.jar.
Upgrading driver to postgresql-9.3-1102.jdbc41.jar helps, but as we bundle this driver, I need to stop midPoint, remove the file from WEB-INF/lib and replace by the newer version.
Is there any specific reason for having the older driver?
Or is there any workaround to use ScriptedSQL connector with the older driver for Postgres?