This was fixed in version 3.2 :
https://r3-cev.atlassian.net/browse/CORDA-1812
But it needs a fix to be added to master, and also tested on all other db engines, and for Enterprise it needs a liquibase changelog.