[DOCS-1628] Comment on: "manual/tutorial/generate-test-data.txt" Created: 20/Jun/13  Updated: 20/Jun/13  Resolved: 20/Jun/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Blocker - P1
Reporter: auto Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MacOS 10.6.8
Homebrew 0.9.4
MongoDB 2.4.4

Location: http://docs.mongodb.org/manual/tutorial/generate-test-data/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36
Screen Resolution: 1680 x 1050
repo: docs
source: tutorial/generate-test-data


Participants:
Days since reply: 10 years, 34 weeks, 6 days ago

 Description   

Hi,

Problem :

The first two lines below in the insertData function generate an error :

var db = db.getSiblingDB(dbName);
var col = db.getCollection(colName);

Error :

JavaScript execution failed: TypeError: Cannot call method 'getSiblingDB' of undefined at /Users/selenite29/.mongorc.js:L4

Suggestion :

I resolved it by renaming var db.

Reporter: Selenite Vingt-Neuf



 Comments   
Comment by Sam Kleinman (Inactive) [ 20/Jun/13 ]

fixed in source will publish later!

Generated at Thu Feb 08 07:41:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.