From 886a6d06dee2bf6844206b68c5dccc445c29f1d8 Mon Sep 17 00:00:00 2001 From: David Lobmaier Date: Sun, 16 Oct 2016 12:45:35 +0200 Subject: [PATCH] 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 }