From 183ee7e7f21a84eb682e8398c41d0b57792756fa Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 26 Jan 2021 16:22:23 +0100 Subject: Fix error suppression for safety => 0 --- test/it_dbi.t | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/it_dbi.t b/test/it_dbi.t index 7b1c9d7..13708e2 100755 --- a/test/it_dbi.t +++ b/test/it_dbi.t @@ -35,6 +35,7 @@ $opts['subclass']::createclass(['table' => "it_dbi_test", 'forcecreate' => true] $record = new it_dbi_test; $GLOBALS['it_defaultconfig']['fatal_throws_exception'] = true; +is($record->query("SYNTAX ERROR", ['safety' => 0]), false, "Suppress failures with safety 0"); try { is(@$record->select("SYNTAX ERROR"), "Exception", "Syntax triggers exception for fatal_throws_exception mode"); } catch (Exception $e) { -- cgit v1.2.3