quote column names when creating generalized tables

master
Oliver Tonnhofer 2014-03-28 10:36:03 +01:00
parent dab06de51c
commit d1b2c2796b
2 changed files with 6 additions and 1 deletions

View File

@ -24,7 +24,7 @@ func (t *simpleColumnType) PrepareInsertSql(i int, spec *TableSpec) string {
} }
func (t *simpleColumnType) GeneralizeSql(colSpec *ColumnSpec, spec *GeneralizedTableSpec) string { func (t *simpleColumnType) GeneralizeSql(colSpec *ColumnSpec, spec *GeneralizedTableSpec) string {
return colSpec.Name return "\"" + colSpec.Name + "\""
} }
type geometryType struct { type geometryType struct {

View File

@ -684,6 +684,11 @@
"name": "name", "name": "name",
"key": "name" "key": "name"
}, },
{
"type": "string",
"name": "name:de",
"key": "name:de"
},
{ {
"type": "boolint", "type": "boolint",
"name": "tunnel", "name": "tunnel",