#22649 closed Bug (fixed)
SchemaEditor.quote_value is very fragile.
Description ¶
- Quotes in a default value will break SQLite and MySQL. (https://github.com/django/django/blob/master/django/db/backends/sqlite3/schema.py#L28)
- Oracle doesn't support
bytes
and breaks onBinaryField
. - Oracle uses
repr
to quotesix.string_types
, which will probably result in an extrau
prefix. (https://github.com/django/django/blob/master/django/db/backends/oracle/schema.py#L24)
The PR for #22424 (https://github.com/django/django/pull/2634) contains tests failing in various configurations.
Change History (3)
comment:1 by , 11 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In 125b3d440761efca8fa808a4b815384ece847d6a: