Hi
It is my first message on forum.
I tested error that occurs when creating a duplicate entry in unique index and i am surprised because it don't work like i though.
Well it shows warnings about duplicate index. But curious is that i shows them also after the message "after".
I can't understand that.
As far as i knew progress, there is an error in procedure. Default action in procedure is undo, retry but this will be infinite loop so it leaves procedure.
If there's transaction I works like I thing it should.
It is my first message on forum.
I tested error that occurs when creating a duplicate entry in unique index and i am surprised because it don't work like i though.
Code:
def temp-table t
field a as inte
index ia is unique a.
def var va as inte no-undo.
session:appl-alert-boxes = true.
create t.
assign t.a = 123.
run pr.
message "after".
procedure pr:
va = va + 1.
create t.
assign t.a = 1.
va = va + 1.
create t.
assign t.a = 1.
va = va + 1.
end.
Well it shows warnings about duplicate index. But curious is that i shows them also after the message "after".
I can't understand that.
As far as i knew progress, there is an error in procedure. Default action in procedure is undo, retry but this will be infinite loop so it leaves procedure.
If there's transaction I works like I thing it should.