[SERVER-7642] 3 dots on enter/'commit' Created: 13/Nov/12  Updated: 15/Feb/13  Resolved: 13/Nov/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: stuart hayes Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7


Participants:

 Description   

Hi, I'm new to MongoDB and just playing around trying to insert some data into a new collection (my plan is to later connect to Mongo using Jaspersoft iReport and create a report on this dataset). i've copied p 137 of 7 DBs in 7 weeks to create some data eg

db.towns.insert({
name: "New York", population: 222000000, famous_for ["food", "central park"],
mayor:{"MB", party:"I"}
})

The syntax is all good, but when i hit enter i get ... (3 dots) and it seems to hang eg I cannot enter any further commands.

What's wrong?
Thanks
Stuart



 Comments   
Comment by Tad Marshall [ 13/Nov/12 ]

This is multi-line continuation mode. When the shell determines that your command is incomplete when you press Enter, it prompts for the rest of the line. It will do this repeatedly until you finish the (logical) line or press Enter twice on blank lines.

See http://www.mongodb.org/display/DOCS/Overview+-+The+MongoDB+Interactive+Shell#Overview-TheMongoDBInteractiveShell-LineContinuation for discussion of this feature.

Generated at Thu Feb 08 03:15:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.