title: while (sqlite3_step(statement) == SQLITE_ROW) never executed?
body: <p>while (sqlite3_step(statement) == SQLITE_ROW) loop is not executing can anybody help ?</p>
  
  <p><code>NSLog(@" %d, %d ",sqlite3_step(statement),SQLITE_ROW);</code> the output is always 21 100</p>
  
  <pre><code>sqlite3_stmt *statement;
      sqlite3 *database;
  if (sqlite3_open("myDB.sql", &amp;database) == SQLITE_OK) {
      NSLog(@"1 %d",SQLITE_OK);
  NSLog(@" %d, %d ",sqlite3_step(statement),SQLITE_ROW);       
          const char *sql = "SELECT myName FROM myTable";
          if (sqlite3_prepare_v2(database, sql, -1, &amp;statement, NULL) == SQLITE_OK) {
              while (sqlite3_step(statement) == SQLITE_ROW) {   
                  int primaryKey = sqlite3_column_int(statement, 0);
  
              }
          }
  
          if (statement) {
              sqlite3_finalize(statement);
          }
      } 
  </code></pre>