#29500: SQLite functions crashes on NULL values
-------------------------------------+-------------------------------------
Reporter: Sergey | Owner: nobody
Fedoseev |
Type: Bug | Status: new
Component: Database | Version: 2.0
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
{{{
In [14]: TestModel2.objects.annotate(null=models.Value(None,
output_field=models.IntegerField())).values(pow=models.F('null') **
models.F('null')).first()
---------------------------------------------------------------------------
OperationalError Traceback (most recent call
last)
~/dev/django/django/db/backends/utils.py in _execute(self, sql, params,
*ignored_wrapper_args)
84 else:
---> 85 return self.cursor.execute(sql, params)
86
~/dev/django/django/db/backends/sqlite3/base.py in execute(self, query,
params)
295 query = self.convert_query(query)
--> 296 return Database.Cursor.execute(self, query, params)
297
OperationalError: user-defined function raised exception
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29500>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.081ad3ed372077521bed3def91422bf7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.