[ZBX-3671] Use of 'count(value)' on 'NCLOB' column Created: 2011 Mar 31 Updated: 2017 May 30 Resolved: 2011 Apr 18 |
|
| Status: | Closed |
| Project: | ZABBIX BUGS AND ISSUES |
| Component/s: | Server (S) |
| Affects Version/s: | 1.8.4 |
| Fix Version/s: | 1.8.6 |
| Type: | Incident report | Priority: | Major |
| Reporter: | Marc | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Server: ZABBIX 1.8.4 (Oracle Call Interface) |
||
| Issue Links: |
|
||||||||
| Description |
|
Hi, there is a bug in a SQL query:
Select queries with 'count(value)' won't work when column 'value' is of any kind of 'LOB' datatypes: select count(value) from history_text where itemid=26212 and clock<=1301417122 and clock>1301417122 Changing the query to 'count |
| Comments |
| Comment by Alexander Vladishev [ 2011 Apr 13 ] |
|
Available in development branch svn://svn.zabbix.com/branches/dev/ZBX-3671 |
| Comment by Alexander Vladishev [ 2011 Apr 18 ] |
|
Fixed in version pre1.8.6, r19067 |
| Comment by Marc [ 2011 Apr 18 ] |
|
Be aware that 'count(value)' would count only datasets with 'value != NULL' and count |