From 2e9535d56e585524669b99bf05e36af453fdd02f Mon Sep 17 00:00:00 2001 From: Sergey Kurt Date: Thu, 16 Mar 2017 11:29:31 +0300 Subject: [PATCH] Added uniqueidentifier and xml types (as string) --- bdb/drivers/mssql.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bdb/drivers/mssql.go b/bdb/drivers/mssql.go index 254f68d..ec3dc4b 100644 --- a/bdb/drivers/mssql.go +++ b/bdb/drivers/mssql.go @@ -313,6 +313,8 @@ func (m *MSSQLDriver) TranslateColumnType(c bdb.Column) bdb.Column { c.Type = "null.Bytes" case "timestamp", "rowversion": c.Type = "null.Bytes" + case "uniqueidentifier", "xml": + c.Type = "null.String" default: c.Type = "null.String" } @@ -340,6 +342,8 @@ func (m *MSSQLDriver) TranslateColumnType(c bdb.Column) bdb.Column { c.Type = "[]byte" case "timestamp", "rowversion": c.Type = "[]byte" + case "uniqueidentifier", "xml": + c.Type = "null.String" default: c.Type = "string" }