Opened 5 years ago

Closed 18 months ago

#11240 closed defect (worksforme)

Error binding parameter 5 - probably unsupported type.

Reported by: kratky@… Owned by: Ryan J Ollos
Priority: normal Component: BudgetingPlugin
Severity: normal Keywords:
Cc: Kirk Trac Release: 1.0


Error upon inserting data into the BudgetingPlugin table:

2013-07-23 14:31:58,769 Trac[main] ERROR: Internal Server Error: 
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/Trac-1.0.1-py2.7.egg/trac/web/", line 497, in _dispatch_request
  File "/Library/Python/2.7/site-packages/Trac-1.0.1-py2.7.egg/trac/web/", line 224, in dispatch
    self._post_process_request(req, *resp)
  File "/Library/Python/2.7/site-packages/Trac-1.0.1-py2.7.egg/trac/web/", line 338, in _post_process_request
    resp = f.post_process_request(req, *resp)
  File "/Library/Python/2.7/site-packages/Budgeting_Plugin-0.7.0-py2.7.egg/ticketbudgeting/", line 413, in post_process_request
  File "/Library/Python/2.7/site-packages/Budgeting_Plugin-0.7.0-py2.7.egg/ticketbudgeting/", line 523, in _save_budget
  File "/Library/Python/2.7/site-packages/Budgeting_Plugin-0.7.0-py2.7.egg/ticketbudgeting/", line 125, in do_action
    env.db_transaction(sql, setVals)
  File "/Library/Python/2.7/site-packages/Trac-1.0.1-py2.7.egg/trac/db/", line 122, in execute
    return db.execute(query, params)
  File "/Library/Python/2.7/site-packages/Trac-1.0.1-py2.7.egg/trac/db/", line 121, in execute
    cursor.execute(query, params)
  File "/Library/Python/2.7/site-packages/Trac-1.0.1-py2.7.egg/trac/db/", line 65, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/Library/Python/2.7/site-packages/Trac-1.0.1-py2.7.egg/trac/db/", line 78, in execute
    result = PyFormatCursor.execute(self, *args)
  File "/Library/Python/2.7/site-packages/Trac-1.0.1-py2.7.egg/trac/db/", line 56, in execute
    args or [])
  File "/Library/Python/2.7/site-packages/Trac-1.0.1-py2.7.egg/trac/db/", line 48, in _rollback_on_error
    return function(self, *args, **kwargs)
InterfaceError: Error binding parameter 5 - probably unsupported type.

Using SQLite as a database backend.

Attachments (0)

Change History (3)

comment:1 Changed 18 months ago by Ryan J Ollos

Owner: changed from Franz to Ryan J Ollos
Status: newaccepted

comment:2 Changed 18 months ago by Ryan J Ollos

Cc: Kirk added

comment:3 Changed 18 months ago by Ryan J Ollos

Resolution: worksforme
Status: acceptedclosed

The SQL is now:

INSERT INTO budgeting (ticket,position,comment,status,username,cost,estimation,type) VALUES (%s,%s,%s,%s,%s,%s,%s,%s)

There were some SQL string interpolation issues in the codebase a few years ago, and it appears a few still exist, but I don't see it for this case.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.