Use brackets for quoting
This commit is contained in:
parent
0a51f6cdc5
commit
672c8c9448
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user