diff options
author | Christian Schneider | 2021-01-26 16:22:23 +0100 |
---|---|---|
committer | Christian Schneider | 2021-01-26 16:22:56 +0100 |
commit | 183ee7e7f21a84eb682e8398c41d0b57792756fa (patch) | |
tree | 9515bc47d62856e8cfb4c0d5ed1c825c8b886d0b /test/it_dbi.t | |
parent | 83939b20b156ac0cc192eb0edf9eac8654a07d36 (diff) | |
download | itools-183ee7e7f21a84eb682e8398c41d0b57792756fa.tar.gz itools-183ee7e7f21a84eb682e8398c41d0b57792756fa.tar.bz2 itools-183ee7e7f21a84eb682e8398c41d0b57792756fa.zip |
Fix error suppression for safety => 0
Diffstat (limited to 'test/it_dbi.t')
-rwxr-xr-x | test/it_dbi.t | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |