mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 20:39:43 +02:00
fcl-db: odbc: increase max. allowed string field length. Fix for existing tests TTestFieldTypes.TestStringLargerThen8192 and TestInsertLargeStrFields. (similar like rev.23141, 23198)
git-svn-id: trunk@24389 -
This commit is contained in:
parent
9168f1cbd3
commit
2d352b0204
@ -1185,9 +1185,9 @@ begin
|
||||
end;
|
||||
|
||||
if (FieldType in [ftString,ftFixedChar]) and // field types mapped to TStringField
|
||||
(FieldSize >= dsMaxStringSize) then
|
||||
(FieldSize > MaxSmallint) then
|
||||
begin
|
||||
FieldSize:=dsMaxStringSize-1;
|
||||
FieldSize := MaxSmallint;
|
||||
end
|
||||
else
|
||||
// any exact numeric type with scale 0 can have identity attr.
|
||||
@ -1536,8 +1536,6 @@ begin
|
||||
end;
|
||||
|
||||
destructor TODBCCursor.Destroy;
|
||||
var
|
||||
Res:SQLRETURN;
|
||||
begin
|
||||
{$IF NOT((FPC_VERSION>=2) AND (FPC_RELEASE>=1))}
|
||||
FBlobStreams.Free;
|
||||
|
Loading…
Reference in New Issue
Block a user