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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 2.0.6
    • Fix Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Operating System:
      ALL

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: