-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix scripting of tables with index on non first columns (#2424)
When exporting ddl_script for tables with indexes/constraints on columns which are not first in the table definition, wrong table definition in scripted. This is because the scripting tool uses sys.index_columns underneath and we are not returning the correct output currently. We also need to fix the `index_id` in `sys.indexes` since index_id is unique id for each index per table. index_id in sys.indexes and sys.index_columns should be same. Also fix sys.generated columns. Currently returns duplicates entries when two tables have same name generated columns. ### Issues Resolved [BABEL-4817],[BABEL-4853] Signed-off-by: Tanzeel Khan <[email protected]>
- Loading branch information
1 parent
fe50406
commit a5abc18
Showing
23 changed files
with
952 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
contrib/babelfishpg_tsql/sql/upgrades/babelfishpg_tsql--2.7.0--2.8.0.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.