Closed nj1973 closed 4 months ago
This PR adds a TO_CHAR format to Teradata NUMBERs/DECIMALs to work around two inconsistencies with other engines.
1) SELECT CAST(CAST(7 AS DECIMAL(5,2)) AS VARCHAR(64)); '7.00' 2) SELECT CAST(CAST(-0.7 AS DECIMAL(5,2)) AS VARCHAR(64)); '-.70'
After merging this PR we get these literals from the examples above: 1) '7' 2) '-0.7'
/gcbrun
This PR adds a TO_CHAR format to Teradata NUMBERs/DECIMALs to work around two inconsistencies with other engines.
1) SELECT CAST(CAST(7 AS DECIMAL(5,2)) AS VARCHAR(64)); '7.00' 2) SELECT CAST(CAST(-0.7 AS DECIMAL(5,2)) AS VARCHAR(64)); '-.70'
After merging this PR we get these literals from the examples above: 1) '7' 2) '-0.7'