brianc/node-postgres — pull request #443 by 59naga (2013-09-17 12:44:27+00:00)
Title: _result.rows was empty

var pg=require('pg');
var db=new pg.Client("postgres://postgres:1234@localhost/postgres");
db.connect(function(){
var sql="select 'bar' as foo where $1=$1;";
var values=[1];
db.query(sql,values).on("end",function(result){
console.log(result);
});
});
//>>{command:'SELECT',rowCount:1,oid:NaN,rows:[],,,}