OSDN Git Service
(root)
/
newslash
/
newslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15e61f9
)
Model::Stories: fix some lowercase words in SQL
author
hylom
<hylom@users.sourceforge.jp>
Fri, 3 Feb 2017 12:19:23 +0000
(21:19 +0900)
committer
hylom
<hylom@users.sourceforge.jp>
Fri, 3 Feb 2017 12:19:23 +0000
(21:19 +0900)
src/newslash_web/lib/Newslash/Model/Stories.pm
patch
|
blob
|
history
diff --git
a/src/newslash_web/lib/Newslash/Model/Stories.pm
b/src/newslash_web/lib/Newslash/Model/Stories.pm
index
f7aec1f
..
51f46a3
100644
(file)
--- a/
src/newslash_web/lib/Newslash/Model/Stories.pm
+++ b/
src/newslash_web/lib/Newslash/Model/Stories.pm
@@
-51,7
+51,7
@@
sub latest {
}
my $sql = <<"EOSQL";
-SELECT latest.*, story_text.*, users.nickname
as
author
+SELECT latest.*, story_text.*, users.nickname
AS
author
FROM (SELECT * from stories $where_clause ORDER BY time DESC LIMIT ?) AS latest
LEFT JOIN story_text ON latest.stoid = story_text.stoid
LEFT JOIN users ON latest.uid = users.uid