__dict__ substitution in Field.db_type() does no quoting
|Reported by:||Ian Kelly||Owned by:||Malcolm Tredinnick|
|Component:||Database layer (models, ORM)||Version:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
For example, a BooleanField named "public" would generate the following syncdb SQL in Oracle:
"PUBLIC" NUMBER(1) CHECK (public IN (0,1))
Since the use of the SQL keyword "public" in the check constraint is not quoted, Oracle throws an error.