YUKI Hiroshi
null+****@clear*****
Thu Nov 1 11:40:04 JST 2012
YUKI Hiroshi 2012-11-01 11:40:04 +0900 (Thu, 01 Nov 2012) New Revision: 75454a85fffa82bf44948623acb65fe0cc689577 https://github.com/groonga/gcs/commit/75454a85fffa82bf44948623acb65fe0cc689577 Log: Return correct value by searchableDocumentsCount Modified files: lib/database/domain.js Modified: lib/database/domain.js (+7 -1) =================================================================== --- lib/database/domain.js 2012-11-01 11:36:13 +0900 (c09b27a) +++ lib/database/domain.js 2012-11-01 11:40:04 +0900 (d97139f) @@ -258,7 +258,13 @@ Domain.prototype = { }, get searchableDocumentsCount() { - return 0; + var options = { + table: this.tableName, + limit: 0, + offset: 0 + }; + var result = this.context.commandSync('select', options); + return result[0][0][0]; }, get requiresIndexDocuments() { return false; -------------- next part -------------- HTML����������������������������...Download