You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SQL Anywhere can define views on tables, but also views on views. At creation of the view it checks if the source table or source view does really exists. Whether this check succeeds is a race condition among the view creations: If V1 is a SELECT on V2, and V2 is created after V1, then update fails to create V1. Unfortunately, generateChangelog does not specify any particular order of the changes when reading them from a SQL Anywhere database, so V1is tried to get created before V2 - hence update fails.
Search first
Description
SQL Anywhere can define views on tables, but also views on views. At creation of the view it checks if the source table or source view does really exists. Whether this check succeeds is a race condition among the view creations: If V1 is a
SELECT
on V2, and V2 is created after V1, thenupdate
fails to createV1
. Unfortunately,generateChangelog
does not specify any particular order of the changes when reading them from a SQL Anywhere database, soV1
is tried to get created beforeV2
- henceupdate
fails.Steps To Reproduce
Expected/Desired Behavior
Either
generateChangelog
produces a changelog specifying the needed sequence (V2 before V1), orupdate
finds a way to silently resolve this situation.Liquibase Version
master
Database Vendor & Version
SAP SQL Anywhere 17.0.11
Liquibase Integration
N/A
Liquibase Extensions
N/A
OS and/or Infrastructure Type/Provider
Windows 10 Pro (German)
Additional Context
N/A
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: