On 3/24/06, Siah <[EMAIL PROTECTED]> wrote:
>
> It seems like a freak problem to me.  I spent a long hour to track the
> problem down and here it is:
>
> The following statement fails because it has the '%' sign in it.
> cursor.execute("select '%'")
>
> The error is: IndexError: list index out of range
>
> How do I address this problem?
>
> Please note that the following work just fine:
> cursor.execute("select 'x'")
>
> and the following also fails with the same error:
> cursor.execute("""select '%'""")
> cursor.execute("select '\%'")
>
> astr = "select '\%'"
> cursor.execute(astr)
>
> I greatly appreciate all helps,
> Regards,
> Sia
>

I didn't test, but you can try '%%' instead of '%'.


--
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