From 574498f9557201aa4d8effa649ee1c8ad954dd30 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Mon, 3 Jun 2013 04:47:45 +0000 Subject: [PATCH] Fix detection of text column types in MSSQL, so TEXT and NTEXT do not appear as numbers in query results. --- source/dbconnection.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index f71a79e9..e72d8966 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -3887,12 +3887,12 @@ begin TypeIndex := dtBigInt; ftBCD, ftFMTBcd: TypeIndex := dtDecimal; - ftFixedChar: + ftFixedChar, ftFixedWideChar: TypeIndex := dtChar; ftString, ftWideString, ftBoolean, ftGuid: TypeIndex := dtVarchar; ftMemo, ftWideMemo: - TypeIndex := dtMediumText; + TypeIndex := dtText; ftBlob, ftVariant: TypeIndex := dtMediumBlob; ftBytes: