Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-40105

Information_schema.triggers doesn't show schema for system triggers

    XMLWordPrintable

Details

    • Q3/2026 Server Maintenance

    Description

      CREATE TABLE t (a int);
      CREATE TRIGGER tr1 BEFORE INSERT ON t FOR EACH ROW SET @x=1;
      CREATE TRIGGER tr2 AFTER STARTUP SET @y=1;
       
      SELECT TRIGGER_NAME, TRIGGER_SCHEMA, EVENT_OBJECT_SCHEMA, EVENT_MANIPULATION
      FROM information_schema.TRIGGERS 
      WHERE TRIGGER_NAME IN ('tr1','tr2') 
      ORDER BY TRIGGER_NAME;
       
      SELECT db,name FROM mysql.event WHERE name='tr2';
       
      DROP TRIGGER tr1;
      DROP TRIGGER tr2;
      DROP TABLE t;
      

      TRIGGER_NAME	TRIGGER_SCHEMA	EVENT_OBJECT_SCHEMA	EVENT_MANIPULATION
      tr1	test	test	INSERT
      tr2			STARTUP
      SELECT db,name FROM mysql.event WHERE name='tr2';
      db	name
      test	tr2
      

      Attachments

        Issue Links

          Activity

            People

              shulga Dmitry Shulga
              alice Alice Sherepa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 2d
                  2d
                  Remaining:
                  Remaining Estimate - 2d
                  2d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                  Git Integration

                    Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.