And the reason why Person.name == 'some string' works is that your Person class is still using the sqlobject compatibility layer that converts the byte string to a unicode string for you. It is the exception to the rule, rather than everything else being broken.
And the reason why Person.name == 'some string' works is that your Person class is still using the sqlobject compatibility layer that converts the byte string to a unicode string for you. It is the exception to the rule, rather than everything else being broken.