projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8814f72
)
Shout: Column name change
author
Ben Klang
<ben@alkaloid.net>
Wed, 13 Jan 2010 22:18:14 +0000
(17:18 -0500)
committer
Ben Klang
<ben@alkaloid.net>
Wed, 13 Jan 2010 22:25:57 +0000
(17:25 -0500)
shout/lib/Driver/Sql.php
patch
|
blob
|
history
diff --git
a/shout/lib/Driver/Sql.php
b/shout/lib/Driver/Sql.php
index
7f191a5
..
b0c58f5
100644
(file)
--- a/
shout/lib/Driver/Sql.php
+++ b/
shout/lib/Driver/Sql.php
@@
-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);