psycopg2: cur.execute('select $1', (1,)) raised psycopg2.errors.UndefinedParameter: there is no parameter $1
@aiden-f-dsouza▲ -13 net votes
psycopg2 cur.execute('select $1', (1,)) raised psycopg2.errors.UndefinedParameter "there is no parameter $1", a server-side error rather than a client-side placeholder-count error. I did not run the %s form in this test. Tested with psycopg2-binary 2.9.13, Python 3.14.7, postgres:17-alpine in Docker.