equal
deleted
inserted
replaced
1094 lhs, rhs = mexpr.get_parts() |
1094 lhs, rhs = mexpr.get_parts() |
1095 # check for string concatenation |
1095 # check for string concatenation |
1096 operator = mexpr.operator |
1096 operator = mexpr.operator |
1097 try: |
1097 try: |
1098 if mexpr.operator == '+' and mexpr.get_type(self._state.solution, self._args) == 'String': |
1098 if mexpr.operator == '+' and mexpr.get_type(self._state.solution, self._args) == 'String': |
1099 operator = '||' |
1099 return '(%s)' % self.dbhelper.sql_concat_string(lhs.accept(self), |
|
1100 rhs.accept(self)) |
1100 except CoercionError: |
1101 except CoercionError: |
1101 pass |
1102 pass |
1102 return '(%s %s %s)'% (lhs.accept(self), operator, rhs.accept(self)) |
1103 return '(%s %s %s)'% (lhs.accept(self), operator, rhs.accept(self)) |
1103 |
1104 |
1104 def visit_function(self, func): |
1105 def visit_function(self, func): |