# HG changeset patch
# User Sylvain Thenault <sylvain.thenault@logilab.fr>
# Date 1223041044 -7200
#      Fri Oct 03 15:37:24 2008 +0200
# Node ID 4850d42d4392f5f63c4a60f0cd4a436def95dda6
# Parent  44b5c41b0bef599d0fc8306999499e893c3ad8ec
copy vargraph

diff --git a/stmts.py b/stmts.py
--- a/stmts.py
+++ b/stmts.py
@@ -337,6 +337,7 @@
     """the select node is the base statement of the syntax tree for selection
     statement, always child of a UNION root.
     """
+    vargraph = None
     parent = None
     distinct = False
     # limit / offset
@@ -442,6 +443,7 @@
         new.distinct = self.distinct
         new.limit = self.limit
         new.offset = self.offset
+        new.vargraph = self.vargraph
         return new
     
     # select specific methods #################################################