s4
changeset 380:b0d1b4914789
Revert to call "sq $db" instead of query() because of pipe error
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 28 Nov 2016 01:20:47 +0859 |
parents | 1f62c51bed4f |
children | 879d7f1cd676 |
files | s4-blog.sh |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line diff
1.1 --- a/s4-blog.sh Mon Nov 28 00:00:45 2016 +0859 1.2 +++ b/s4-blog.sh Mon Nov 28 01:20:47 2016 +0859 1.3 @@ -155,7 +155,8 @@ 1.4 atime=`query "SELECT time FROM acclog 1.5 WHERE tbl='blog' AND tblrowid=$rowid AND user='$user';"` 1.6 iconcleaner=$tmpd/iconcleaner.$$ 1.7 - query<<EOF | 1.8 + # Here calling query() causes pipe stack. Revert to "sq $db" (from r365) 1.9 + sq $db<<EOF | 1.10 WITH a_s AS ( 1.11 SELECT id, 1.12 max(CASE key WHEN 'ctime' THEN val END) TIME,