I tried to test it on both on 5.6 and 6 but i obtained the same value for JdbcEnvironmentImpl currentSchema so having a test would help