Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Constraint on table that prohibits record inserts using web based app(JAVA)

 
suresh pillai
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Does any one know if there can be any constraints on the a table (in Oracle) that prohibits record inserts through web based tools, but does permit to delete the records.
My observation:- Iam using 'executeUpdate()' to perform inserts.When I check the returned int value, it is '1'.Which is correct as Iam inserting one record into the table. But when I check the table I do not find any values. It is empty. It is not throwing any sqlException.
But when I use 'executeUpdate()' to delete records it works fine.
thanks in advance,
suresh
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you were violating a constraint, a SQLException would be thrown. The problem probably has to do more with transaction management. Do you commit the insert after it has successfully been inserted?
Jamie
 
suresh pillai
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a new table with same fields and tried inserting the records, it worked fine.
This is the reason Iam guessing that there must be some constraint on the table that is preventing inserts.
Any input is welcome...
[ December 08, 2003: Message edited by: suresh pillai ]
[ December 08, 2003: Message edited by: suresh pillai ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic