From dd7ab43d094994f187ee6d5c70ee2c151aec7979 Mon Sep 17 00:00:00 2001 From: linux chips Date: Tue, 12 Dec 2017 23:41:32 +0300 Subject: [PATCH] added missing cases for DATETIME datatype --- vendor/github.com/denisenkom/go-mssqldb/types.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vendor/github.com/denisenkom/go-mssqldb/types.go b/vendor/github.com/denisenkom/go-mssqldb/types.go index 6832e2ec8bb..8f5ce091e09 100644 --- a/vendor/github.com/denisenkom/go-mssqldb/types.go +++ b/vendor/github.com/denisenkom/go-mssqldb/types.go @@ -1178,6 +1178,8 @@ func makeGoLangTypeName(ti typeInfo) string { return "IMAGE" case typeVariant: return "SQL_VARIANT" + case typeDateTime: + return "DATETIME" default: panic(fmt.Sprintf("not implemented makeDecl for type %d", ti.TypeId)) } @@ -1297,6 +1299,8 @@ func makeGoLangTypeLength(ti typeInfo) (int64, bool) { return 2147483647, true case typeVariant: return 0, false + case typeDateTime: + return 0, false default: panic(fmt.Sprintf("not implemented makeDecl for type %d", ti.TypeId)) } @@ -1404,6 +1408,8 @@ func makeGoLangTypePrecisionScale(ti typeInfo) (int64, int64, bool) { return 0, 0, false case typeVariant: return 0, 0, false + case typeDateTime: + return 0, 0, false default: panic(fmt.Sprintf("not implemented makeDecl for type %d", ti.TypeId)) }