8000 Error when opening db with invalid javascript naming. · Issue #160 · officert/mongotron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Error when opening db with invalid javascript naming. #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zack37 opened this issue Jan 13, 2017 · 0 comments
Open

Error when opening db with invalid javascript naming. #160

zack37 opened this issue Jan 13, 2017 · 0 comments

Comments

@zack37
Copy link
zack37 commented Jan 13, 2017

I have a database with a hyphen in the name, and when I try to open the collections, an error is thrown because the query is trying to parse db.hyphenated-database.find({}). The fix for this is to change the query to be db['hyphenated-database'].find({}), which should probably be the default as it would be correct for any naming of databases.

See: https://imgur.com/a/RFfWb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0