title: Update Query using the Objective C Wrapper for sqlite
body: <p>Hey I am using the <a href="http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/" rel="nofollow noreferrer">http://th30z.netsons.org/2008/11/objective-c-sqlite-wrapper/</a> 
  wrapper . </p>
  
  <p>My code is this : </p>
  
  <pre><code>    - (IBAction)UpdateButtonPressed:(id)sender 
      {
  
  
          Sqlite *sqlite = [[Sqlite alloc] init];
          NSString *writableDBPath = [[NSBundle mainBundle]pathForResource:@"Money"ofType:@"sqlite"];
          if (![sqlite open:writableDBPath])
              return;
  
  
          NSArray *query = [sqlite executeQuery:@"UPDATE UserAccess SET Answer ='Positano';"];
              NSDictionary *dict = [query objectAtIndex:2];
              NSString *itemValue = [dict objectForKey:@"Answer"];
              NSLog(@"%@",itemValue);
  }
  </code></pre>
  
  <p>Answer is the Column name , UserAccess the table name .
  the column is at 3rd place in the table</p>
  
  <p>What am I doing wrong why is it crashing ??? </p>