diff options
| author | Tim Graham <timograham@gmail.com> | 2015-08-03 16:27:49 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-08-05 07:54:54 -0400 |
| commit | 97fa7fe961f961b6c93a11b50a7a1ed35c8bce8d (patch) | |
| tree | 9d20093aa440f3f7f73d9da7c6d4a476a4424515 /docs/ref/databases.txt | |
| parent | 28cb272a7279e6dfc4d5c53838ebf7343c3e66b5 (diff) | |
Fixed #25212 -- Documented the RawSQL expression.
Diffstat (limited to 'docs/ref/databases.txt')
| -rw-r--r-- | docs/ref/databases.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index 96829724b5..831d32170a 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -571,11 +571,13 @@ query for ``WHERE mycolumn=0``, both rows will match. Similarly, ``WHERE mycolum will match the value ``'abc1'``. Therefore, string type fields included in Django will always cast the value to a string before using it in a query. -If you implement custom model fields that inherit from :class:`~django.db.models.Field` -directly, are overriding :meth:`~django.db.models.Field.get_prep_value`, or use -:meth:`extra() <django.db.models.query.QuerySet.extra>` or -:meth:`raw() <django.db.models.Manager.raw>`, you should ensure that you -perform the appropriate typecasting. +If you implement custom model fields that inherit from +:class:`~django.db.models.Field` directly, are overriding +:meth:`~django.db.models.Field.get_prep_value`, or use +:class:`~django.db.models.expressions.RawSQL`, +:meth:`~django.db.models.query.QuerySet.extra`, or +:meth:`~django.db.models.Manager.raw`, you should ensure that you perform +appropriate typecasting. .. _sqlite-notes: |
