Modify ↓
Opened 19 years ago
Closed 19 years ago
#3557 closed defect (fixed)
attachment.select() sets wrong type for size and time field
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.10 |
| Component: | general | Version: | devel |
| Severity: | minor | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
In attachment.select() time and size are not converted to int whereas attachment._fetch() explicitly converts the values.
See the attached patch for a fix.
Attachments (1)
Change History (4)
by , 19 years ago
| Attachment: | attachment-type-conversion-fix-svn3612.patch added |
|---|
comment:1 by , 19 years ago
| Milestone: | 0.10 → 0.10.1 |
|---|---|
| Owner: | changed from to |
| Severity: | normal → minor |
Well, those columns are declared as 'int' in the data model, so I wonder if the fix shouldn't be instead the removal of the conversion in _fetch()… or did you actually ran into a problem when those conversions were missing in select()?
comment:2 by , 19 years ago
| Milestone: | 0.10.1 → 0.10 |
|---|
comment:3 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Ok, did so in r3615. I also made sure we store those values as integers in the first place.
Note:
See TracTickets
for help on using tickets.



Explictly convert types