1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

PostgreSQL: Support UPDATE OF triggers (bug #789) and triggers with more events (OR)

This commit is contained in:
Jakub Vrana
2021-03-03 11:07:44 +01:00
parent 42de1051a6
commit 72beecc0ab
5 changed files with 26 additions and 11 deletions

View File

@@ -658,7 +658,7 @@ function triggerChange(tableRe, table, form) {
if (tableRe.test(form['Trigger'].value)) {
form['Trigger'].value = table + '_' + (selectValue(form['Timing']).charAt(0) + formEvent.charAt(0)).toLowerCase();
}
alterClass(form['Of'], 'hidden', formEvent != 'UPDATE OF');
alterClass(form['Of'], 'hidden', !/ OF/.test(formEvent));
}