Opened 6 years ago

Closed 6 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: master
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


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/", 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.

Change History (1)

comment:1 Changed 6 years ago by Shai Berger <shai@…>

Resolution: fixed
Status: newclosed

In b6ad9998e6436e81f7dfbf1961a147d00816fb1f:

Fixed #20453 -- inspectdb test failure on Oracle

Note: See TracTickets for help on using tickets.
Back to Top