Skip to content

Remove hard-coded PostgreSQL locale definitions from test fixtures#116

Open
yhong123 wants to merge 3 commits into
mainfrom
yhong123/115-remove_hard-coded_postgresql_locale_from_tests
Open

Remove hard-coded PostgreSQL locale definitions from test fixtures#116
yhong123 wants to merge 3 commits into
mainfrom
yhong123/115-remove_hard-coded_postgresql_locale_from_tests

Conversation

@yhong123

Copy link
Copy Markdown
Collaborator

Resolves #115

This PR removes hard-coded PostgreSQL locale definitions from the following test fixtures:

  • /tests/examples/choice.sql
  • /tests/examples/eav.sql
  • /tests/examples/empty.sql
  • /tests/examples/unique_generator.dump
  • /tests/examples/instrument.sql
  • /tests/examples/src.dump
  • /tests/examples/dst.dump
  • /tests/examples/tricky.sql
  • /tests/examples/src2.dump
  • /tests/examples/providers.dump

The existing fixtures specify LOCALE='en_US.utf8', which is not portable across platforms (e.g. macOS uses locale names such as en_US.UTF-8).

PostgreSQL already inherits locale settings from the cluster, so the explicit locale specification is unnecessary.

I verified the change by running the test suite against PostgreSQL clusters initialised with several locales (en_US.UTF-8, ja_JP.UTF-8, zh_CN.UTF-8), and the suite passed in all cases.

@yhong123 yhong123 requested a review from tim-band June 26, 2026 14:12
@yhong123 yhong123 self-assigned this Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test suite issue: make PostgreSQL tests locale-independent

1 participant