equal
deleted
inserted
replaced
1440 rhs.accept(self)) |
1440 rhs.accept(self)) |
1441 except CoercionError: |
1441 except CoercionError: |
1442 pass |
1442 pass |
1443 return '(%s %s %s)'% (lhs.accept(self), operator, rhs.accept(self)) |
1443 return '(%s %s %s)'% (lhs.accept(self), operator, rhs.accept(self)) |
1444 |
1444 |
|
1445 def visit_unaryexpression(self, uexpr): |
|
1446 """generate SQL for a unary expression""" |
|
1447 return '%s%s'% (uexpr.operator, uexpr.children[0].accept(self)) |
|
1448 |
1445 def visit_function(self, func): |
1449 def visit_function(self, func): |
1446 """generate SQL name for a function""" |
1450 """generate SQL name for a function""" |
1447 if func.name == 'FTIRANK': |
1451 if func.name == 'FTIRANK': |
1448 try: |
1452 try: |
1449 rel = iter(func.children[0].variable.stinfo['ftirels']).next() |
1453 rel = iter(func.children[0].variable.stinfo['ftirels']).next() |