mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 20:26:00 +02:00
* Map text to ftmemo(binary) instead of ftblob
Patch by Lacak2, mantis 19876 git-svn-id: trunk@18088 -
This commit is contained in:
parent
48a56e03d7
commit
da37e20ed6
@ -402,7 +402,7 @@ begin
|
|||||||
if size > dsMaxStringSize then size := dsMaxStringSize;
|
if size > dsMaxStringSize then size := dsMaxStringSize;
|
||||||
end;
|
end;
|
||||||
// Oid_text : Result := ftstring;
|
// Oid_text : Result := ftstring;
|
||||||
Oid_text : Result := ftBlob;
|
Oid_text : Result := ftMemo;
|
||||||
Oid_Bytea : Result := ftBlob;
|
Oid_Bytea : Result := ftBlob;
|
||||||
Oid_oid : Result := ftInteger;
|
Oid_oid : Result := ftInteger;
|
||||||
Oid_int8 : Result := ftLargeInt;
|
Oid_int8 : Result := ftLargeInt;
|
||||||
@ -620,7 +620,7 @@ begin
|
|||||||
GetMem(ar[i],length(s)+1);
|
GetMem(ar[i],length(s)+1);
|
||||||
StrMove(PChar(ar[i]),Pchar(s),Length(S)+1);
|
StrMove(PChar(ar[i]),Pchar(s),Length(S)+1);
|
||||||
lengths[i]:=Length(s);
|
lengths[i]:=Length(s);
|
||||||
if (AParams[i].DataType in [ftBlob,ftGraphic,ftCurrency]) then
|
if (AParams[i].DataType in [ftBlob,ftMemo,ftGraphic,ftCurrency]) then
|
||||||
Formats[i]:=1
|
Formats[i]:=1
|
||||||
else
|
else
|
||||||
Formats[i]:=0;
|
Formats[i]:=0;
|
||||||
@ -771,8 +771,9 @@ begin
|
|||||||
Move(CurrBuff^, Buffer^, li);
|
Move(CurrBuff^, Buffer^, li);
|
||||||
pchar(Buffer + li)^ := #0;
|
pchar(Buffer + li)^ := #0;
|
||||||
end;
|
end;
|
||||||
ftBlob : Createblob := True;
|
ftBlob, ftMemo :
|
||||||
ftdate :
|
CreateBlob := True;
|
||||||
|
ftDate :
|
||||||
begin
|
begin
|
||||||
dbl := pointer(buffer);
|
dbl := pointer(buffer);
|
||||||
dbl^ := BEtoN(plongint(CurrBuff)^) + 36526;
|
dbl^ := BEtoN(plongint(CurrBuff)^) + 36526;
|
||||||
|
Loading…
Reference in New Issue
Block a user