#228 UnicodeCol doesn't support startswith etc.

closed-fixed
General (125)
5
2007-10-09
2007-10-05
No

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.

Discussion

  • Oleg Broytman

    Oleg Broytman - 2007-10-08

    Logged In: YES
    user_id=4799
    Originator: NO

    Got it. Good catch and good suggestion. Will be fixed soon. Thank you!

     
  • Oleg Broytman

    Oleg Broytman - 2007-10-08
    • assigned_to: nobody --> phd
    • status: open --> open-later
     
  • Oleg Broytman

    Oleg Broytman - 2007-10-09
    • status: open-later --> closed-fixed
     
  • Oleg Broytman

    Oleg Broytman - 2007-10-09

    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.

     
  • Peter Russell

    Peter Russell - 2007-10-10

    Logged In: YES
    user_id=447903
    Originator: YES

    Awesome, thanks very much.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks