diff options
| author | Tom Sparrow <793763+sparrowt@users.noreply.github.com> | 2022-05-19 09:38:22 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-05-19 10:39:35 +0200 |
| commit | 1dec0c07de64ccf85eceb635cdb2a7af3e7a0554 (patch) | |
| tree | 7b347ab7a23df9a0a731985c6a31b21373980caf /docs | |
| parent | 4a86883e0a7ed349d7ce3e91bde5e8e321effa1f (diff) | |
[4.0.x] Removed unnecessary semicolons in docs about performing raw SQL.
Backport of e89f9571352f42c7752b351ba1e651485e5e7c51 from main
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/db/sql.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/topics/db/sql.txt b/docs/topics/db/sql.txt index 7b5177df2d..bc6f5ef028 100644 --- a/docs/topics/db/sql.txt +++ b/docs/topics/db/sql.txt @@ -320,15 +320,15 @@ immutable and accessible by field names or indices, which might be useful:: Here is an example of the difference between the three:: - >>> cursor.execute("SELECT id, parent_id FROM test LIMIT 2"); + >>> cursor.execute("SELECT id, parent_id FROM test LIMIT 2") >>> cursor.fetchall() ((54360982, None), (54360880, None)) - >>> cursor.execute("SELECT id, parent_id FROM test LIMIT 2"); + >>> cursor.execute("SELECT id, parent_id FROM test LIMIT 2") >>> dictfetchall(cursor) [{'parent_id': None, 'id': 54360982}, {'parent_id': None, 'id': 54360880}] - >>> cursor.execute("SELECT id, parent_id FROM test LIMIT 2"); + >>> cursor.execute("SELECT id, parent_id FROM test LIMIT 2") >>> results = namedtuplefetchall(cursor) >>> results [Result(id=54360982, parent_id=None), Result(id=54360880, parent_id=None)] |
