MSCEWI4006
The selection of the variable may have runtime errors.
Severity
Description
Code Examples
Input Code:
DECLARE @VAR1 int;
select @VAR1 = col1 + @VAR1 + col2 from table1;Output Code:
var EXEC = (stmt,binds = [],noCatch = false,catchFunction = null) => {
// Some implementation here.
};
var INTO = function (args) {
var result = [];
if (ROW_COUNT && (args instanceof Array && args.length == _ROWS.getColumnCount())) {
result = Array.apply(null,Array(_ROWS.getColumnCount()))
while ( _ROWS.next() ) {
result = result.map((currentValue,i) => args[i](currentValue,_ROWS.getColumnValue(i + 1)))
}
}
return result;
};
let VAR1;
// ** MSC-WARNING - MSCEWI4006 - SELECTION OF @VAR1 MAY HAVE RUNTIME ERRORS **
EXEC(`SELECT col1 + ? + col2, from PUBLIC.table1`,[VAR1]);
var VAR1_OPERATION = (currentValue,nextValue) => nextValue;
[VAR1] = INTO([VAR1_OPERATION]);Input Code:
Output Code:
Recommendations
Last updated
