FRequireEmptyStrToNull

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
cis-wurzen
Posts: 75
Joined: Tue 04 Jan 2005 10:26

FRequireEmptyStrToNull

Post by cis-wurzen » Wed 19 Sep 2012 13:00

Any reason for not setting FRequireEmptyStrToNull to True in TVirtualTable?

Converted some TTable (Paradox) to TVirtualTable.

Code: Select all

  TFieldXXX.AsString := '';
  if TFieldXXX.IsNull then
    ShowMessage('Empty')
  else
    ShowMessage('Filled');
Paradox-Field shows "Empty", VirtualTable shows "Filled".

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: FRequireEmptyStrToNull

Post by AlexP » Thu 20 Sep 2012 10:48

Hello,

Such behaviour of VirtualTable is due to the fact that many DBs make out empty string '' and NULL, this is made for compatibility with all DBS. We will review the opportunity to add the SetEmptyStrToNull option for VirtualTable in one of the next versions.

Post Reply