Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on processing placeholders with negative integer #57

Closed
psycoteam opened this issue May 29, 2011 · 1 comment
Closed

Error on processing placeholders with negative integer #57

psycoteam opened this issue May 29, 2011 · 1 comment

Comments

@psycoteam
Copy link

Originally submitted by: nk.0@ya.ru (Konstantin Nikitin)

Here is my error log

import psycopg2
connection = psycopg2.connect("user=konstantin dbname=konstantin")
cursor = connection.cursor()
cursor.execute("select 1-%s from table", (2, ))
cursor.fetchall()
[(-1,), (-1,), (-1,), (-1,), (-1,), (-1,), (-1,), (-1,)]
cursor.execute("select 1-%s from table", (-1, ))
cursor.fetchall()
[(1,)]
cursor.execute("select 1 - %s from table", (-1, ))
cursor.fetchall()
[(2,), (2,), (2,), (2,), (2,), (2,), (2,), (2,)]

@psycoteam
Copy link
Author

Originally submitted by: xni

This issue is fixed in 2.4.2

dvarrazzo/psycopg@281427f

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant