The moose likes Android and the fly likes error code 19: constraint failed Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "error code 19: constraint failed" Watch "error code 19: constraint failed" New topic
Author

error code 19: constraint failed

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 462

Hi,
i'm trying to insert some data in the Android sqlite it was inserted successfully but this error occurs :

i cant understand what is for !! any clues ?


Thanks,
Sherif
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4875

When you create a database, you can specify that values in certain columns must meet certain conditions. If those conditions are not met, then you get a constraint violation error. Often this means that two records have the same key value (unique key values are often implied constraints). Check the data you are inserted to see of two records have the same key.


JBoss In Action
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 462

Thanks Peter for clarification ....
 
 
subject: error code 19: constraint failed
 
Threads others viewed
Unix OS on Windows Vista ?
getting the time in milliseconds
Problem moving columns and rows in 2D array.
back ground process id ??
DateFormat
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com