Skip to content

Tests fail when running on DB's with certain locales #189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ysangkok opened this issue Sep 19, 2012 · 0 comments
Closed

Tests fail when running on DB's with certain locales #189

ysangkok opened this issue Sep 19, 2012 · 0 comments
Labels

Comments

@ysangkok
Copy link

http://www.postgresql.org/docs/9.1/static/locale.html notes that databases uses locale specific sorting. Because the tests do not create their own database, they are dependent on the locale of the database. This breaks the sorting test.

Using xxx_pattern_ops (http://www.postgresql.org/docs/9.1/interactive/indexes-opclass.html) the test could enforce English sorting.

simple-query-tests.js.....Message: undefined
AssertionError: "Brian" == "Aaron"
at /var/www/node-postgres/test/integration/client/simple-query-tests.js:33:14
at test (/var/www/node-postgres/test/test-helper.js:145:16)
at null.<anonymous> (/var/www/node-postgres/test/integration/client/simple-query-tests.js:32:5)
at assert.emits (/var/www/node-postgres/test/test-helper.js:46:16)
at g (events.js:185:14)
at EventEmitter.emit (events.js:88:17)
at p.handleReadyForQuery (/var/www/node-postgres/lib/query.js:81:8)
at p.connect.con.on.self.activeQuery (/var/www/node-postgres/lib/client.js:121:24)
at EventEmitter.emit (events.js:115:20)
at Socket.p.connect (/var/www/node-postgres/lib/connection.js:75:14)
charmander added a commit to charmander/node-postgres that referenced this issue Nov 16, 2017
brianc pushed a commit that referenced this issue Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants