dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 379 forks source link

find is return the same data,but what I want is got diffrient data #635

Open xuezier opened 9 years ago

xuezier commented 9 years ago

req.models[tablename].find({ fid: data.fid, myid: data.myid }, function(err, result) { if (err) { res.send(500, err); } else { console.log(eval(result.chat)) } })

any problems with the code? I change the key to find diffrient data, the first time I got the data right。 but after it, it always return the first data I have got .

xuezier commented 9 years ago

qq 20150422163951 use diffrient keys but got the same data, why?