It appears that this works in 5 if and only if stringtype=unspecified is supplied as a parameter to the JDBC URL.