// "NULLIF(L, R)" is the same as "L=R ? CAST(NULL AS CHAR(1)) : L"
// An impl assumption here is that Cloudscape can promote CHAR to any comparable datatypes such as numeric
ContextManager cm = getContextManager();
ValueNodeList thenElseList = (ValueNodeList) nodeFactory.getNode(C_NodeTypes.VALUE_NODE_LIST, cm);
thenElseList.addElement((ValueNode) nodeFactory.getNode(
C_NodeTypes.CAST_NODE,
(ValueNode) nodeFactory.getNode(C_NodeTypes.UNTYPED_NULL_CONSTANT_NODE, cm),
DataTypeDescriptor.getBuiltInDataTypeDescriptor(Types.CHAR, 1),
cm));
thenElseList.addElement(leftExpression);