#17186: Inverted F expression (negation)
-------------------------------------+-------------------------------------
     Reporter:  niwi                 |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  SVN
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Design
     Keywords:                       |  decision needed
    Has patch:  1                    |      Needs documentation:  1
  Needs tests:  1                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by zsiciarz):

 * stage:  Accepted => Design decision needed


Comment:

 I guess it's a DDN. Generally it is even possible to do something like
 that in SQLite:


 {{{
 Company.objects.update(name=F("name") * F("name"))
 }}}

 And the name field after that is "0". This is rather a wider case, whether
 the ORM should allow silly expressions like that, and not only negation of
 non-booleans. It is completely DBMS-dependent and most "true" DB engines
 will barf immediately.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17186#comment:11>
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to