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

PostgreSQL, it needs type casts #17

Open
ghost opened this issue Mar 8, 2011 · 1 comment
Open

PostgreSQL, it needs type casts #17

ghost opened this issue Mar 8, 2011 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 8, 2011

I am using Postgres.
The following errors occurred.
It is necessary to cast the type of int and text.

HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.

@gwjones
Copy link

gwjones commented Jun 20, 2011

This can be fixed by editing line 101 in file tracsubtickets/web_ui.py to read:
cursor.execute("SELECT parent, child FROM subtickets WHERE parent='%s'",
(parent_id, ))

Note the addition of the single quites around %s . Now simply build the egg, and you're good to go.

rdnvndr pushed a commit to rdnvndr/trac-subtickets-plugin that referenced this issue Jan 25, 2017
Put recursion depth check where it should be: around the database query.
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