mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 11:17:46 +00:00
Follow best practive don't use timestamp(0)
This commit is contained in:
@@ -107,9 +107,9 @@ AS $vessel$
|
|||||||
jsonb_build_object(
|
jsonb_build_object(
|
||||||
'name', coalesce(m.name, null),
|
'name', coalesce(m.name, null),
|
||||||
'mmsi', coalesce(m.mmsi, null),
|
'mmsi', coalesce(m.mmsi, null),
|
||||||
'created_at', v.created_at::timestamp(0),
|
'created_at', v.created_at,
|
||||||
'first_contact', coalesce(m.created_at::timestamp(0), null),
|
'first_contact', coalesce(m.created_at, null),
|
||||||
'last_contact', coalesce(m.time::timestamp(0), null),
|
'last_contact', coalesce(m.time, null),
|
||||||
'geojson', coalesce(ST_AsGeoJSON(geojson_t.*)::json, null)
|
'geojson', coalesce(ST_AsGeoJSON(geojson_t.*)::json, null)
|
||||||
)::jsonb || api.vessel_details_fn()::jsonb
|
)::jsonb || api.vessel_details_fn()::jsonb
|
||||||
INTO vessel
|
INTO vessel
|
||||||
|
Reference in New Issue
Block a user