title: Xcode sqlite3 seems that nothing works correctly
body: <p>i working with newest Xcode and sqlite3 for 4 days now and im kinda getting crazy with it because i just get creepy behavior.</p>
  
  <p>I do this:</p>
  
  <pre><code>NSString *selectWPIDQuery = [NSString stringWithFormat:@"SELECT ID FROM WORKOUTPLANS WHERE NAME = '%s';", [[aWorkoutPlan name] UTF8String]];
  //NSLog(@"%@", [aWorkoutPlan name]);
  const char *select_wp_id_query = [selectWPIDQuery UTF8String];
  
  if(sqlite3_open([dbPathString UTF8String], &amp;workoutPlansDB) == SQLITE_OK) {
  
      int index = sqlite3_exec(workoutPlansDB, select_wp_id_query, NULL, NULL, &amp;error);
      NSLog(@"Der Index %d", index);
  }
  </code></pre>
  
  <p>The Index here is 0 but 0 doesnt exist. if i execute this query with the firefox plugin sqlite manager (exactly the same query) it delivers me the index 1 and the index 1 is correkt. </p>
  
  <p>Why the hell sqlite3 in xcode gives me a 0??? Thats not correct.</p>