quote column names when creating generalized tables
parent
dab06de51c
commit
d1b2c2796b
|
@ -24,7 +24,7 @@ func (t *simpleColumnType) PrepareInsertSql(i int, spec *TableSpec) string {
|
|||
}
|
||||
|
||||
func (t *simpleColumnType) GeneralizeSql(colSpec *ColumnSpec, spec *GeneralizedTableSpec) string {
|
||||
return colSpec.Name
|
||||
return "\"" + colSpec.Name + "\""
|
||||
}
|
||||
|
||||
type geometryType struct {
|
||||
|
|
|
@ -684,6 +684,11 @@
|
|||
"name": "name",
|
||||
"key": "name"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"name": "name:de",
|
||||
"key": "name:de"
|
||||
},
|
||||
{
|
||||
"type": "boolint",
|
||||
"name": "tunnel",
|
||||
|
|
Loading…
Reference in New Issue