Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

error code 19: constraint failed  RSS feed

 
Ranch Hand
Posts: 492
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

 
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
S Shehab
Ranch Hand
Posts: 492
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peter for clarification ....
 
I'm THIS CLOSE to ruling the world! Right after reading this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!