core: show data once on ISO shared from multi DCs
core: show data once on ISO shared from multi DCs

When the same ISO is shared to multiple DCs, this SP will return
duplicate rows (as the number of DCs having this ISO)

This is fixed by adding a DISTINCT ON (id) * to the select statement in
this SP, this will eliminate the results to the 1st matching record.

Change-Id: I7c9a1381aae2eb623d1743314a1fb6ef7795dcb6
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1295742
Signed-off-by: emesika <dc8a2a200abf66067593de2e51fee9376f06ea0f@redhat.com>
yapengsong/ovirt-engine,eayun/ovirt-engine,zerodengxinchao/ovirt-engine,walteryang47/ovirt-engine,yapengsong/ovirt-engine,eayun/ovirt-engine,yapengsong/ovirt-engine,walteryang47/ovirt-engine,yapengsong/ovirt-engine,zerodengxinchao/ovirt-engine,zerodengxinchao/ovirt-engine,eayun/ovirt-engine,walteryang47/ovirt-engine,walteryang47/ovirt-engine,yingyun001/ovirt-engine,yingyun001/ovirt-engine,walteryang47/ovirt-engine,yingyun001/ovirt-engine,yingyun001/ovirt-engine,zerodengxinchao/ovirt-engine,yapengsong/ovirt-engine,eayun/ovirt-engine,zerodengxinchao/ovirt-engine,yingyun001/ovirt-engine,eayun/ovirt-engine