Subject | Re: Query a table within its trigger |
---|---|
Author | hanszorn2000 |
Post date | 2012-07-06T10:11:45Z |
--- In firebird-support@yahoogroups.com, "unordained" <unordained_00@...> wrote:
Hans
> I suppose there's the possibility of index corruption. You could test that byCurrently, there is no index on ISACTIVE. So that cannot be the problem.
> making sure the optimizer can't use the index:
>
> and (ARTICLE.ISACTIVE || '' = 'F')
>
> or something similar. The only time I've seen an index return incorrect results
> was when I indexed a COMPUTED BY expression that depended on CURRENT_DATE. (A
> terrible idea, by the way, but I was just messing around.) There are index-
> related bugs in JIRA, but they're relatively rare, and it'd be odd for it to be
> there in 2.0, not 2.1, and be back in 2.5...
>I tried that. No exception occurs, even when it's taking a wrong NEWLOCATION value
> For testing purposes, could you add .ISACTIVE to the list of return-columns
> inside your trigger, test its value right after the select, and raise an
> exception if it's 'T' when it shouldn't be?
>
> You could also send us the non-simplified version of the trigger, as it could beI can do that, in a minute or so.
> a problem that only appears in the complex version, possibly unrelated to your
> core logic. A typo, even.
Hans