projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
020094e
)
don't use 'as' for table alias
author
Michael J Rubinsky
<mrubinsk@horde.org>
Sun, 30 Jan 2011 04:18:50 +0000
(23:18 -0500)
committer
Michael J Rubinsky
<mrubinsk@horde.org>
Sun, 30 Jan 2011 04:19:15 +0000
(23:19 -0500)
jonah/lib/Driver/Sql.php
patch
|
blob
|
history
diff --git
a/jonah/lib/Driver/Sql.php
b/jonah/lib/Driver/Sql.php
index
9d5b887
..
1c867a3
100644
(file)
--- a/
jonah/lib/Driver/Sql.php
+++ b/
jonah/lib/Driver/Sql.php
@@
-750,9
+750,9
@@
class Jonah_Driver_Sql extends Jonah_Driver
} else {
$stories = array();
$sql = 'SELECT DISTINCT s.story_id, s.channel_id FROM jonah_stories'
- . '
as s, jonah_stories_tags a
s t';
+ . '
s, jonah_stories_tag
s t';
for ($i = 0; $i < count($ids); $i++) {
- $sql .= ', jonah_stories_tags
as
t' . $i;
+ $sql .= ', jonah_stories_tags t' . $i;
}
$sql .= ' WHERE s.story_id = t.story_id';
for ($i = 0 ; $i < count($ids); $i++) {