Research Data Management Platform (RDMP) is an open source application for the loading,linking,anonymisation and extraction of datasets stored in relational databases.
Fixes the issue raised in https://github.com/HicServices/RDMP/issues/1834
When checking a catalogue, we don't specify the tableInfo database name when creating the connection to the database.
This change checks if the tableInfo had a known database, if true it will use the known database, otherwise will use the db servers default database
Type of change
What types of changes does your code introduce? Tick all that apply.
[x] Bugfix (non-breaking change which fixes an issue)
[ ] New Feature (non-breaking change which adds functionality)
[ ] Breaking Change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation-Only Update
[ ] Other (if none of the other choices apply)
Checklist
By opening this PR, I confirm that I have:
[x] Ensured that the PR branch is in sync with the target branch (i.e. it is automatically merge-able)
[x] Created or updated any tests if relevant
[x] Have validated this change against the Test Plan
[x] Requested a review by one of the repository maintainers
[ ] Have written new documentation or updated existing documentation to detail any new or updated functionality and how to use it
Proposed Change
Fixes the issue raised in https://github.com/HicServices/RDMP/issues/1834 When checking a catalogue, we don't specify the tableInfo database name when creating the connection to the database. This change checks if the tableInfo had a known database, if true it will use the known database, otherwise will use the db servers default database
Type of change
What types of changes does your code introduce? Tick all that apply.
Checklist
By opening this PR, I confirm that I have: