- More detail for errors in evaluation
- Printing errors on stdout too, as well as query conversion to python git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@225 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
@@ -115,9 +115,11 @@ class relation (object):
|
||||
else:
|
||||
attributes[self.header.attributes[j]]=i[j]
|
||||
|
||||
|
||||
if eval(expr,attributes):
|
||||
newt.content.append(i)
|
||||
try:
|
||||
if eval(expr,attributes):
|
||||
newt.content.append(i)
|
||||
except Exception,e:
|
||||
raise Exception("Failed to evaluate %s\n%s" % (expr,e.__str__()))
|
||||
return newt
|
||||
def product (self,other):
|
||||
'''Cartesian product, attributes must be different to avoid collisions
|
||||
|
Reference in New Issue
Block a user