I'm moving code from Delphi 2007 + AnyDac
to Delphi XE4 + FireDac
. In AnyDac
case all empty strings were stored like NULL
, and in FireDac
all empty strings are stored like empty string ''
.
I need to go back to NULL's. What is the best way of doing that? I store to DB using params:
ADQuery.Params.ParamByName('Code').Value :=Code;