Commit 83b3844f authored by Jean-Paul Smets's avatar Jean-Paul Smets

added date support


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@458 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c36579bb
...@@ -10,6 +10,7 @@ class_file: ...@@ -10,6 +10,7 @@ class_file:
<params></params> <params></params>
CREATE TABLE `message` ( CREATE TABLE `message` (
`uid` int(11) NOT NULL auto_increment, `uid` int(11) NOT NULL auto_increment,
`date` datetime,
`path` VARCHAR(255), `path` VARCHAR(255),
`method_id` VARCHAR(40), `method_id` VARCHAR(40),
`processing_node` INT DEFAULT -1, `processing_node` INT DEFAULT -1,
...@@ -17,9 +18,10 @@ CREATE TABLE `message` ( ...@@ -17,9 +18,10 @@ CREATE TABLE `message` (
`priority` INT DEFAULT 0, `priority` INT DEFAULT 0,
`message` BLOB, `message` BLOB,
PRIMARY KEY (`uid`), PRIMARY KEY (`uid`),
KEY `date` (`date`),
KEY `path` (`path`), KEY `path` (`path`),
KEY `method_id` (`method_id`), KEY `method_id` (`method_id`),
KEY `processing_node` (`processing_node`), KEY `processing_node` (`processing_node`),
KEY `processing` (`processing`), KEY `processing` (`processing`),
KEY `priority` (`priority`), KEY `priority` (`priority`),
) TYPE = InnoDB; ) TYPE = InnoDB;
\ No newline at end of file
...@@ -14,7 +14,7 @@ SELECT * FROM ...@@ -14,7 +14,7 @@ SELECT * FROM
WHERE WHERE
processing <> 1 processing <> 1
<dtml-if processing_node> AND processing_node = <dtml-sqlvar processing_node type="int"></dtml-if> <dtml-if processing_node> AND processing_node = <dtml-sqlvar processing_node type="int"></dtml-if>
<dtml-if priority> AND priority = <dtml-sqlvar priority type="int"> </dtml-if> <dtml-if priority> AND priority = <dtml-sqlvar priority type="int"> </dtml-if>
ORDER BY ORDER BY
priority priority, date
\ No newline at end of file
...@@ -20,4 +20,6 @@ WHERE ...@@ -20,4 +20,6 @@ WHERE
<dtml-if path>AND path = <dtml-sqlvar path type="string"></dtml-if> <dtml-if path>AND path = <dtml-sqlvar path type="string"></dtml-if>
<dtml-if method_id>AND method_id = <dtml-sqlvar method_id type="string"></dtml-if> <dtml-if method_id>AND method_id = <dtml-sqlvar method_id type="string"></dtml-if>
GROUP BY GROUP BY
path, method_id, processing_node, processing path, method_id, processing_node, processing
\ No newline at end of file ORDER BY
priority, date
\ No newline at end of file
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