From 85fc6e546a009e8ef8cf420a8918ea732970a6cb Mon Sep 17 00:00:00 2001
From: Sergey Kurt <sergeykurt@outlook.com>
Date: Tue, 14 Mar 2017 18:49:40 +0300
Subject: [PATCH] Fixed float and real mapping

---
 bdb/drivers/mssql.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bdb/drivers/mssql.go b/bdb/drivers/mssql.go
index a36a3eb..502ff51 100644
--- a/bdb/drivers/mssql.go
+++ b/bdb/drivers/mssql.go
@@ -303,9 +303,9 @@ func (m *MSSQLDriver) TranslateColumnType(c bdb.Column) bdb.Column {
 			c.Type = "null.Int"
 		case "bigint":
 			c.Type = "null.Int64"
-		case "float":
-			c.Type = "null.Float32"
 		case "real":
+			c.Type = "null.Float32"
+		case "float":
 			c.Type = "null.Float64"
 		case "boolean", "bool":
 			c.Type = "null.Bool"
@@ -332,9 +332,9 @@ func (m *MSSQLDriver) TranslateColumnType(c bdb.Column) bdb.Column {
 			c.Type = "int"
 		case "bigint":
 			c.Type = "int64"
-		case "float":
-			c.Type = "float32"
 		case "real":
+			c.Type = "float32"
+		case "float":
 			c.Type = "float64"
 		case "boolean", "bool":
 			c.Type = "bool"