Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6081

Querying count on non-existent table returns 0 instead of error

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.6
    • Component/s: Querying
    • None
    • ALL

      Running "db.asdfqwerty.count();" returns 0 if table "asdfqwerty" does not exist. This scared the crap out of me. I had a typo in my table name and thought I deleted the whole table. It would be much better if this returned an error.

            Assignee:
            Unassigned Unassigned
            Reporter:
            chengas123 Ben McCann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: