From 886a6d06dee2bf6844206b68c5dccc445c29f1d8 Mon Sep 17 00:00:00 2001 From: David Lobmaier Date: Sun, 16 Oct 2016 12:45:35 +0200 Subject: [PATCH 1/2] fixed bug when using uuid with mssql --- mssql_dialect.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mssql_dialect.go b/mssql_dialect.go index 7af3ee23..fdbf199c 100644 --- a/mssql_dialect.go +++ b/mssql_dialect.go @@ -247,6 +247,9 @@ func (db *mssql) SqlType(c *core.Column) string { res = core.Text case core.Double: res = core.Real + case core.Uuid: + res = core.Varchar + c.Length = 40 default: res = t } From c17ed51823043803df46c8f4901b65f9acbde7f5 Mon Sep 17 00:00:00 2001 From: gotokatsuya Date: Mon, 17 Oct 2016 17:23:28 +0900 Subject: [PATCH 2/2] Fix typo at NotIn comment --- statement.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statement.go b/statement.go index 5d59a329..82b86674 100644 --- a/statement.go +++ b/statement.go @@ -204,7 +204,7 @@ func (statement *Statement) In(column string, args ...interface{}) *Statement { return statement } -// NotIn generate "Where column IN (?) " statment +// NotIn generate "Where column NOT IN (?) " statment func (statement *Statement) NotIn(column string, args ...interface{}) *Statement { if len(args) == 0 { return statement