mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 10:45:08 +02:00
fcl-db: sqldb: some databases supports inserting of explicit values into "autoincrementing" columns. So in case when ftAutoInc field has already supplied value, do not do fetch of LastID
git-svn-id: trunk@29237 -
This commit is contained in:
parent
dbd07e7583
commit
e26d106b5b
@ -2611,7 +2611,7 @@ begin
|
||||
While (Result=Nil) and (I<Fields.Count) do
|
||||
begin
|
||||
Result:=Fields[i];
|
||||
if Result.DataType<>ftAutoInc then
|
||||
if (Result.DataType<>ftAutoInc) or not Result.IsNull then
|
||||
Result:=Nil;
|
||||
Inc(I);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user