Fixed collation tests on Windows, replace use of default 'POSIX' collation with 'C' collation for testing. Fixes #2501
parent
6717aff8f5
commit
bebfc62721
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue