ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/runtime/IBExtract.pas
(Generate patch)

Comparing ibx/trunk/runtime/IBExtract.pas (file contents):
Revision 49 by tony, Thu Feb 2 16:20:12 2017 UTC vs.
Revision 108 by tony, Thu Jan 18 14:37:46 2018 UTC

# Line 617 | Line 617 | begin
617          end;
618  
619          {Firebird 3 introduces IDENTITY columns. We need to check for them here}
620 <        if qryTables.HasField('RDB$GENERATOR_NAME') then
620 >        if qryTables.HasField('RDB$GENERATOR_NAME') and not qryTables.FieldByName('RDB$GENERATOR_NAME').IsNull then
621          begin
622            qryGenerators.ParamByName('GENERATOR').AsString :=  qryTables.FieldByName('RDB$GENERATOR_NAME').AsString;
623            qryGenerators.ExecQuery;
# Line 2614 | Line 2614 | end;
2614  
2615   procedure TIBExtract.SetDatabase(const Value: TIBDatabase);
2616   begin
2617 <  if FDatabase <> Value then
2617 >  if (csLoading in ComponentState) or (FDatabase <> Value) then
2618    begin
2619      FDatabase := Value;
2620      if (not Assigned(FTransaction)) and (FDatabase <> nil) then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines