Skip to content

Commit c059dac

Browse files
anshulgangwarSateesh Chodapuneedi
authored andcommitted
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>
1 parent d0ad805 commit c059dac

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎setup/db/db/schema-307to410.sql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ CREATE VIEW `cloud`.`host_view` AS
977977
left join
978978
`cloud`.`host_pod_ref` ON host.pod_id = host_pod_ref.id
979979
left join
980-
`cloud`.`host_details` ON host.id = host_details.id
980+
`cloud`.`host_details` ON host.id = host_details.host_id
981981
and host_details.name = 'guest.os.category.id'
982982
left join
983983
`cloud`.`guest_os_category` ON guest_os_category.id = CONVERT( host_details.value , UNSIGNED)

‎setup/db/db/schema-40to410.sql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ CREATE VIEW `cloud`.`host_view` AS
10731073
left join
10741074
`cloud`.`host_pod_ref` ON host.pod_id = host_pod_ref.id
10751075
left join
1076-
`cloud`.`host_details` ON host.id = host_details.id
1076+
`cloud`.`host_details` ON host.id = host_details.host_id
10771077
and host_details.name = 'guest.os.category.id'
10781078
left join
10791079
`cloud`.`guest_os_category` ON guest_os_category.id = CONVERT( host_details.value , UNSIGNED)

‎setup/db/db/schema-410to420.sql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ CREATE VIEW `cloud`.`host_view` AS
992992
left join
993993
`cloud`.`host_pod_ref` ON host.pod_id = host_pod_ref.id
994994
left join
995-
`cloud`.`host_details` ON host.id = host_details.id
995+
`cloud`.`host_details` ON host.id = host_details.host_id
996996
and host_details.name = 'guest.os.category.id'
997997
left join
998998
`cloud`.`guest_os_category` ON guest_os_category.id = CONVERT( host_details.value , UNSIGNED)

0 commit comments

Comments
 (0)