forked from babelfish-for-postgresql/babelfish_extensions
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add null check for func args in tsql_get_expr (babelfish-for-postgres…
…ql#3527) The function get_rule_expr inside of sys.tsql_get_expr crashes when the param is null. Adding null check for the input parameters. Task: BABEL-5460 Signed-off-by: Sharath BP <[email protected]>
- Loading branch information
Showing
3 changed files
with
19 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,3 +56,11 @@ text | |
<NULL> | ||
~~END~~ | ||
|
||
|
||
Select sys.tsql_get_expr(null, null) | ||
GO | ||
~~START~~ | ||
text | ||
<NULL> | ||
~~END~~ | ||
|
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