Skip to content

Commit aa0b592

Browse files
Chris Turnerguzman-raphael
andauthored
Update docs-parts/queries/03-Fetch_lang1.rst
Co-authored-by: Raphael Guzman <[email protected]>
1 parent 791ea4a commit aa0b592

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs-parts/queries/03-Fetch_lang1.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,10 @@ The ``order_by`` argument can be a string specifying the attribute to sort by. B
5757

5858
The special attribute name ``"KEY"`` represents the primary key attributes in order that they appear in the index. Otherwise, this name can be used as any other argument.
5959

60-
If an attribute happens to be an SQL reserved word, it needs to be enclosed in backquotes. For example
61-
...code: python
60+
If an attribute happens to be a SQL reserved word, it needs to be enclosed in backquotes. For example:
61+
62+
.. code-block:: python
63+
6264
data = query.fetch(order_by='`select` desc')
6365
6466
The `order_by` value is eventually passed to the ``ORDER BY`` clause <https://dev.mysql.com/doc/refman/5.7/en/order-by-optimization.html>`_

0 commit comments

Comments
 (0)