![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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#110....html*d5e32947 -Tyson On 7/13/2010 1:47 PM, David wrote: 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. |
#3
| |||
| |||
|
|
On 2010/07/13 17:32, David wrote: The data was consistent on the reload -- the assertion error appears to be a software problem not an application problem. Per my concerns about varchar fields I did some significant rework to my foreign keys and updates (triggers) reducing the number of varchars 128 bytes per foreign key. The change was successful therefore this issue has a successful workaround from my perspective. I never did explain the trigger firing at the inappropriate time == however once I reduced the number of varchar fields that issue just went away without explanation. Thanks to those who responded. |
#4
| |||
| |||
|
|
David - I am very interested in investigating this problem. Do you have a repro that you would be willing be share? Glenn David wrote: On 2010/07/13 17:32, David wrote: The data was consistent on the reload -- the assertion error appears to be a software problem not an application problem. Per my concerns about varchar fields I did some significant rework to my foreign keys and updates (triggers) reducing the number of varchars 128 bytes per foreign key. The change was successful therefore this issue has a successful workaround from my perspective. I never did explain the trigger firing at the inappropriate time == however once I reduced the number of varchar fields that issue just went away without explanation. Thanks to those who responded. |
![]() |
| Thread Tools | |
| Display Modes | |
| |