olivierphi / Node-DBI

A SQL database abstraction layer strongly inspired by the PHP Zend Framework Zend_Db API, with support of multiple Node.js database engines
https://github.com/DrBenton/Node-DBI
93 stars 22 forks source link

pg.connection() #17

Open alexsuslov opened 11 years ago

alexsuslov commented 11 years ago

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();
olivierphi commented 10 years ago

@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 ?