#32967: Buggy Migrations when `float("nan")` in `Q` objects -------------------------------------+------------------------------------- Reporter: Steven Jin | Owner: Steven | Jin Type: Bug | Status: closed Component: Database layer | Version: 3.2 (models, ORM) | Severity: Normal | Resolution: wontfix Keywords: db Q | Triage Stage: | Unreviewed Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Steven Jin): Thanks! Replying to [comment:8 Simon Charette]: > Have you tried to simply compare against the `NaN` string? > > {{{#!python > ~CheckConstraint(check=Q(x='NaN'), name="not_nan") > }}} > > It seems to work for me on PostgreSQL. -- Ticket URL: <https://code.djangoproject.com/ticket/32967#comment:9> 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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/068.cb9c7ee95b775275c0464318297bf756%40djangoproject.com.