Commit 327f785b authored by Aurel's avatar Aurel

add a comment about the column mismatch log to explain the case

parent 3e31633d
...@@ -1568,6 +1568,10 @@ class SimulationTool(BaseTool): ...@@ -1568,6 +1568,10 @@ class SimulationTool(BaseTool):
elif line_a[key] == line_b[key]: elif line_a[key] == line_b[key]:
result[key] = line_a[key] result[key] = line_a[key]
elif key not in ('date', 'stock_uid', 'path'): elif key not in ('date', 'stock_uid', 'path'):
# This case happens when we got columns in result
# which are not part of the group by statement, MySQL
# used to choose randomly a value for this column, here
# we just do not set the key in result returned
LOG('InventoryTool.getInventoryList.addLineValues', LOG('InventoryTool.getInventoryList.addLineValues',
PROBLEM, PROBLEM,
'mismatch for %s column: %s and %s' % ( 'mismatch for %s column: %s and %s' % (
......
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