From 067ec66812b1cc3d00498648bc6d3e9b06e5a746 Mon Sep 17 00:00:00 2001 From: Jim Menard Date: Mon, 8 Dec 2008 08:33:29 -0500 Subject: [PATCH] Fixed index info retrieval --- lib/mongo/db.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mongo/db.rb b/lib/mongo/db.rb index 6ba8022..02f29ab 100644 --- a/lib/mongo/db.rb +++ b/lib/mongo/db.rb @@ -131,7 +131,7 @@ module XGen h = {:name => row['name']} raise "Name of index on return from db was nil. Coll = #{full_coll_name(collection)}" unless h[:name] - h[:keys] = row['keys'] + h[:keys] = row['key'] raise "Keys for index on return from db was nil. Coll = #{full_coll_name(collection)}" unless h[:keys] h[:ns] = row['ns']