Skip to content
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

Potential fix for client_encoding error #291

Merged
merged 2 commits into from Mar 7, 2013
Merged

Potential fix for client_encoding error #291

merged 2 commits into from Mar 7, 2013

Conversation

ghost
Copy link

@ghost ghost commented Mar 5, 2013

error: unrecognized configuration parameter "lient_encoding"
at p.parseE (/xx/node_modules/pg/lib/connection.js:503:11)
at p.parseMessage (/xx/node_modules/pg/lib/connection.js:363:17)
at CleartextStream.p.attachListeners (/xx/node_modules/pg/lib/connection.js:90:18)
at CleartextStream.EventEmitter.emit (events.js:96:17)
at CleartextStream.CryptoStream._push (tls.js:540:12)
at SecurePair.cycle (tls.js:898:20)
at EncryptedStream.CryptoStream.write (tls.js:285:13)
at Socket.ondata (stream.js:38:26)
at Socket.EventEmitter.emit (events.js:96:17)
at TCP.onread (net.js:397:14)

http://www.postgresql.org/docs/current/static/libpq-connect.html also looks like this should be specified more like "client_encoding 'utf8'" rather than "options --client_encoding='utf8'"

Feel free to shoot me down if this is completely off. I'm testing with OS X as a client and psql 9.1 on OpenBSD as a server.

@ghost
Copy link
Author

ghost commented Mar 5, 2013

I'll get on the failed test ASAP - in the meantime I'd still like to know some others' thoughts on this.

@brianc
Copy link
Owner

brianc commented Mar 6, 2013

Looks good to me

brianc added a commit that referenced this pull request Mar 7, 2013
Potential fix for client_encoding error
@brianc brianc merged commit ed75b2f into brianc:master Mar 7, 2013
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.

None yet

1 participant