Merge branch 'master' of ssh://git@gitlab.com:/eelke/pgLab.git

This commit is contained in:
eelke 2019-10-06 09:34:45 +02:00
commit 4ea388cad7
4 changed files with 12 additions and 4 deletions

View file

@ -91,12 +91,18 @@ QString PgTrigger::event() const
QString event;
if (type & TriggerTypeInsert)
event += "INSERT ";
if (type & TriggerTypeUpdate)
if (type & TriggerTypeUpdate) {
if (!event.isEmpty()) event += "OR ";
event += "UPDATE ";
if (type & TriggerTypeDelete)
}
if (type & TriggerTypeDelete) {
if (!event.isEmpty()) event += "OR ";
event += "DELETE ";
if (type & TriggerTypeTruncate)
}
if (type & TriggerTypeTruncate) {
if (!event.isEmpty()) event += "OR ";
event += "TRUNCATE";
}
return event.trimmed();
}