Subject | Re: v1.52 Abnormal Termination bug? |
---|---|
Author | tickerboo2002 |
Post date | 2005-06-08T15:55:44Z |
> >Whilst debugging my app, I noticed that Firebird v1.52 SS keptadded:
> >abnormally terminating. I tracked it down to a recent trigger I'd
> >Yes, just inserts
> >CREATE TRIGGER CONTACTS_CHANGED FOR CONTACTS ACTIVE AFTER INSERT OR
> >UPDATE OR DELETE POSITION 1 AS
> >begin
> > POST_EVENT 'CONTACT_CHANGED_' || old.contact_id;
> >end
> >
> >Everytime
>
> == or just after inserts?
> What's the data type of contact_id? Is it potentially longer than 62bytes?
It's an Integer.
> POST_EVENT obviously isn't a lot of use if you make up its stringthe event
> on the fly. The idea of events is for client apps to *know* what
> identifiers are and to listen for them.Any client looking at that contact will be listening for this
particular event. No doubt you'll tell me I shouldn't be doing that
and should do it another way (I'm willing to be educated) , but it's
worked well thus far.
> Your attempt to "enhance" theClients could listen for that enahnced event.
> event by adding run-time data to it should be trapped somehow (but
> apparently isn't), even if it is just swallowed.
> No exception should crash the server. Please prepare a reproducibletest
> case and offer it initially in firebird-devel. Make sure you areexplicit
> about the version[s] of both server and client that were involved.Will do. In fact, using Database Workbench, I've just created a
similar trigger on another table and inserted a row = bang, server
terminated (v1.52 final).
Thanks.