Hi,
I discovered this:
import psycopg2
connection=psyc opg2.connect("d bname='...' user='...'")
cursor=connecti on.cursor()
cursor.execute( '''SELECT '%' ''') # Does not fail
cursor.execute( '''SELECT '%' ''', ()) # Does fail
Traceback (most recent call last):
File "/localhome/modw/tmp/t.py", line 5, in <module>
cursor.execute( '''SELECT '%' ''', ()) # Does fail
IndexError: tuple index out of range
Is this a bug in psycopg2?
How do other PEP 249 implementation behave?
Regards,
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
I discovered this:
import psycopg2
connection=psyc opg2.connect("d bname='...' user='...'")
cursor=connecti on.cursor()
cursor.execute( '''SELECT '%' ''') # Does not fail
cursor.execute( '''SELECT '%' ''', ()) # Does fail
Traceback (most recent call last):
File "/localhome/modw/tmp/t.py", line 5, in <module>
cursor.execute( '''SELECT '%' ''', ()) # Does fail
IndexError: tuple index out of range
Is this a bug in psycopg2?
How do other PEP 249 implementation behave?
Regards,
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
Comment