Removed unnecessary semicolons in docs about performing raw SQL.

This commit is contained in:
Tom Sparrow 2022-05-19 09:38:22 +01:00 committed by GitHub
parent 41c4cb253c
commit e89f957135
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -315,15 +315,15 @@ immutable and accessible by field names or indices, which might be useful::
Here is an example of the difference between the three:: 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() >>> cursor.fetchall()
((54360982, None), (54360880, None)) ((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) >>> dictfetchall(cursor)
[{'parent_id': None, 'id': 54360982}, {'parent_id': None, 'id': 54360880}] [{'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 = namedtuplefetchall(cursor)
>>> results >>> results
[Result(id=54360982, parent_id=None), Result(id=54360880, parent_id=None)] [Result(id=54360982, parent_id=None), Result(id=54360880, parent_id=None)]