Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Constraint error on key commit.

Status
Not open for further replies.

munee

Programmer
Sep 25, 2002
13
0
0
US
Hi All,

I have created a form on a table. The table has a primary key.

On KEY-COMMIT on form level, I have written my own insert statement to insert record instead of using default commit.

I get constraint error (unique constraint violated).

I removed the Primary key and noticed that two records are getting inserted.. one is deafult by oracle, second because of insert statement on key commit.

I am confused.. Why should oracle use its default commit if I write something on key commit.

Thanks in advanvce for help
 
Forms doesn't use its original COMMIT procedure, but rather INSERT one. You should place your trigger code into ON-INSERT trigger.
 
I resolved this. Thanks for help sem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top