Ticket #6429 (closed defect: worksforme)
sqlite backend should accept valid sqlite strings
| Reported by: | dalius@… | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | |
| Severity: | minor | Keywords: | sqlite |
| Cc: |
Description
I'm maintainer of AuthOpenIdPluging? for Trac (http://trac-hacks.org/wiki/AuthOpenIdPlugin).
Recently one user of my plugin found problem (http://trac-hacks.org/ticket/2242) that must be fixed in trac side in my opinion.
If we supply following SQL string:
'SELECT handle, secret, issued, lifetime, assoc_type FROM oid_associations WHERE server_url = ?;'
to sqlite backend it fails at line:
sql = sql % (('?',) * len(args))
File "/home/user/server/lib/python2.5/Trac-0.11dev_r6254-py2.5.egg/trac/db/sqlite_backend.py", line 56, in execute
with exception:
TypeError: not all arguments converted during string formatting
SQL string is completely valid sqlite string. I'm not sure yet how fix should look like however.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


