David
2010-07-15 15:54:07 UTC
Tyson, thanks for the guidance; this does not appear to be related to my
issue, my foreign key HAS "CHECK ON COMMIT" explicitly coded and it was
inappropriately firing after the update instead of after the commit. I
read about wait_for_commit and if I understand what I read this is a
global override for all foreign keys that in effect places CHECK ON
COMMIT in every foreign key whether it is actually coded there or not.
Per my latest note before this I have reworked my foreign keys reducing
the number of varchars > 128 bytes in each key. This seems to hare
resolved the error in both V11 and V12. So I have a successful
workaround for this issue.
Thanks again for your assistance.
issue, my foreign key HAS "CHECK ON COMMIT" explicitly coded and it was
inappropriately firing after the update instead of after the commit. I
read about wait_for_commit and if I understand what I read this is a
global override for all foreign keys that in effect places CHECK ON
COMMIT in every foreign key whether it is actually coded there or not.
Per my latest note before this I have reworked my foreign keys reducing
the number of varchars > 128 bytes in each key. This seems to hare
resolved the error in both V11 and V12. So I have a successful
workaround for this issue.
Thanks again for your assistance.
David,
What you may be looking is the wait_for_commit option. You can set this
on a connection basis or for the PUBLIC group. If you turn this option
'On', the foreign keys won't be checked until a COMMIT is issued.
http://dcx.sybase.com/index.html#1101en/dbadmin_en11/wait-for-commit-option.html*d5e32947
-Tyson
What you may be looking is the wait_for_commit option. You can set this
on a connection basis or for the PUBLIC group. If you turn this option
'On', the foreign keys won't be checked until a COMMIT is issued.
http://dcx.sybase.com/index.html#1101en/dbadmin_en11/wait-for-commit-option.html*d5e32947
-Tyson
Is there something in SQL ANYWHERE that would cause CHECK ON COMMIT when
coded in a foreign key (and it appears in the Sybase Central properties
page as CHECK ON COMMIT : Yes) to fire after the update statement (in a
trigger) instead of after the commit is issued. I have debug messages in
each of the table to table update triggers and I have confirmed this is
happening.
This happens in the current version of SQL Anywhere 11.0.1.2452 as well
as SQL Anywhere 12.0.0.2483 I just downloaded and tested. The problem is
with more than 1 foreign key.
This problem was observed in SQLANYWHERE 11 before version 12 was
downloaded.
Thanks in advance for any ideas.
coded in a foreign key (and it appears in the Sybase Central properties
page as CHECK ON COMMIT : Yes) to fire after the update statement (in a
trigger) instead of after the commit is issued. I have debug messages in
each of the table to table update triggers and I have confirmed this is
happening.
This happens in the current version of SQL Anywhere 11.0.1.2452 as well
as SQL Anywhere 12.0.0.2483 I just downloaded and tested. The problem is
with more than 1 foreign key.
This problem was observed in SQLANYWHERE 11 before version 12 was
downloaded.
Thanks in advance for any ideas.