Use brackets for quoting (#1736)

This commit is contained in:
Giuseppe 2018-02-10 05:28:01 +01:00 committed by Jinzhu
parent 2e5d98a420
commit 706b8f55da
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ func (mssql) BindVar(i int) string {
} }
func (mssql) Quote(key string) string { func (mssql) Quote(key string) string {
return fmt.Sprintf(`"%s"`, key) return fmt.Sprintf(`[%s]`, key)
} }
func (s *mssql) DataTypeOf(field *gorm.StructField) string { func (s *mssql) DataTypeOf(field *gorm.StructField) string {