diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-07-19 11:07:17 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-07-21 23:17:37 +0200 |
commit | be7c6139938564fc2ce5a12982eb82f60087f900 (patch) | |
tree | 790f122e1ad588dbbdd87682551723e87f0934cf /lib/db/adapter.php | |
parent | b66c9098bd4188a1fbeb92351d1370736c10d1b4 (diff) | |
download | nextcloud-server-be7c6139938564fc2ce5a12982eb82f60087f900.tar.gz nextcloud-server-be7c6139938564fc2ce5a12982eb82f60087f900.zip |
Fix errors from unit tests
Diffstat (limited to 'lib/db/adapter.php')
-rw-r--r-- | lib/db/adapter.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/db/adapter.php b/lib/db/adapter.php index 92c24b46fff..20e7ea4a600 100644 --- a/lib/db/adapter.php +++ b/lib/db/adapter.php @@ -38,8 +38,7 @@ class Adapter { $inserts = array_merge($inserts, $inserts); try { - $statement = $this->conn->prepare($query); - $result = $statement->execute($inserts); + $result = $this->conn->executeUpdate($query, $inserts); } catch(\Doctrine\DBAL\DBALException $e) { $entry = 'DB Error: "'.$e->getMessage() . '"<br />'; $entry .= 'Offending command was: ' . $query.'<br />'; |