Mercurial > gemma
diff pkg/geoserver/boot.go @ 4673:443867b548b5
Fix identifiers in layers generated from SQL views
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 15 Oct 2019 15:59:38 +0200 |
parents | 209b10f7bb2c |
children | 4a9a1e323e11 |
line wrap: on
line diff
--- a/pkg/geoserver/boot.go Tue Oct 15 15:55:12 2019 +0200 +++ b/pkg/geoserver/boot.go Tue Oct 15 15:59:38 2019 +0200 @@ -90,9 +90,10 @@ } type ftVirtTable struct { - XMLName xml.Name `xml:"virtualTable"` - Name string `xml:"name"` - SQL string `xml:"sql"` + XMLName xml.Name `xml:"virtualTable"` + Name string `xml:"name"` + SQL string `xml:"sql"` + KeyColumn *string `xml:"keyColumn,omitempty"` } // End code for handling with XML func asJSON(req *http.Request) { @@ -335,8 +336,9 @@ Entry: ftMetadataEntry{ Key: "JDBC_VIRTUAL_TABLE", VirtTable: ftVirtTable{ - Name: table, - SQL: *tables[i].SQL}}}} + Name: table, + SQL: *tables[i].SQL, + KeyColumn: tables[i].KeyColumn}}}} req, err = http.NewRequest( http.MethodPost,