Ad Widget

Collapse

Bug in function evaluate_COUNT()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #1

    Bug in function evaluate_COUNT()

    Hi,

    there is a (presumable Oracle dependent) bug in a SQL query:
    Code:
    # sed -n 380,385p zabbix-1.8.4/src/libs/zbxserver/evalfunc.c
    		offset = zbx_snprintf(sql, sizeof(sql),
    				"select [B]count(value)[/B]"
    				" from %s"
    				" where itemid=" ZBX_FS_UI64,
    				get_table_by_value_type(item->value_type),
    				item->itemid);
    Select queries with 'count(value)' won't work when column 'value' is of any kind of 'LOB' datatypes:
    Code:
    select count(value) from history_text where itemid=26212 and clock<=1301417122 and clock>1301417122
    ORA-00932: inconsistent datatypes: expected - got NCLOB
  • Gomex
    Junior Member
    Zabbix Certified Specialist
    • Apr 2009
    • 11

    #2
    Report bug

    It should be reported as bug:

    Comment

    • BDiE8VNy
      Senior Member
      • Apr 2010
      • 680

      #3

      Comment

      • Gomex
        Junior Member
        Zabbix Certified Specialist
        • Apr 2009
        • 11

        #4
        good job!

        Now, just wait some response

        Comment

        Working...