Re: Strings and % sign fails - Help Please

2006-03-24 Thread Siah
I see. Thanks, Sia --~--~-~--~~~---~--~~ 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 PROTE

Re: Strings and % sign fails - Help Please

2006-03-23 Thread limodou
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 strin

Re: Strings and % sign fails - Help Please

2006-03-23 Thread Siah
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 --~--~--

Re: Strings and % sign fails - Help Please

2006-03-23 Thread limodou
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

Strings and % sign fails - Help Please

2006-03-23 Thread Siah
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 th