equal
deleted
inserted
replaced
1144 _id = constant.value |
1144 _id = constant.value |
1145 if isinstance(_id, unicode): |
1145 if isinstance(_id, unicode): |
1146 _id = _id.encode() |
1146 _id = _id.encode() |
1147 else: |
1147 else: |
1148 _id = str(id(constant)).replace('-', '', 1) |
1148 _id = str(id(constant)).replace('-', '', 1) |
1149 if isinstance(value, unicode): |
|
1150 value = value.encode(self.dbencoding) |
|
1151 self._query_attrs[_id] = value |
1149 self._query_attrs[_id] = value |
1152 return '%%(%s)s' % _id |
1150 return '%%(%s)s' % _id |
1153 |
1151 |
1154 def visit_variableref(self, variableref): |
1152 def visit_variableref(self, variableref): |
1155 """get the sql name for a variable reference""" |
1153 """get the sql name for a variable reference""" |