Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#5880 closed defect (fixed)

error when saving an estimate

Reported by: ryan@… Owned by: Russ Tyndall
Priority: normal Component: EstimatorPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I tried to save an estimate, and got this error:

Context Navigation
Failed to save! invalid input syntax for type numeric: "" LINE 3: VALUES (4,E'',E'',E'',25) ^

I tried a simple test (one row) and that worked, so I think it might be an escaping problem somewhere.

I'm using:

  • trac 0.11.6stable-r8458
  • python 2.6.2 (release26-maint, Apr 19 2009, 02:15:38) [GCC 4.3.3]
  • postgres backend

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by Russ Tyndall

This occurs when you have an empty row on the estimate. I will do a better job of escaping after I get back from lunch, expect a patch this afternoon.

comment:2 Changed 8 years ago by Russ Tyndall

Resolution: fixed
Status: newclosed

(In [6596]) fixes #5880 do a better job of ensuring that input is of the appropriate type when passing it off to the database so that strongly typed databases will not choke (postgresql)

comment:3 Changed 8 years ago by Russ Tyndall

(In [6597]) re #5880 found another bug about types and fixed it (having to do with converting the ticket list into a list of ints)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Russ Tyndall.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.