Uploaded image for project: 'Liquibase Core'
  1. CORE-3405

Prefer SelectFromDatabaseChangeLogStatement and SelectFromDatabaseChangeLogLockStatement over RawSqlStatement

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects versions: 3.6.3
    • Fix versions: None
    • Components: None
    • Environment:

      Liquibase 3.6.3 on Oracle, but not important for this.

    • Sprint:

      Description

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

      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 )

        Attachments

          Activity

            People

            • Reporter:
              jurrieovergoor Jurrie Overgoor
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: