Example #1
0
        public object VisitForUpdateClauseNode(ForUpdateClauseNode node, Context parameter)
        {
            var wordNode = node.WordNode;

            wordNode.Accept(this, parameter);
            foreach (var child in node.Children)
            {
                child.Accept(this, parameter);
            }

            return(null);
        }
Example #2
0
        private void ParseForUpdateWord()
        {
            Validate();
            var node = new ForUpdateClauseNode(_token);

            if (IsInSelectStatementNode())
            {
                RemoveNodesTo <SelectStatementNode>();
                var selectStatementNode = (SelectStatementNode)Peek();
                selectStatementNode.ForUpdateClauseNode = node;
            }
            else
            {
                AppendNode(node);
            }
            _nodeStack.Push(node);
        }