summaryrefslogtreecommitdiff
path: root/vendor/PicoDb/Table.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-15 22:35:56 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-15 22:35:56 +0200
commite1ddf7f0127e9745f94e5ff9f76ea828e9058720 (patch)
tree46ae9b2397162cff54813dd840c340e85aaf53fe /vendor/PicoDb/Table.php
parent5f962bf4cd7ef69f2a0873cbebdce83d35b086a5 (diff)
Run unit tests across different database backends + fix bugs
Diffstat (limited to 'vendor/PicoDb/Table.php')
-rw-r--r--vendor/PicoDb/Table.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/vendor/PicoDb/Table.php b/vendor/PicoDb/Table.php
index b333feb4..cc637434 100644
--- a/vendor/PicoDb/Table.php
+++ b/vendor/PicoDb/Table.php
@@ -44,7 +44,11 @@ class Table
}
}
-
+ /**
+ * Update
+ *
+ * Note: Do not use `rowCount()` the behaviour is different across drivers
+ */
public function update(array $data)
{
$columns = array();
@@ -70,7 +74,7 @@ class Table
$result = $this->db->execute($sql, $values);
- return $result !== false && $result->rowCount() > 0;
+ return $result !== false;
}