title: SQLite iOS warning : Comparison of constant 101 with expression of type BOOL is always false
body: <p>I have downloaded sample code for SQLite learning. I'm using Xcode 6.1.1 and iPhone 6 plus simulator. After running app on simulator I'm getting <code>DB Error : unknown error</code> from query execution. Below is part of code where I'm getting warning as <code>Comparison of constant 101 with expression of type 'BOOL' (aka 'bool') is always false.</code></p>
  
  <pre><code>// Execute the query.
  BOOL executeQueryResults = sqlite3_step(compiledStatement);
   if (executeQueryResults == SQLITE_DONE) {
       // Keep the affected rows.
        self.affectedRows = sqlite3_changes(sqlite3Database);
  
         // Keep the last inserted row ID.
         self.lastInsertedRowID = sqlite3_last_insert_rowid(sqlite3Database);
    }
    else {
        // If could not execute the query show the error message on the debugger.
         NSLog(@"DB Error: %s", sqlite3_errmsg(sqlite3Database));
    }
  </code></pre>
  
  <p>What might be fix for this?</p>
  
  <p><img src="https://i.stack.imgur.com/0rSyt.png" alt="Screenshot for warning"></p>