Functional Equivalence Helpers
A list of helpers functions in JavaScript that procedures in SnowFlake can use, in order to better support several Teradata language features.
CompareDates
var CompareDates = function(value1, value2) {
var value1Time = value1 && value1.getTime() || null;
var value2Time = value2 && value2.getTime() || null;
if (value1Time == null && value2Time == null) return null; /*in SQL null == null is equal to null as well as any other comparison */
return value1Time > value2Time? 1 : value1Time<value2Time? -1 : 0;
}BetweenFunc
LikeFunction()
ERROR_HANDLERS()
INSERT_TEMP
IS_NOT_FOUND()
HANDLE_NOTFOUND()
PROCRESULTS()
Known Issues
Related EWIs
Last updated
