diff --git a/packages/fcl-db/src/base/bufdataset.pas b/packages/fcl-db/src/base/bufdataset.pas index 6f99a4264e..6c05d1104b 100644 --- a/packages/fcl-db/src/base/bufdataset.pas +++ b/packages/fcl-db/src/base/bufdataset.pas @@ -1129,12 +1129,14 @@ begin // If there are less fields then FieldDefs we know for sure that the dataset // is not (correctly) created. - // commented for now. If there are constant expressions in the select - // statement they are ftUnknown, and not created. + // If there are constant expressions in the select statement (for PostgreSQL) + // they are of type ftUnknown (in FieldDefs), and are not created (in Fields). + // So Fields.Count < FieldDefs.Count in this case // See mantis #22030 // if Fields.Count