From 29b42706b95f767cddcc8e7620a0a7070f4d289b Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 11 Apr 2010 13:36:19 +0000 Subject: 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 --- src/Bridge.php | 2 +- 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, -- cgit v1.2.3