psycopg / psycopg2

PostgreSQL database adapter for the Python programming language
https://www.psycopg.org/
Other
3.35k stars 506 forks source link

psycopg2.errors.SyntaxError: trailing junk after numeric literal at or near "95c" #1624

Closed thisames closed 1 year ago

thisames commented 1 year ago

This is a bug tracker If you have a question, such has "how do you do X with Python/PostgreSQL/psycopg2" please write to the mailing list or open a question instead.

Please complete the following information:

Describe the bug Please let us know:

1: what you did

If possible, provide a script reproducing the issue.

dvarrazzo commented 1 year ago

Probably your session_id is a number, so postgres is trying to convert the untyped literal you passed into a number, and barfing on the letters.

This is not a psycopg problem. Please look for advice in some PostgreSQL group.