Fixed collation tests on Windows, replace use of default 'POSIX' collation with 'C' collation for testing. Fixes #2501

This commit is contained in:
Murtuza Zabuawala 2017-08-03 16:46:20 +05:30 committed by Akshay Joshi
parent 6717aff8f5
commit bebfc62721
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ class CollationAddTestCase(BaseTestGenerator):
raise Exception("Could not find the schema to add the collation.")
data = {
"copy_collation": "pg_catalog.\"POSIX\"",
"copy_collation": "pg_catalog.\"C\"",
"name": "collation_add_%s" % str(uuid.uuid4())[1:6],
"owner": self.server["username"],
"schema": schema_name

View File

@ -25,7 +25,7 @@ def create_collation(server, schema_name, coll_name, db_name):
server['port'],
server['sslmode'])
pg_cursor = connection.cursor()
pg_cursor.execute('CREATE COLLATION %s.%s FROM pg_catalog."POSIX"' %
pg_cursor.execute('CREATE COLLATION %s.%s FROM pg_catalog."C"' %
(schema_name, coll_name))
connection.commit()