2013-01-09 Anton Adamansky. <adamansky@gmail.com>
+ * Critical fixes in ejdb cli console
+ * Fix count(*) query optimization when OR predicates used
* Collection should be automatically created for $upsert queries (ticket #32)
- - Release 1.0.45
+ * Test cases are not executed during npm installation
+ - Release 1.0.46
2013-01-09 Anton Adamansky. <adamansky@gmail.com>
* Fixed crash on sorting (ticket #31)
}
next = args[i++];
if (next !== undefined) {
- if (next.constructor === Array) {
+ if (Array.isArray(next)) {
orarr = next;
next = args[i++];
} else if (typeof next === "object") {
{
"name" : "ejdb",
- "version" : "1.0.45",
+ "version" : "1.0.46",
"main" : "node/ejdb.js",
"homepage" : "http://ejdb.org",
"description" : "EJDB - Embedded JSON Database engine",
},
"scripts" : {
"preinstall" : "make all && node-gyp rebuild",
- "test" : "make -f tests.mk check-all",
- "postinstall" : "make -f tests.mk check"
+ "test" : "make -f tests.mk check-all"
},
"bin" : {
"ejdb" : "node/bin/cli.js"
for (int i = 0; i < ofsz; ++i) assert(ofs[i] != NULL);
}
- if ((ejq->flags & EJQONLYCOUNT) && qfsz == 0) { //primitive count(*) query
+ if ((ejq->flags & EJQONLYCOUNT) && qfsz == 0 && ejq->orqobjsnum == 0) { //primitive count(*) query
count = jcoll->tdb->hdb->rnum;
if (log) {
tcxstrprintf(log, "SIMPLE COUNT(*): %u\n", count);