lib/pq — pull request #108 by llimllib (2013-06-03 20:42:41+00:00)
Title: Don't die on trailing whitespace in a connection string

Currently, if you give pq a connection string with a trailing whitespace, it likes to die with the confusing message `pq: invalid option: ""`

This patch just trims whitespace around the connection string so that when parseOptions splits on " ", it doesn't get a spurious empty option.

Includes a simple test.