#1562 closed defect (fixed)
[patch] inspectdb: set blank and null attributes
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | magic-removal |
Severity: | normal | Keywords: | inspectdb |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
inspectdb does now set blank and null attributes correctly. The attached patch corrects this.
Attachments (2)
Change History (6)
by , 19 years ago
Attachment: | inspect-setnull.diff added |
---|
comment:1 by , 19 years ago
by , 19 years ago
Attachment: | inspect-setnull.2.diff added |
---|
comment:3 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 19 years ago
Argl. Setting the right column for "null_ok" in the cursor.descriptor is not mandatory in the DB-API 2.0, and psycopg (at least 1.1.21) always sets it to None.
Note:
See TracTickets
for help on using tickets.
This detection doesn't appear to work in PostgreSQL. Which database did you test this with?