_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:[],,,}