Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : Release-Version of liquibase-maxdb?

$
0
0
I haven't quite tested your version, but I've been experimenting around a bit, and MaxDB does not support "call current_schema".  "SELECT CURRENT_SCHEMA FROM DUAL" should do the trick, like:


    @Override
    protected String getConnectionSchemaName() {
        DatabaseConnection connection = getConnection();
        if (connection == null) {
            return null;
        }
        try {
            ResultSet resultSet = ((JdbcConnection) connection).prepareCall("SELECT CURRENT_SCHEMA FROM DUAL").executeQuery();
            resultSet.next();
            return resultSet.getString(1);
        } catch (Exception e) {
            LogFactory.getLogger().info("Error getting default schema", e);
        }
        return null;
    }
 
Marc


Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>