Commit 7e3b9108 authored by Alexander Butenko's avatar Alexander Butenko

Update tests

parent 0cd7ef84
...@@ -315,13 +315,16 @@ $dbi_sub->get ('users', null, 'id'); ...@@ -315,13 +315,16 @@ $dbi_sub->get ('users', null, 'id');
$db->where ('id', $dbi_sub, 'IN'); $db->where ('id', $dbi_sub, 'IN');
$cnt = $db->copy(); $cnt = $db->copy();
$count_members = $cnt->getValue ('users', "COUNT(id)"); $c = $cnt->getValue ('users', "COUNT(id)");
echo "count {$count_members}\n"; if ($c != 3) {
echo $cnt->getLastQuery() . "\n"; echo "copy with subquery count failed";
exit;
}
$data = $db->get('users'); $data = $db->get('users');
print_r ($data); if (count($data) != 3) {
echo $cnt->getLastQuery() . "\n"; echo "copy with subquery data count failed";
exit;
}
/// ///
$usersQ = $db->subQuery ("u"); $usersQ = $db->subQuery ("u");
$usersQ->where ("active", 1); $usersQ->where ("active", 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment