Skip to content

Commit

Permalink
Update api.vessel_details_fn, fix length
Browse files Browse the repository at this point in the history
  • Loading branch information
xbgmsharp committed Jan 29, 2024
1 parent 22b0433 commit e727954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion initdb/02_5_signalk_api_deps.sql
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ BEGIN
'ship_type', (SELECT ais.description FROM aistypes ais, tbl t WHERE t.ship_type = ais.id),
'country', (SELECT mid.country FROM mid, tbl t WHERE LEFT(cast(t.mmsi as text), 3)::NUMERIC = mid.id),
'alpha_2', (SELECT o.alpha_2 FROM mid m, iso3166 o, tbl t WHERE LEFT(cast(t.mmsi as text), 3)::NUMERIC = m.id AND m.country_id = o.id),
'length', t.ship_type,
'length', t.length,
'beam', t.beam,
'height', t.height,
'plugin_version', t.plugin_version,
Expand Down

0 comments on commit e727954

Please sign in to comment.