You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ext/pdo_pgsql/tests/issue78621.inc
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,12 @@ $db->exec("create temporary table t (a varchar(3))");
10
10
$db->exec("create function hey() returns trigger as \$\$ begin new.a := 'oh'; raise notice 'I tampered your data, did you know?'; return new; end; \$\$ language plpgsql");
11
11
$db->exec("create trigger hop before insert on t for each row execute procedure hey()");
12
12
$db->exec("insert into t values ('ah')");
13
+
attach($db, 'Re');
14
+
$db->exec("delete from t");
15
+
$db->exec("insert into t values ('ah')");
16
+
$db->pgsqlSetNoticeCallback(null);
17
+
$db->exec("delete from t");
18
+
$db->exec("insert into t values ('ah')");
13
19
var_dump($db->query("select * from t")->fetchAll(PDO::FETCH_ASSOC));
0 commit comments