forked from babelfish-for-postgresql/babelfish_extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix difference in behaviour for CONCAT() and CONCAT_WS() functions wi…
…th multibyte characters (babelfish-for-postgresql#2949) Issues Arguments datatype and return datatype of CONCAT() and CONCAT_WS() string function is not defined correctly in Babelfish, which is causing output difference between TSQL and Babelfish. CONCAT() and CONCAT_WS() functions does not raise error when called with < 2 or < 3 arguments respectively. BABEL-4299 missed to add SQL changes to upgrade script, as a result after upgrade to 15.5, 14.10 or later, the definition will remain same as the previous one and there would be no performance improvement. Changes made to fix the issues Added wrapper function handling for CONCAT() and CONCAT_WS() function to ensure correct input arguments datatype and return datatype. Also ensured to throw appropriate error when CONCAT() and CONCAT_WS() functions are called with < 2 or < 3 arguments respectively. Task: BABEL- 3409, BABEL- 3648 Signed-off-by: Anikait Agrawal <[email protected]>
- Loading branch information
1 parent
55017e5
commit 28605cb
Showing
54 changed files
with
38,405 additions
and
401 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
578 changes: 289 additions & 289 deletions
578
contrib/babelfishpg_tsql/sql/sys_function_helpers.sql
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.