Hi All,
I have a SQLite3 database with FMDB. Everything works in the sense of inserting but when I try and add detail to an existing database it crashes. I end up with the following code in error with "EXC_BAD_ACCESS (code=2, address=0x4)
Can anyone help with this problem?
Thanks in advance
I have a SQLite3 database with FMDB. Everything works in the sense of inserting but when I try and add detail to an existing database it crashes. I end up with the following code in error with "EXC_BAD_ACCESS (code=2, address=0x4)
Can anyone help with this problem?
Thanks in advance
Code:
BOOL success = [db executeUpdate:[NSString stringWithFormat:@"UPDATE customers SET firstname = '%@', lastname = '%@', date = '%@' where id = %d",customer.firstName,customer.lastName,customer.customerId,customer.Date]];