In org.hibernate.dialect.Database return clause in switch default case have been missed.
I think this can backported to 5.3
a PR for 5.3
Fixed in 5.3 branch as well.