Board index » delphi » Bug in TWideStringField !!!
Troy Wolbrink
![]() Delphi Developer |
Wed, 09 Jun 2004 03:07:06 GMT
Bug in TWideStringField !!!
I did a little digging in the DB.PAS unit and found that in general, the the
return value of TField.GetData (boolean) is checked and a default is provided when GetData returns false (like for a NULL). TWideStringField.GetAsWideString is the ONLY exception. Currently it reads like this: function TWideStringField.GetAsWideString: WideString; To be consistent with the rest of DB.pas it should read like this: function TWideStringField.GetAsWideString: WideString; Currently, if you encounter a NULL value, it will return the most recent Example: I'm going to fix this for myself by overriding TDataSet.GetFieldData for my function TMyADODataSet.GetFieldData(Field: TField; Buffer: Pointer; |