#513 closed defect (duplicate)
an integer form field is passed to sql as a string if it is None and not on the form.
Reported by: | anonymous | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
If you have an IntegerField and you don't define it within the HTML form, when it is submitted and ChangeManipulator.save is called (I assume AddManipulator is the same here), and if the value is None, then it is submitted to the sql execute as a string and the sql writes it out as a string (i.e. some_number = , ...).
Change History (2)
comment:1 by , 19 years ago
comment:2 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This is a specific case of #1207
Note:
See TracTickets
for help on using tickets.
sorry, didn't give email.