Changes between Initial Version and Version 1 of Ticket #22683
- Timestamp:
- May 26, 2014, 7:27:32 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22683
- Property Triage Stage Unreviewed → Accepted
- Property Type Uncategorized → Cleanup/optimization
- Property Version 1.6 → 1.7-beta-2
-
Ticket #22683 – Description
initial v1 1 Running schema tests I caught an issue, more precisely, in test_add_field_default_transform.1 Running schema tests I caught an issue, more precisely, in `test_add_field_default_transform`. 2 2 At the end, this test method is doing: 3 3 {{{#!python 4 4 self.assertEqual(Author.objects.extra(where=["thing = 1"]).count(), 2) 5 5 }}} 6 6 The problem here is what in this where clause, the "thing" field must be quoted. 7 7 8 8 In firebird : 9 10 SELECT * FROM AUTHOR WHERE thing = 1 <-- Here thing (in lowercase) and THING (in uppercase) are equivalent, are the same object11 9 {{{#!sql 10 SELECT * FROM AUTHOR WHERE thing = 1 -- Here thing (in lowercase) and THING (in uppercase) are equivalent, are the same object 11 }}} 12 12 is different of: 13 14 SELECT * FROM AUTHOR WHERE "thing" = 1 <-- field is quoted15 13 {{{#!sql 14 SELECT * FROM AUTHOR WHERE "thing" = 1 -- field is quoted 15 }}} 16 16 For a more generic test I think we need to avoid use .extra method or another raw sql statement. 17 17