Shout: Column name change
authorBen Klang <ben@alkaloid.net>
Wed, 13 Jan 2010 22:18:14 +0000 (17:18 -0500)
committerBen Klang <ben@alkaloid.net>
Wed, 13 Jan 2010 22:25:57 +0000 (17:25 -0500)
shout/lib/Driver/Sql.php

index 7f191a5..b0c58f5 100644 (file)
@@ -51,7 +51,7 @@ class Shout_Driver_Sql extends Shout_Driver
     {
         $this->_connect();
 
-        $sql = 'SELECT context FROM %s';
+        $sql = 'SELECT context_name FROM %s';
         $sql = sprintf($sql, $this->_params['table']);
         $vars = array();
 
@@ -70,7 +70,7 @@ class Shout_Driver_Sql extends Shout_Driver
         $contexts = array();
         while ($row && !($row instanceof PEAR_Error)) {
             /* Add this new foo to the $_foo list. */
-            $contexts[] = $row['context'];
+            $contexts[] = $row['context_name'];
 
             /* Advance to the new row in the result set. */
             $row = $result->fetchRow(DB_FETCHMODE_ASSOC);