sdss / sdss/sdssdb

psycopg3 issues

Open
#326 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.