mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[4.1.x] Removed unnecessary semicolons in docs about performing raw SQL.
Backport of e89f957135 from main
			
			
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							2dd646e935
						
					
				
				
					commit
					33552c7a13
				
			| @@ -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:: | ||||
|  | ||||
|     >>> 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)] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user