Commit 00f80e64 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Add some TODO on mysql backend.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1963 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 275a8ca2
...@@ -317,6 +317,8 @@ class MySQLDatabaseManager(DatabaseManager): ...@@ -317,6 +317,8 @@ class MySQLDatabaseManager(DatabaseManager):
q("""TRUNCATE pt""") q("""TRUNCATE pt""")
for offset, uuid, state in cell_list: for offset, uuid, state in cell_list:
uuid = e(util.dump(uuid)) uuid = e(util.dump(uuid))
# TODO: this logic should move out of database manager
# add 'dropCells(cell_list)' to API and use one query
if state == CellStates.DISCARDED: if state == CellStates.DISCARDED:
q("""DELETE FROM pt WHERE rid = %d AND uuid = '%s'""" \ q("""DELETE FROM pt WHERE rid = %d AND uuid = '%s'""" \
% (offset, uuid)) % (offset, uuid))
......
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