Skip to content

Commit

Permalink
Ignore any primary key that is not an integer
Browse files Browse the repository at this point in the history
since non-integer keys cannot be embedded in the
MVT in the 'id' field. Closes CrunchyData#67
  • Loading branch information
pramsey committed Dec 7, 2020
1 parent fec05e0 commit e2d39fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layer_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ func GetTableLayers() ([]LayerTable, error) {
a.attname AS geometry_column,
postgis_typmod_srid(a.atttypmod) AS srid,
trim(trailing 'ZM' from postgis_typmod_type(a.atttypmod)) AS geometry_type,
coalesce(ia.attname, '') AS id_column,
coalesce(case when it.typname is not null then ia.attname else null end, '') AS id_column,
(
SELECT array_agg(ARRAY[sa.attname, st.typname, coalesce(da.description,''), sa.attnum::text]::text[] ORDER BY sa.attnum)
FROM pg_attribute sa
Expand Down

0 comments on commit e2d39fd

Please sign in to comment.