• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Wink, wink, nudge, nudge, say no more, it's a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic