Search in sources :

Example 1 with SybaseASAConnection

use of liquibase.database.jvm.SybaseASAConnection in project liquibase by liquibase.

the class SybaseASADatabase method setConnection.

@Override
public void setConnection(DatabaseConnection conn) {
    DatabaseConnection dbConn;
    if (conn instanceof JdbcConnection) {
        // If conn is a real connection (JDBC), wrap it to prevent a driver bug
        // (see SysbaseASAConnection for details)
        dbConn = new SybaseASAConnection(((JdbcConnection) conn).getWrappedConnection());
    } else {
        dbConn = conn;
    }
    super.setConnection(dbConn);
}
Also used : SybaseASAConnection(liquibase.database.jvm.SybaseASAConnection) DatabaseConnection(liquibase.database.DatabaseConnection) JdbcConnection(liquibase.database.jvm.JdbcConnection)

Aggregations

DatabaseConnection (liquibase.database.DatabaseConnection)1 JdbcConnection (liquibase.database.jvm.JdbcConnection)1 SybaseASAConnection (liquibase.database.jvm.SybaseASAConnection)1