Commit c1fcbacd authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

put DISTINCT in sub-queries where derived merge does not work.

parent c3b85849
......@@ -71,7 +71,7 @@ FROM\n
@current_path:=IF(@current_reference = reference, @current_path, path) AS path,\n
@current_reference:=reference AS reference\n
FROM (\n
SELECT\n
SELECT DISTINCT\n
reference,\n
path,\n
catalog.uid,\n
......
......@@ -71,7 +71,7 @@ FROM\n
@current_path:=IF(@current_reference = reference, @current_path, path) AS path,\n
@current_reference:=reference AS reference\n
FROM (\n
SELECT\n
SELECT DISTINCT\n
reference,\n
path,\n
catalog.uid,\n
......
......@@ -80,7 +80,7 @@ kw</string> </value>
catalog.*\n
FROM\n
(\n
SELECT\n
SELECT DISTINCT\n
catalog.uid,\n
catalog.path,\n
catalog.int_index,\n
......
......@@ -487,7 +487,7 @@ SELECT \n
@running_total_price := IFNULL(q1.total_price, 0) + \n
@running_total_price AS running_total_price\n
FROM (\n
SELECT\n
SELECT DISTINCT\n
catalog.path as path,\n
catalog.uid as uid,\n
catalog.relative_url as relative_url,\n
......
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