Have some property on TConnection Options
named HandlingStringType/Convert empty strings to null. Keep it true and assume Query.ParamByName('ThisValue').AsString:=''
;You can access it in
TConnection.FetchOptions.FormatOptions.StrsEmpty2Null:=True