|
@ -36,7 +36,7 @@ let query = function(options){
|
|
|
doRelease(connection);
|
|
|
return handler(err, result);
|
|
|
}
|
|
|
// console.log(result);
|
|
|
console.log(result);
|
|
|
if(!result.rows || result.rows.length == 0){
|
|
|
handler(null, result.rows);
|
|
|
}else{
|
|
@ -47,7 +47,7 @@ let query = function(options){
|
|
|
{
|
|
|
// log.info("开始组装数据库返回值:"+i)
|
|
|
p[key.name] = v[i];
|
|
|
// log.info(p)
|
|
|
log.info(p)
|
|
|
return p;
|
|
|
}, {})
|
|
|
}));
|