#16211: using negated F()-expression in update query -------------------------------------+------------------------------------- Reporter: wdoekes | Owner: nobody Type: New feature | Status: reopened Component: Database layer | Version: master (models, ORM) | Resolution: Severity: Normal | Triage Stage: Accepted Keywords: | Needs documentation: 0 Has patch: 0 | Patch needs improvement: 0 Needs tests: 0 | UI/UX: 0 Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by manfre): For future reference, not all databases (mssql) support the requested behavior. The usage of `NOT` in the reverted commit 28abf5f0ebc9d380f25dd278d7ef4642c4504545, `UPDATE [expressions_company] SET [is_large] = NOT (([expressions_company].[num_employees] < ?))`, is not valid for MSSQL. "Incorrect syntax near the keyword 'NOT'". -- Ticket URL: <https://code.djangoproject.com/ticket/16211#comment:40> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.