Esempio n. 1
0
        public static object ValidateValue(Program program, Schema.ScalarType type, object tempValue, Schema.Operator fromOperator)
        {
            program.Stack.Push(tempValue);
            try
            {
                TableNode.ValidateScalarTypeConstraints(program, type, false);
                TableNode.ExecuteScalarTypeValidateHandlers(program, type, fromOperator);
            }
            finally
            {
                tempValue = program.Stack.Pop();
            }

            return(tempValue);
        }