Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Not a Bug
-
Affects Version/s: 10.0.16
-
Fix Version/s: N/A
-
Component/s: Admin statements
-
Labels:None
Description
Given a trigger name containing underscores, for example:
`users_before_ins_trig`
the following happens:
MariaDB [test]> show triggers like 'users%'\G
Trigger: users_before_ins_trig
1 row in set (0.00 sec)
MariaDB [test]> show triggers like 'users_%';
Empty set (0.00 sec)
MariaDB [test]> show triggers like 'users_before_ins_trig';
Empty set (0.00 sec)
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
I assume the table which the trigger belongs is named users.
See https://mariadb.com/kb/en/mariadb/show-triggers/ (or the corresponding section of MySQL manual):
So, it's the table name that shoud match your 'users_%' pattern. If the table is called 'users', it doesn't match because doesn't have a symbol for '_'.