Open PhoenixGrey opened 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.
compound c
NODE_ENV="test" compound c
config/database.coffee
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
is fine under
compound c
but notNODE_ENV="test" compound c
, while inconfig/database.coffee
the configuration is set mysql as development env and memory as test env, respectively.