@Override
    public int getDatabaseMajorVersion() throws DatabaseException {
        if (getConnection() == null) {
            return -1;
        }
        try {
            return getConnection().getDatabaseMajorVersion();
        } catch (UnsupportedOperationException e) {
        	Scope.getCurrentScope().getLog(getClass())
        		.warning(LogType.LOG, "Your JDBC driver does not support getDatabaseMajorVersion(). Consider upgrading it.");
            return -1;
        }
    }
@ Override public int getDatabaseMajorVersion ( ) throws DatabaseException { if ( getConnection ( ) == null ) { return - 1 ; } try { return getConnection ( ) . getDatabaseMajorVersion ( ) ; } catch ( UnsupportedOperationException e ) { Scope . getCurrentScope ( ) . getLog ( getClass ( ) ) . warning ( LogType . LOG , "Your JDBC driver does not support getDatabaseMajorVersion(). Consider upgrading it." ) ; return - 1 ; } }
@return the major version if supported, otherwise -1
@see liquibase.database.AbstractJdbcDatabase#getDatabaseMajorVersion()