handle insterts into columns with ':' in name

master
Oliver Tonnhofer 2013-05-21 14:36:19 +02:00
parent 9993fb51c6
commit 1f34a2311e
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ func (spec *TableSpec) InsertSQL() string {
var cols []string
var vars []string
for _, col := range spec.Columns {
cols = append(cols, col.Name)
cols = append(cols, "\""+col.Name+"\"")
vars = append(vars,
col.Type.PrepareInsertSql(len(vars)+1, spec))
}