psycopg3 issues
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
- John found an issue calling functions, e.g., appendQueue. In testing, Jose found calling the method works fine e.g.,
opsdb.Queue.appendQueue(610729, 100), but when it comes up in code and I pass variables it fails with a
peewee.ProgrammingError: function appendqueue(integer, double precision) does not exist
LINE 1: SELECT appendQueue($1, $2)
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
- Your issue here
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in python/sdssdb/peewee/sdss5db/opsdb.py at the appendQueue definition around line 230. Reproduce both the literal call and the variable-based call, then compare the generated SELECT appendQueue($1, $2) arguments with the database function signature. Done means the variable-based invocation works without the reported ProgrammingError and has a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, python
- Domain
- database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100