class MariaDBDatabaseMeta extends MySqlDatabaseMeta {

    @Override
    public String getLegacyColumnName(DatabaseMetaData dbMetaData, ResultSetMetaData rsMetaData, int index) throws HopDatabaseException {
        if (dbMetaData == null) {
            throw new HopDatabaseException(BaseMessages.getString(PKG, "MariaDBDatabaseMeta.Exception.LegacyColumnNameNoDBMetaDataException"));
        }

        if (rsMetaData == null) {
            throw new HopDatabaseException(BaseMessages.getString(PKG, "MariaDBDatabaseMeta.Exception.LegacyColumnNameNoRSMetaDataException"));
        }

        try {
            return rsMetaData.getColumnLabel(index);
        } catch (Exception e) {
            throw new HopDatabaseException(String.format("%s: %s", BaseMessages.getString(PKG, "MariaDBDatabaseMeta.Exception.LegacyColumnNameException"), e.getMessage()), e);
        }
    }

}