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 {
|
func (t *simpleColumnType) GeneralizeSql(colSpec *ColumnSpec, spec *GeneralizedTableSpec) string {
|
||||||
return colSpec.Name
|
return "\"" + colSpec.Name + "\""
|
||||||
}
|
}
|
||||||
|
|
||||||
type geometryType struct {
|
type geometryType struct {
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue