MySQL set and enum, calling values
victorsubervi at gmail.com
Sat Dec 12 09:04:46 CET 2009
On Fri, Dec 11, 2009 at 8:13 PM, Gabriel Genellina
<gagsl-py2 at yahoo.com.ar>wrote:
> En Fri, 11 Dec 2009 16:28:23 -0300, Victor Subervi <
> victorsubervi at gmail.com> escribió:
> On Fri, Dec 11, 2009 at 3:12 PM, Carsten Haese <carsten.haese at gmail.com
>> Victor Subervi wrote:
>>> > [...] if I go to print, say,
>>> > colFieldValues, which is a set, it prints out the whole set:
>>> > But if I print out colFieldValues, it prints out "s".
>>> > Also, how can I test
>>> > for it? It's an instance of string. How do I know if it's a set?
>>> That's a fantastic question. Python thinks it's a string. What makes you
>>> think it's a set?
>> Right. I'm doing it the ugly way with the truncating tuple and string
> Are you sure the column is declared as SET and not, say, VARCHAR?
> Anyway, I don't think MySQLdb is able to handle the SET data type
Oh, lovely! What do?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list