-
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.
Display unmapped schema names in error messages
Previously, Babelfish displays the mapped schema names in error messages. This commit implements a hook function remove_db_name_in_schema and adds test cases. Task: BABEL-2961 Signed-off-by: Chenxiao Wang <[email protected]>
- Loading branch information
Showing
49 changed files
with
465 additions
and
79 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
IF OBJECT_ID('dbo.SomeNonExistentTable', 'U') IS NOT NULL | ||
DROP TABLE dbo.SomeNonExistentTable | ||
GO | ||
|
||
|
||
IF OBJECT_ID('dbo.NonExistentTableView', 'V') IS NOT NULL | ||
DROP VIEW dbo.NonExistentTableView | ||
GO | ||
|
||
IF OBJECT_ID('dbo.NonExistentTableFunc', 'IF') IS NOT NULL | ||
DROP FUNCTION dbo.NonExistentTableFunc | ||
GO | ||
|
||
IF OBJECT_ID('dbo.CallNonExistentProc', 'P') IS NOT NULL | ||
DROP PROCEDURE dbo.CallNonExistentProc | ||
GO | ||
|
||
IF OBJECT_ID('dbo.TestTable', 'U') IS NOT NULL | ||
DROP TABLE dbo.TestTable | ||
GO | ||
|
||
IF OBJECT_ID('dbo.NonExistentTable', 'U') IS NOT NULL | ||
DROP TABLE dbo.NonExistentTable | ||
GO | ||
|
||
IF OBJECT_ID('dbo.DropNonExistentUser', 'P') IS NOT NULL | ||
DROP PROCEDURE dbo.DropNonExistentUser | ||
GO | ||
|
||
IF OBJECT_ID('dbo.NonExistentProc', 'P') IS NOT NULL | ||
DROP PROCEDURE dbo.NonExistentProc | ||
GO | ||
|
||
IF OBJECT_ID('nonexistent_schema.TestFunc', 'FN') IS NOT NULL | ||
DROP FUNCTION nonexistent_schema.TestFunc | ||
GO |
Oops, something went wrong.