--- a/server/sources/rql2sql.py Mon Nov 16 18:10:51 2009 +0100
+++ b/server/sources/rql2sql.py Mon Nov 16 18:36:31 2009 +0100
@@ -171,8 +171,11 @@
for invvar, vartype in invariants[id(sol)].iteritems():
sol[invvar] = vartype
for sol in existssols:
- for invvar, vartype in invariants[id(sol)].iteritems():
- sol[invvar] = vartype
+ try:
+ for invvar, vartype in invariants[id(sol)].iteritems():
+ sol[invvar] = vartype
+ except KeyError:
+ continue
if len(newsols) > 1:
if rewrite_unstable_outer_join(rqlst, newsols, unstable, schema):
# remove variables extracted to subqueries from solutions