[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:
Claude Paroz 2012-11-23 17:20:36 +01:00
parent d46b24e682
commit 56f8e4b79c
1 changed files with 1 additions and 1 deletions

View File

@ -91,6 +91,6 @@ class PostGISCreation(DatabaseCreation):
self.connection.settings_dict["NAME"] = test_database_name
cursor = self.connection.cursor()
cursor.execute("CREATE EXTENSION postgis")
cursor.commit()
cursor.connection.commit()
return test_database_name