The formula in the highlighted comment doesn't seem to describe what is actually computed and stored.
-- Mgr. Jiří Činčura https://www.tabsoverspaces.com/ On Wed, May 1, 2019, at 15:55, Vlad Khorsun wrote: > 01.05.2019 15:47, Jiří Činčura wrote: > > Hi *, > > > > I'm looking into constants.h and I see this > > https://github.com/FirebirdSQL/firebird/blob/master/src/jrd/constants.h#L449 > > . > > But this does not seem to be what the parse.y is doing nor what I see in > > RDB$TRIGGERS. Can somebody check it? > > I don't see what is confusing there. > > Trigger type is encoded as 64-bit integer. Bits 13 and 14 used to encode > trigger "class": > currently there are DML, DB and DDL triggers (see TRIGGER_TYPE_XXX > constatns), bit 15 seems > to be reserved for future use. > > Every known DDL event is encoded by separate bit, see DDL_TRIGGER_XXX > constants. > > Probably this small routine helps you: > > https://github.com/FirebirdSQL/firebird/blob/master/src/isql/show.epp#L285 > > Hope it helps, > Vlad > > > > Firebird-Devel mailing list, web interface at > https://lists.sourceforge.net/lists/listinfo/firebird-devel >
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
