Commit e7fd4753 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

CAST to num explicitly otherwise it may be treated as binary in MySQL-5.0.x.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31140 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 489daa28
......@@ -198,7 +198,8 @@ SELECT \n
CASE WHEN @result < 0 THEN\n
0\n
ELSE\n
@result\n
<dtml-comment>CAST to num explicitly otherwise it may be treated as binary in MySQL-5.0.x</dtml-comment>\n
0 + @result\n
END AS total_quantity,\n
\n
<dtml-sqlvar expr="from_date" type="datetime"> AS from_date,\n
......@@ -345,7 +346,8 @@ SELECT \n
CASE WHEN @result < 0 THEN\n
0\n
ELSE\n
@result\n
<dtml-comment>CAST to num explicitly otherwise it may be treated as binary in MySQL-5.0.x</dtml-comment>\n
0 + @result\n
END AS total_quantity,\n
\n
<dtml-sqlvar expr="from_date" type="datetime"> AS from_date,\n
......
353
\ No newline at end of file
354
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment