mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	[1.5.x] Fixed cursor commit command in PostGIS backend
Thanks Bruno Renié for noticing the error.
Backport of 7b9a1fb96 from master.
			
			
This commit is contained in:
		| @@ -91,6 +91,6 @@ class PostGISCreation(DatabaseCreation): | |||||||
|             self.connection.settings_dict["NAME"] = test_database_name |             self.connection.settings_dict["NAME"] = test_database_name | ||||||
|             cursor = self.connection.cursor() |             cursor = self.connection.cursor() | ||||||
|             cursor.execute("CREATE EXTENSION postgis") |             cursor.execute("CREATE EXTENSION postgis") | ||||||
|             cursor.commit() |             cursor.connection.commit() | ||||||
|  |  | ||||||
|         return test_database_name |         return test_database_name | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user