Commit 5e90d30c authored by Vincent Pelletier's avatar Vincent Pelletier

Add a notice about ill-looking SQL generated which is actually harmless.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16770 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3fdd3064
......@@ -959,6 +959,12 @@ class SimulationTool(BaseTool):
# XXX: uggly duplicated query generation code
# XXX: duplicates SQL variable formatting present in
# ERP5Type/patches/sqlvar.py about datetime SQL columns.
# Note: This code can generate queries like:
# date = 2000/01/01 and date >= 2001/01/01
# When latest full inventory is at 2000/01/01 and given
# from_date is 2001/01/01.
# It is not a serious problem since MySQL detects incompatible
# conditions and immediately returns (with 0 rows).
equal_date_query_list = []
greater_than_date_query_list = []
EQUAL_DATE_TABLE_ID = 'inventory_stock'
......
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