Changes between Initial Version and Version 1 of Ticket #35329
- Timestamp:
- Mar 25, 2024, 3:08:31 PM (8 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35329
- Property Cc added
- Property Component Error reporting → Database layer (models, ORM)
- Property Keywords UniqueConstraint added; UniqueConstrain removed
- Property Owner set to
- Property Severity Normal → Release blocker
- Property Triage Stage Unreviewed → Accepted
-
Ticket #35329 – Description
initial v1 5 5 Screenshot 2024-03-25 at 10.47.59.png 6 6 7 When django generate SQL to create a check constraint the result is "... WHERE <condition> NULLS NOT DISTINCT".7 When django generate SQL to create a check constraint the result is `... WHERE <condition> NULLS NOT DISTINCT`. 8 8 It raise an exception on Postgresql. 9 9 … … 11 11 12 12 Today: 13 14 {{{#!python 13 15 sql_create_unique_index = ( 14 16 "CREATE UNIQUE INDEX %(name)s ON %(table)s " 15 17 "(%(columns)s)%(include)s%(condition)s%(nulls_distinct)s" 16 18 ) 19 }}} 17 20 18 21 To: 22 {{{#!python 19 23 sql_create_unique_index = ( 20 24 "CREATE UNIQUE INDEX %(name)s ON %(table)s " 21 25 "(%(columns)s)%(include)s%(nulls_distinct)s%(condition)s" 22 26 ) 27 }}} 23 28 24 29 Regards,