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
Jorge Godoy wrote:
> [EMAIL PROTECTED] writes:
>
> > 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?
>
> Use "%%".
>
>
> --
> Jorge Godoy <[EMAIL PROTECTED]>
>
> "Quidquid latine dictum sit, altum sonatur."
> - Qualquer coisa dita em latim soa profundo.
> - Anything said in Latin sounds smart.
--
http://mail.python.org/mailman/listinfo/python-list