Node-DBI icon indicating copy to clipboard operation
Node-DBI copied to clipboard

pg.connection()

Open alexsuslov opened this issue 12 years ago • 1 comments

No connection with '@' in user.

var config={
user:"noname@site"
, password:"password"
, host:"localhost"
, database:"database"
}
var dbWrapper = new pg.DBWrapper('pg', config);
dbWrapper.connect();

alexsuslov avatar Mar 13 '13 15:03 alexsuslov

@alexsuslov Well, I'm far from being a PostreSQL expert. Do postgres users really use "@" in usernames ?? :-)

The problem is that the pg driver relies on "@" for its connexion String : it's a separator between the username and the server address. Would you have an idea about how we could solve this issue ?

olivierphi avatar Jan 13 '14 14:01 olivierphi