Ejemplo n.º 1
0
 public override SqlNode Clone()
 {
     return(new SetVariableStatement()
     {
         ScalarExpression = ScalarExpression?.Clone() as ScalarExpression,
         VariableReference = VariableReference?.Clone() as VariableReference
     });
 }
Ejemplo n.º 2
0
        public void TestCloneVariableReference()
        {
            VariableReference variableReference = new VariableReference()
            {
                Name = "test"
            };

            var clone = variableReference.Clone() as VariableReference;

            Assert.AreEqual(variableReference, clone);
            Assert.IsFalse(ReferenceEquals(variableReference, clone));
        }