Skip to content

Commit

Permalink
cast elevation and gain to ints (#936)
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck authored Jan 30, 2025
1 parent ba4204e commit 18efc28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iot_config/src/gateway_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ pub(crate) mod db {
}

const GET_METADATA_SQL: &str = r#"
select kta.entity_key, infos.location::bigint, infos.elevation, infos.gain, infos.is_full_hotspot
select kta.entity_key, infos.location::bigint, CAST(infos.elevation AS integer), CAST(infos.gain as integer), infos.is_full_hotspot
from iot_hotspot_infos infos
join key_to_assets kta on infos.asset = kta.asset
"#;
Expand Down

0 comments on commit 18efc28

Please sign in to comment.