Commit 5cf47539 authored by Alexander Butenko's avatar Alexander Butenko

buildWhere() refactoring

parent 2cffff2d
This diff is collapsed.
...@@ -137,12 +137,19 @@ if ($db->count != 3) { ...@@ -137,12 +137,19 @@ if ($db->count != 3) {
exit; exit;
} }
$db->where ("active", true);
$users = $db->get("users", 2);
if ($db->count != 2) {
echo "Invalid total insert count with boolean";
exit;
}
// TODO // TODO
//$db->where("createdAt", Array (">" => $db->interval("-1h"))); //$db->where("createdAt", Array (">" => $db->interval("-1h")));
//$users = $db->get("users"); //$users = $db->get("users");
//print_r ($users); //print_r ($users);
$db->where("firstname", '%John%', 'LIKE'); $db->where("firstname", Array ('LIKE' => '%John%'));
$users = $db->get("users"); $users = $db->get("users");
if ($db->count != 1) { if ($db->count != 1) {
echo "Invalid insert count in LIKE: ".$db->count; echo "Invalid insert count in LIKE: ".$db->count;
......
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