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 (#694)
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.
Cherry-picked from #693
Task: BABEL-6127
Authored-by: Rohit Bhagat rohitbgt@amazon.com
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