Changes between Initial Version and Version 1 of Ticket #34943
- Timestamp:
- Nov 2, 2023, 2:58:33 PM (13 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34943
- Property Cc added
- Property Triage Stage Unreviewed → Accepted
- Property Summary Support computed unique fields for INSERT ON CONFLICT ... UPDATE → Support passing database expressions to bulk_create()'s unique_fields.
- Property Type Uncategorized → New feature
-
Ticket #34943 – Description
initial v1 1 #3 4277added support for `INSERT ... ON CONFLICT(col1, col2) DO UPDATE SET ...` In some cases, however, the unique constraint may be on computed columns, which cannot be used with `unique_fields` because they are directly quoted.1 #31685 added support for `INSERT ... ON CONFLICT(col1, col2) DO UPDATE SET ...` In some cases, however, the unique constraint may be on computed columns, which cannot be used with `unique_fields` because they are directly quoted. 2 2 3 3 For instance: