Skip to content

buffer.write Unknown Encoding bug fix #65

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

Conversation

christophemacabiau
Copy link
Contributor

the commit 46f6d90 breaks the buffer api
unit tests were not passing anymore

@wavded
Copy link

wavded commented Nov 1, 2011

this is blowing up my live site, reverting, plz fix

@booo
Copy link
Contributor

booo commented Nov 1, 2011

Same problem here using v0.4.9 and pg version from npm.

@defunctzombie
Copy link
Contributor

The problem is the api mismatch between Node 0.4.x and 0.5.+.

0.5.+ has a length argument to buffer.write, current stable node does not. The released npm package should have been for node > 0.5.x then you should not be able to install on stable node.

The fix is not to remove the length. That should remain going forward imho.

@brianc
Copy link
Owner

brianc commented Nov 2, 2011

sorry about that...I had the wrong branch checked out on my node4 test machine. I'll work on this right now.

@brianc
Copy link
Owner

brianc commented Nov 2, 2011

hmm...unit tests faill with this pull request...I'll fix the bug, but I don't think this is merge material. I get:

Error: unknown encoding

@brianc brianc closed this Nov 2, 2011
@brianc
Copy link
Owner

brianc commented Nov 2, 2011

I appreciate the pull request. I'd like to elaborate on what happend... In this circumstance instead of taking the pull request and fixing compatibility with node v0.4.x and breaking it again for v0.5.x I did a little bit of hackery to make pg run on both "branches" of node.

Sorry for the oversight on this not working earlier. I always test things on node v0.4.x and node v0.5.x, but I screwed up the remote references on the test box and thought things were green when they were actually red. My glasses broke this week, and I've had to wear an old pair which is causing a headache + difficulty reading screen...so let's chalk it up to that and move on, yes yes?

@defunctzombie
Copy link
Contributor

Your quick turnaround time forgives all :) No excuses required!

brianc added a commit that referenced this pull request Dec 20, 2019
* Bump version of pg-cursor

This includes fixes in [email protected].  I've relaxed semver a touch so I don't have to release a new version here just for patch changes to pg-cursor.

* Pass options to pg-cursor

fixes #55
brianc added a commit that referenced this pull request Dec 27, 2019
When the pool emits an error pass the client as the 2nd parameter to the `on('error')` handler.
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.

5 participants