This commit is contained in:
Cloud Wu
2016-06-13 12:01:54 +08:00
parent 84ee3da79a
commit ee1a218870

View File

@@ -366,7 +366,7 @@ function mongo_collection:createIndex(option , onekey)
return self.database:runCommand("createIndexes", self.name, "indexes", { IndexModel(option) })
end
function mongo_collection:createIndexs(...)
function mongo_collection:createIndexes(...)
local idx = { ... }
for k,v in ipairs(idx) do
idx[k] = IndexModel(v)