Changeset 229
- Timestamp:
- 11/17/07 16:48:56
- Files:
-
- trunk/geniusql/adapters.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/geniusql/adapters.py
r225 r229 383 383 value = value.encode('raw-unicode-escape') 384 384 else: 385 value = str(value) 385 # Now, take pains to re-decode it with dbtype.encoding. As far 386 # as I know, MySQL is the only DB that really needs the value 387 # re-decoded, but the others seem to survive with this step. 388 value = unicode(value, dbtype.encoding).encode('raw-unicode-escape') 386 389 return pickle.loads(value) 387 390
