From f353a900f46a2c24a6d2dcbf7cd480c600f64f74 Mon Sep 17 00:00:00 2001 From: Linquize Date: Thu, 26 Mar 2015 00:38:01 +0800 Subject: [PATCH] MSSQL: Also use doublequote as quote char to avoid problems --- mssql_dialect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mssql_dialect.go b/mssql_dialect.go index ceb7c5de..6fe50fc8 100644 --- a/mssql_dialect.go +++ b/mssql_dialect.go @@ -270,7 +270,7 @@ func (db *mssql) IsReserved(name string) bool { } func (db *mssql) Quote(name string) string { - return "[" + name + "]" + return "\"" + name + "\"" } func (db *mssql) QuoteStr() string {