CLOUDSTACK-3806: There was error in host_view sql, it was using host_details.id for join instead host_details.host_id

Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
This commit is contained in:
Anshul Gangwar 2013-08-26 13:27:56 +05:30 committed by Sateesh Chodapuneedi
parent fe6e0390f8
commit bdbdfd401b
3 changed files with 3 additions and 3 deletions

View File

@ -977,7 +977,7 @@ CREATE VIEW `cloud`.`host_view` AS
left join
`cloud`.`host_pod_ref` ON host.pod_id = host_pod_ref.id
left join
`cloud`.`host_details` ON host.id = host_details.id
`cloud`.`host_details` ON host.id = host_details.host_id
and host_details.name = 'guest.os.category.id'
left join
`cloud`.`guest_os_category` ON guest_os_category.id = CONVERT( host_details.value , UNSIGNED)

View File

@ -1073,7 +1073,7 @@ CREATE VIEW `cloud`.`host_view` AS
left join
`cloud`.`host_pod_ref` ON host.pod_id = host_pod_ref.id
left join
`cloud`.`host_details` ON host.id = host_details.id
`cloud`.`host_details` ON host.id = host_details.host_id
and host_details.name = 'guest.os.category.id'
left join
`cloud`.`guest_os_category` ON guest_os_category.id = CONVERT( host_details.value , UNSIGNED)

View File

@ -976,7 +976,7 @@ CREATE VIEW `cloud`.`host_view` AS
left join
`cloud`.`host_pod_ref` ON host.pod_id = host_pod_ref.id
left join
`cloud`.`host_details` ON host.id = host_details.id
`cloud`.`host_details` ON host.id = host_details.host_id
and host_details.name = 'guest.os.category.id'
left join
`cloud`.`guest_os_category` ON guest_os_category.id = CONVERT( host_details.value , UNSIGNED)