weird sql statement conditions

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Major
    • 2.1.7, 2.2.0
    • Affects Version/s: None
    • Component/s: Frontend (F)
    • Environment:
      trunk r38447.

      SQL (0.000364): SELECT i.itemid,i.hostid FROM items i WHERE i.type<>9 AND i.flags IN (0,4) AND i.itemid='31871' AND i.flags='0'
      items.php:194 ? CAPIObject->get() ? CAPIObject->__call() ? czbxrpc::call() ? czbxrpc::callAPI() ? call_user_func() ? CItem->get() ? DBselect() in /home/main/usr/local/apache2/htdocs/trunk/api/classes/CItem.php:374

      note the presence of both :

      AND i.flags IN (0,4) AND i.itemid='31871' AND i.flags='0'

      this is generated when clicking on an item in the configuration

            Assignee:
            Unassigned
            Reporter:
            richlv
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: