rabbeneg
30th December 2002, 17:44
I have create one table (tfcit202) for temporary using report session.
When i press then button continue in session, first I delete the table:
table.id = db.bind("ttfcit202","",xcomp)
commit.transaction()
ret = db.drop.table(table.id,DB.IGNORE.ALL.REFS,xcomp
if ret <> 0 then
ret = db.clear.table(table.id,NO.ROLLBACK,xcomp)
commit.transaction()
if ret <> 0 then
db.retry.point()
select tfcit202.*
from tfcit202 for update
selectdo
db.delete(ttfcit202, db.retry)
commit.transaction()
endselect
commit.transaction()
endif
else
db.create.table(table.id,xcomp)
endif
and after i fill the table:
db.retry.point()
select tfgld202.*
from tfgld202
selectdo
tfcit202.cono = tfgld202.cono
|...
db.insert(....)
endselect
But during this process i receive (in bw message) the following error:
Error 100 (Duplicate value) on tfcit202730 (max retries (10) exceeded.)
This error i impossible because the table is empty.
Best regards
When i press then button continue in session, first I delete the table:
table.id = db.bind("ttfcit202","",xcomp)
commit.transaction()
ret = db.drop.table(table.id,DB.IGNORE.ALL.REFS,xcomp
if ret <> 0 then
ret = db.clear.table(table.id,NO.ROLLBACK,xcomp)
commit.transaction()
if ret <> 0 then
db.retry.point()
select tfcit202.*
from tfcit202 for update
selectdo
db.delete(ttfcit202, db.retry)
commit.transaction()
endselect
commit.transaction()
endif
else
db.create.table(table.id,xcomp)
endif
and after i fill the table:
db.retry.point()
select tfgld202.*
from tfgld202
selectdo
tfcit202.cono = tfgld202.cono
|...
db.insert(....)
endselect
But during this process i receive (in bw message) the following error:
Error 100 (Duplicate value) on tfcit202730 (max retries (10) exceeded.)
This error i impossible because the table is empty.
Best regards