From cb2b96e8756dc11b826872255fd8c4ed09f23c73 Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Thu, 22 Jul 2021 22:39:16 +0100 Subject: [PATCH] as per lunny Signed-off-by: Andrew Thornton --- dialects/mssql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialects/mssql.go b/dialects/mssql.go index d86e6f65..3b935396 100644 --- a/dialects/mssql.go +++ b/dialects/mssql.go @@ -310,7 +310,7 @@ func (db *mssql) SQLType(c *schemas.Column) string { } case schemas.Blob, schemas.TinyBlob, schemas.MediumBlob, schemas.LongBlob: res = schemas.VarBinary - if c.Length == -1 { + if c.Length == 0 { res += "(MAX)" } case schemas.TimeStamp: