We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c0761b commit 2cffff2Copy full SHA for 2cffff2
tests.php
@@ -125,6 +125,10 @@ function createTable ($name, $data) {
125
126
$db->where ("active", false);
127
$db->update("users", Array ("active" => $db->not()));
128
+if ($db->count != 2) {
129
+ echo "Invalid update count with not()";
130
+ exit;
131
+}
132
133
$db->where ("active", true);
134
$users = $db->get("users");
@@ -160,6 +164,11 @@ function createTable ($name, $data) {
160
164
);
161
165
$db->where ("id", 1);
162
166
$cnt = $db->update("users", $upData);
167
+if ($db->count != 1) {
168
+ echo "Invalid update count with functions";
169
170
171
+
163
172
173
174
$r = $db->getOne("users");
0 commit comments