PREPARE TRANSACTION $1 causes a parse error
Bug #230794 reported by
Mathieu Fenniak
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pg8000 |
Won't Fix
|
Low
|
Mathieu Fenniak |
Bug Description
In SQLAlchemy's engine.
cursor.
which results in a PostgreSQL database error:
ERROR 42601 'syntax error at or near "$1"'
Suggesting that a bind parameter cannot be used in PREPARE TRANSACTION.
Changed in pg8000: | |
assignee: | nobody → mfenniak |
importance: | Undecided → Low |
milestone: | none → sqlalchemy |
status: | New → Confirmed |
To post a comment you must log in.
PostgreSQL only supports a constant string in PREPARE TRANSACTION (as well as number of other places), and not a bind parameter. Therefore this will be documented as a known issue, and must be handled client-side (or part of a library like SQLAlchemy).