Skip to content

Make option parsing more conformant to libpq behaviour. #164

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

Merged
merged 1 commit into from
Oct 10, 2013
Merged

Make option parsing more conformant to libpq behaviour. #164

merged 1 commit into from
Oct 10, 2013

Conversation

kisielk
Copy link
Contributor

@kisielk kisielk commented Oct 10, 2013

Turns out I misread some of the pointer dancing going on in conninfo_parse, this commit fixes that.

Fixes #162

{"user=foo blah", values{"user": "foo"}, true},
{"user=foo blah ", values{"user": "foo"}, true},
{"user=foo blah= ", values{"user": "foo"}, true},

// No '=' after the key
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment applies to the unchanged line below, I believe.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It applies to all four tests here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see, I guess that's true. The URL format threw me off.

@msakrejda msakrejda merged commit 6ebbd10 into lib:master Oct 10, 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.

Connection string parsing corner case
2 participants