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;
Include (set it to True in the Object Inspector) the
StrsEmpty2Nulloption to theFormatOptionsof your dataset object. The reference says (emphasized by me):