You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[BABEL] Resolved string literal type as sys.varchar in select_common_type for babelfish
In select_common_type() currently string literal has type unknownoid but
for babelfish, string literal should be of type sys.varchar, this is
causing incorrect results in babelfish in common type selection.
Fixed this by updating type of string literal as sys.varchar and also migrated babelfish related changes from select_common_type to babelfish pre-hook, select_common_type_hook.
Task: BABEL-6127
Signed-off-by: Rohit Bhagat <rohitbgt@amazon.com>
cr: https://code.amazon.com/reviews/CR-227519704
sql_dialect!=SQL_DIALECT_TSQL&&/* T-SQL allows to select common datatype between different categories */
1500
-
(!dump_restore|| (dump_restore&&strcmp(dump_restore, "on") !=0))) /* allow common datatype between different categories while restoring babelfish database */
1497
+
elseif (ncategory!=pcategory)
1501
1498
{
1502
1499
/*
1503
1500
* both types in different categories? then not much hope...
0 commit comments