add DB::queryWalk() -- still untested

add DB::lastQuery() (with tests)
This commit is contained in:
Sergey Tsalkov
2021-06-24 03:05:46 +00:00
parent 30f3d9454a
commit 15f40efe5d
3 changed files with 61 additions and 44 deletions

View File

@@ -55,6 +55,7 @@ class ErrorTest extends SimpleTest {
$exception_was_caught = 1;
}
$this->assert($exception_was_caught === 1);
$this->assert(DB::lastQuery() === 'SELET * FROM accounts');
try {
DB::insert("`$dbname`.`accounts`", array(