Opened 12 years ago
Closed 12 years ago
#20453 closed Bug (fixed)
Failure in inspectdb tests under Oracle
Reported by: | Shai Berger | Owned by: | Shai Berger |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Release blocker | Keywords: | oracle |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Solving one problem (#20386) revealed another one hiding beneath it:
====================================================================== FAIL: test_special_column_name_introspection (inspectdb.tests.InspectDBTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/heal/Django/tests/inspectdb/tests.py", line 149, in test_special_column_name_introspection self.assertIn("prc_x = models.IntegerField(db_column='prc(%) x')", output) AssertionError: ...
... to make a long story short: the output has
prc_x = models.IntegerField(db_column='prc(%%) x')
instead of db_column='prc(%) x'
as expected. A percent sign is doubled.
Note:
See TracTickets
for help on using tickets.
In b6ad9998e6436e81f7dfbf1961a147d00816fb1f: