diff options
author | Christian Schneider | 2025-07-29 12:15:45 +0200 |
---|---|---|
committer | Christian Schneider | 2025-07-29 12:16:44 +0200 |
commit | c31ea473e5a9454b1d7bb950edbd164fdf803a84 (patch) | |
tree | 2f6c855eb3f4d174dde6733b13b553dea51ec0fb /test/it_dbi.t | |
parent | 43246fa6c614a30039cf480df80acc2088b30f8e (diff) | |
download | itools-c31ea473e5a9454b1d7bb950edbd164fdf803a84.tar.gz itools-c31ea473e5a9454b1d7bb950edbd164fdf803a84.tar.bz2 itools-c31ea473e5a9454b1d7bb950edbd164fdf803a84.zip |
Create it::error for safety=0 but do not abort, added internal safety=-1 to avoid it::error for SHOW TABLES
Diffstat (limited to 'test/it_dbi.t')
-rwxr-xr-x | test/it_dbi.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/it_dbi.t b/test/it_dbi.t index b453da2..083047f 100755 --- a/test/it_dbi.t +++ b/test/it_dbi.t @@ -38,7 +38,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"); +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) { |