mirror of https://github.com/go-gorm/gorm.git
Use brackets for quoting (#1736)
This commit is contained in:
parent
2e5d98a420
commit
706b8f55da
|
@ -54,7 +54,7 @@ func (mssql) BindVar(i int) 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 {
|
||||
|
|
Loading…
Reference in New Issue