On 3/24/06, Siah <[EMAIL PROTECTED]> wrote:
>
> heh.. It works except I am using psycopg.Binary(somebinarystructure),
> and I am not really doing it by hand to just add the extra %, and
> psycopg.Binary doesn't do it. I'd imagine it's a bug with psycopg
> package.  Any quick way to project a string from freak '%' problems?
>
> Thanks,
> Sia
>

say a = "select '%' "
you can do:

a = a.replace('%', '%%')

--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to