Beispiel #1
0
        public void Visit(DmlUpdateStatement node)
        {
            TableReference tr = node.TableRefs;

            VisitChild(1, false, false, tr);

            var assignmentList = node.Values;

            if (assignmentList != null && !assignmentList.IsEmpty())
            {
                IList <IAstNode> list = new List <IAstNode>(assignmentList.Count * 2);
                foreach (var p in assignmentList)
                {
                    if (p == null)
                    {
                        continue;
                    }
                    list.Add(p.Key);
                    list.Add(p.Value);
                }
                VisitChild(2, false, false, list);
            }

            var where = node.Where;
            VisitChild(2, _verdictColumn, false, where);

            var order = node.OrderBy;

            VisitChild(2, false, false, order);
        }
Beispiel #2
0
 public virtual void Visit(DmlUpdateStatement node)
 {
     VisitInternal(node.Limit);
     VisitInternal(node.OrderBy);
     VisitInternal(node.TableRefs);
     VisitInternal(node.Values);
     VisitInternal(node.Where);
 }