title: Delphi how to check if cached dataset is same as database dataset with CachedUpdates
body: <p>I'm using a TFDQuery component directly connected with a table on a MySQL database with TFDConnection. I have CachedUpdates at true, so I have to use <code>ApplyUpdates</code> / <code>CommitUpdates</code> to set the changes into the database.</p>
  
  <p><strong>I need to know how to check if the data in the buffer are different from the data in the database</strong>, so I can show a MessageDlg to the user to ask him, if he click the X - Close form button:</p>
  
  <blockquote>
    <p>"Save changes?"</p>
    
    <p>[Yes][No][Cancel]</p>
  </blockquote>
  
  <p>Can someone help me? Thank you.</p>