Merge pull request #1 from betazk/test-branch

Update statement.go
This commit is contained in:
betazk 2014-04-24 13:46:59 +08:00
commit 84c7a6f7c0
1 changed files with 1 additions and 1 deletions

View File

@ -733,7 +733,7 @@ func (statement *Statement) genGetSql(bean interface{}) (string, []interface{})
func (s *Statement) genAddColumnStr(col *core.Column) (string, []interface{}) {
quote := s.Engine.Quote
sql := fmt.Sprintf("ALTER TABLE %v ADD COLUMN %v;", quote(s.TableName()),
sql := fmt.Sprintf("ALTER TABLE %v ADD %v;", quote(s.TableName()),
col.String(s.Engine.dialect))
return sql, []interface{}{}
}