Bugs item #1808155, was opened at 2007-10-05 15:45
Message generated for change (Comment added) made by psr
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1808155&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: SQLObject release (specify)
Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Peter Russell (psr)
Assigned to: Oleg Broytmann (phd)
Summary: UnicodeCol doesn't support startswith etc.
Initial Comment:
I'm experiencing this problem with SQLObject 0.7.7, although by the looks of things it still exists in trunk.
The summary is not very precise, the text field is too short. What I really want to say is:
"sqlbuilder.UnicodeField encodes values in __eq__ and __ne__, but not in startswith, endswith and contains"
I believe that the solution is to simply override those methods in UnicodeField, and encode the value passed"
I am attaching a file that causes a UnicodeDecodeError.
----------------------------------------------------------------------
>Comment By: Peter Russell (psr)
Date: 2007-10-10 10:33
Message:
Logged In: YES
user_id=447903
Originator: YES
Awesome, thanks very much.
----------------------------------------------------------------------
Comment By: Oleg Broytmann (phd)
Date: 2007-10-09 15:55
Message:
Logged In: YES
user_id=4799
Originator: NO
Fixed in the revisions 3029-3033 (branches 0.7, 0.8, 0.9, the trunk and
the docs). Will be in the next round of releases.
----------------------------------------------------------------------
Comment By: Oleg Broytmann (phd)
Date: 2007-10-08 17:49
Message:
Logged In: YES
user_id=4799
Originator: NO
Got it. Good catch and good suggestion. Will be fixed soon. Thank you!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1808155&group_id=74338
|