Use brackets for quoting

This commit is contained in:
gm42 2018-01-22 17:52:47 +01:00
parent 0a51f6cdc5
commit 672c8c9448

View File

@ -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 {