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