Dataset field size ignored

pderuiter

Member
Delphi 2009, update 4, doa 4.1.1.0:

We just upgraded from a D7, 4.0 environment and i noticed the following:
In the database a stringfield is defined as size 20.
in the dataset it is defined as 60 (because we add some extra text to show in a grid).
In the past this worked, but now the dataset field size property is ignored on dataset.open and the database size is used instead, leaving us with a field that is too short. Is this a bug or a feature?

Patrick
 
Last edited:
No. The line before the open the size is 60, the line after the open, the size is 20. It looks like the dataset rebuilds (part of) the field definitions
 
Could you tell me if this is working as designed or if this is a bug. If it is a bug, then can you tell me app. when it will be resolved?
 
It seems like correct behavior, since the size is really 20. If you want to display a different value that what's stored in the database, you can use a calculated field or include a SQL expression in the select statement.
 
Back
Top