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
Description:
When multiple schemas exist, and two tables in different schema have the same name, the primary/candidate key part of SIARD validation gets confused and gives errors.
This example SIARD file is produced by dbptk itself.
Steps required to reproduce the bug:
Rename the attached testdb.zip to testdb.siard. testdb.zip
A_M_5.8-1-2: [ERROR] : Primary key column reference id not found on dbo.testtable
A_M_5.11-1-2: [ERROR] : Candidate key column reference id not found on dbo.testtable
Notice that dbo.testtable does in fact have a column id.
But other.testtable do not.
Attach the dbptk-app.log.txt file below. dbptk-app.log.txt
This log describes both the creation of the SIARD file and the validation of it.
The text was updated successfully, but these errors were encountered:
A_M_5.8-1-2: [ERROR] : Primary key column reference id not found on dbo.testtable
A_M_5.10-1-1: [ERROR] : referenced column name fkother does not exist on referenced table testtable
M_5.10-1-2: [ERROR] : Unable to validate, column does not exist (metadata.xml schema:dbo/table:testtable/foreignKey:FK_dbo_other/reference:fkother)
A_M_5.10-1-2: [ERROR] : Unable to validate, column does not exist (metadata.xml schema:dbo/table:testtable/foreignKey:FK_dbo_other/reference:fkother)
A_M_5.10-1-2: [ERROR] : referenced column name id of table testtable does not exist on referenced table testtable
A_M_5.11-1-2: [ERROR] : Candidate key column reference id not found on dbo.testtable
Description:
When multiple schemas exist, and two tables in different schema have the same name, the primary/candidate key part of SIARD validation gets confused and gives errors.
This example SIARD file is produced by dbptk itself.
Steps required to reproduce the bug:
Rename the attached testdb.zip to testdb.siard.
testdb.zip
Validate it.
Read report.
dbptk-validation-reporter-testdb-20240524221110141.txt
Highlights:
Attach the dbptk-app.log.txt file below.
dbptk-app.log.txt
This log describes both the creation of the SIARD file and the validation of it.
The text was updated successfully, but these errors were encountered: