1602 / compound

MVC framework. Built on Node.JS. Works on server and browser.
http://compoundjs.com
1.6k stars 183 forks source link

Model api does not fully work with memory #638

Open PhoenixGrey opened 10 years ago

PhoenixGrey commented 10 years ago

gt, lt such comparisons work fine when the db is configured as mysql, but wrong with memory.

eg, There is a model called user is generated with age, name, birthday. Using

User.count({age:{gt:10}}, function(err, data) {....})

is fine under compound c but not NODE_ENV="test" compound c, while in config/database.coffee the configuration is set mysql as development env and memory as test env, respectively.