Closed GoogleCodeExporter closed 9 years ago
E/Database( 9746): Error inserting _id=dav.k E/Database( 9746): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed E/Database( 9746): at android.database.sqlite.SQLiteStatement.native_execute(Native Method) E/Database( 9746): at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:55) E/Database( 9746): at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java: 1549) E/Database( 9746): at android.database.sqlite.SQLiteDatabase.insert(SQLiteDatabase.java:1410) E/Database( 9746): at com.ch_linghu.fanfoudroid.data.db.TwitterDatabase.createFollower(TwitterDatabase .java:606) E/Database( 9746): at com.ch_linghu.fanfoudroid.data.db.TwitterDatabase.syncFollowers(TwitterDatabase. java:629) E/Database( 9746): at com.ch_linghu.fanfoudroid.ui.base.TwitterCursorBaseActivity$FollowersRetrieveTas k._doInBackground(TwitterCursorBaseActivity.java:515) E/Database( 9746): at com.ch_linghu.fanfoudroid.task.GenericTask.doInBackground(GenericTask.java:73) E/Database( 9746): at com.ch_linghu.fanfoudroid.task.GenericTask.doInBackground(GenericTask.java:1) E/Database( 9746): at android.os.AsyncTask$2.call(AsyncTask.java:185) E/Database( 9746): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) E/Database( 9746): at java.util.concurrent.FutureTask.run(FutureTask.java:137) E/Database( 9746): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068) E/Database( 9746): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561) E/Database( 9746): at java.lang.Thread.run(Thread.java:1096) E/DatabaseHelper( 9746): Cann't create Follower : dav.k
Original issue reported on code.google.com by ch.lin...@gmail.com on 21 Apr 2011 at 1:32
ch.lin...@gmail.com
插入UserInfoTable的时候有地方没有判断是否存在用户,在插入� ��据的时候由于主键重复会引发constraint failed 已修改
Original comment by Dino...@gmail.com on 23 Apr 2011 at 1:50
Dino...@gmail.com
Original issue reported on code.google.com by
ch.lin...@gmail.com
on 21 Apr 2011 at 1:32