We're updating the issue view to help you get more done. 

Prefer SelectFromDatabaseChangeLogStatement and SelectFromDatabaseChangeLogLockStatement over RawSqlStatement

Description

In liquibase.snapshot.SnapshotGeneratorFactory.has(DatabaseObject, Database) there is a RawSqlStatement:

1 2 3 new RawSqlStatement("SELECT COUNT(*) FROM " + database.escapeObjectName(database.getLiquibaseCatalogName(), database.getLiquibaseSchemaName(), example.getName(), Table.class))

It's far more nice to use either liquibase.statement.core.SelectFromDatabaseChangeLogStatement or liquibase.statement.core. (In fact, it wouldn't have killed my plugin )

Environment

Liquibase 3.6.3 on Oracle, but not important for this.

Status

Assignee

Unassigned

Reporter

Jurrie Overgoor

Labels

None

Affects versions

3.6.3

Priority

Minor