diff options
| author | Sergei Golubchik <serg@mariadb.org> | 2019-01-05 11:49:35 +0100 |
|---|---|---|
| committer | Sergei Golubchik <serg@mariadb.org> | 2019-01-25 19:59:04 +0100 |
| commit | e99e6f29e98df8762305c0f7c1caebc728cfc6dc (patch) | |
| tree | 288f259fd1169147f14f6aa8718dad9ab68ad2c9 /sql/sql_trigger.h | |
| parent | 0e1f7f5c4a7eb90f345f2c2da6b4d7ce0b4056c4 (diff) | |
| download | mariadb-git-e99e6f29e98df8762305c0f7c1caebc728cfc6dc.tar.gz | |
cleanup: trg2bit() helper
Diffstat (limited to 'sql/sql_trigger.h')
| -rw-r--r-- | sql/sql_trigger.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_trigger.h b/sql/sql_trigger.h index 0fddb94fde1..9cd6c61891a 100644 --- a/sql/sql_trigger.h +++ b/sql/sql_trigger.h @@ -38,6 +38,9 @@ enum trg_event_type TRG_EVENT_MAX }; +static inline uint8 trg2bit(enum trg_event_type trg) +{ return static_cast<uint8>(1 << static_cast<int>(trg)); } + #include "table.h" /* GRANT_INFO */ /* |
