Introduce support for BIT fields in grids and export output. See issue #766 and http://www.heidisql.com/forum.php?t=8462

This commit is contained in:
Ansgar Becker
2011-05-10 05:15:59 +00:00
parent b49798fee4
commit 3b91279777
3 changed files with 47 additions and 6 deletions

View File

@ -1313,7 +1313,12 @@ begin
if Data.IsNull(i) then
Row := Row + 'NULL'
else case Data.DataType(i).Category of
dtcInteger, dtcReal: Row := Row + Data.Col(i);
dtcInteger, dtcReal: begin
if Data.DataType(i).Index = dtBit then
Row := Row + 'b' + Quoter.EscapeString(Data.Col(i))
else
Row := Row + Data.Col(i);
end;
dtcBinary, dtcSpatial: begin
BinContent := Data.BinColAsHex(i);
if Length(BinContent) > 0 then