Skip to content

Commit 17946fe

Browse files
authored
Use rtrim instead of trim (#211)
1 parent 72f0b37 commit 17946fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layer_table.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ func getTableLayers() ([]LayerTable, error) {
503503
coalesce(d.description, '') AS description,
504504
a.attname AS geometry_column,
505505
postgis_typmod_srid(a.atttypmod) AS srid,
506-
trim(trailing 'ZM' from postgis_typmod_type(a.atttypmod)) AS geometry_type,
506+
rtrim(postgis_typmod_type(a.atttypmod), 'ZM') AS geometry_type,
507507
coalesce(case when it.typname is not null then ia.attname else null end, '') AS id_column,
508508
(
509509
SELECT array_agg(ARRAY[sa.attname, st.typname, coalesce(da.description,''), sa.attnum::text]::text[] ORDER BY sa.attnum)

0 commit comments

Comments
 (0)