Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

namanhams

macrumors regular
Original poster
Jun 3, 2009
153
0
Hi everyone,

I just try to insert 2 rows into the table. The 2 rows are the same (all the column data are the same);

The first insertion is successful. The second insertion just crashes the application. I have no idea why.

Any one know about this ? THanks.
 
It would seem likely that you are violating some sort of uniqueness constraint in your database and not handling the failure/error correctly.
 
It's my silly error. I close the database after the first insertion, then forgot to open the database before the second one. :confused:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.