mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #30365 -- Fixed syntax highlighting in SQL examples.
Sphinx interprets some "%[a-z]" in SQL statements as a "Literal.String.Interpol" which leads to incorrect highlighting.
This commit is contained in:
parent
25b5eea8cd
commit
6fd9c9daa6
6 changed files with 151 additions and 52 deletions
|
@ -840,7 +840,9 @@ together. For example::
|
|||
Q(pub_date=date(2005, 5, 2)) | Q(pub_date=date(2005, 5, 6))
|
||||
)
|
||||
|
||||
... roughly translates into the SQL::
|
||||
... roughly translates into the SQL:
|
||||
|
||||
.. code-block:: sql
|
||||
|
||||
SELECT * from polls WHERE question LIKE 'Who%'
|
||||
AND (pub_date = '2005-05-02' OR pub_date = '2005-05-06')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue