Пример #1
0
 def leaveTableCreation(self):
     self._active             = False
     if self._actualRelationName is None:
         raise InternalError('rel name is None')
     if self._definedRelation is None:
         raise InternalError('select without a source')
     
     relation = TableOperator()
     self._definedRelation.addListener(relation)
     self._relations[self._actualRelationName] = relation
     for (name, rel) in self._actualInputs:
         relation.addSource(name, rel)
     self._actualRelationName = None
     self._actualInputs = list()
Пример #2
0
 def leaveInsertStmt(self):
     self._active             = False
     if self._actualRelationName is None:
         raise InternalError('rel name is None')
     if self._definedRelation is None:
         raise InternalError()
     
     relation = TableOperator()
     self._definedRelation.addListener(relation)
     self._inserts.append((self._actualRelationName,relation))
     for (name, rel) in self._actualInputs:
         relation.addSource(name, rel)
     self._actualRelationName = None
     self._actualInputs = list()