diff options
author | uckelman <uckelman@nomic.net> | 2010-04-11 13:36:19 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-04-11 13:36:19 +0000 |
commit | 29b42706b95f767cddcc8e7620a0a7070f4d289b (patch) | |
tree | 6bfd84c5a4fcde291fc6b21739f1c22da01cada6 | |
parent | 6cd33bc7a7d386db295db288e70b78b5f27d6933 (diff) |
Added missing space in SQL. Fixed test.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6643 67b53d14-2c14-4ace-a08f-0dab2b34000c
-rw-r--r-- | src/Bridge.php | 2 | ||||
-rw-r--r-- | test/BridgeTest.php | 2 |
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, |