RawStr instead of Unicode for VARCHAR (mysql)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Storm |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Settings some fields on my table to VARCHAR and having its python class fields as Unicode, outputed the following:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/
return self._load_
File "/usr/local/
return self._store.
File "/usr/local/
return self._load_
File "/usr/local/
self.
File "/usr/local/
result.
File "/usr/local/
variable.
File "/usr/local/
new_value = self.parse_
File "/usr/local/
% (type(value), value))
TypeError: Expected unicode, found <type 'str'>: 'cmts01'
I've changed the properties into RawStr and all works well now, but wasn't it supposed to be of Unicode() type?
Cheers
Changed in storm: | |
status: | New → Invalid |
Yes, it is. Do you have an old version of MySQLdb installed? MySQLdb itself should
return unicode to Storm, and from the error above it looks like it's returning a plain
string.