Skip to content

Commit bdbdfd4

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 fe6e039 commit bdbdfd4

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
@@ -976,7 +976,7 @@ CREATE VIEW `cloud`.`host_view` AS
976976
left join
977977
`cloud`.`host_pod_ref` ON host.pod_id = host_pod_ref.id
978978
left join
979-
`cloud`.`host_details` ON host.id = host_details.id
979+
`cloud`.`host_details` ON host.id = host_details.host_id
980980
and host_details.name = 'guest.os.category.id'
981981
left join
982982
`cloud`.`guest_os_category` ON guest_os_category.id = CONVERT( host_details.value , UNSIGNED)

0 commit comments

Comments
 (0)