summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Bridge.php2
-rw-r--r--test/BridgeTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Bridge.php b/src/Bridge.php
index 9cbc64f..3b9b1b4 100644
--- a/src/Bridge.php
+++ b/src/Bridge.php
@@ -30,7 +30,7 @@ class Bridge {
public function setPostId($messageId, $postId) {
$sql = 'UPDATE posts SET ' .
- 'post_id = ' . $postId .
+ 'post_id = ' . $postId . ' ' .
'WHERE message_id = ' . $this->db->quote($messageId);
$count = $this->db->exec($sql);
diff --git a/test/BridgeTest.php b/test/BridgeTest.php
index 0a7a332..7101c77 100644
--- a/test/BridgeTest.php
+++ b/test/BridgeTest.php
@@ -108,7 +108,7 @@ class BridgeTest extends PHPUnit_Framework_TestCase {
public function providerRegisterMessage() {
return array(
- array(null, null, null, null, null, 'PDOException'),
+ array(null, null, null, null, null, 'PHPUnit_Framework_Error'),
array(
'<20100302094228.33F0310091@charybdis.ellipsis.cx>',
null,