Commit b7808a6b authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use instance_id.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3041 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dd82b5c5
...@@ -6,15 +6,14 @@ max_cache:0 ...@@ -6,15 +6,14 @@ max_cache:0
cache_time:0 cache_time:0
</dtml-comment> </dtml-comment>
<params>count:int <params>count:int
thread_id instance_id</params>
date</params>
INSERT INTO INSERT INTO
catalog (id, path, CreationDate) catalog (id, path, CreationDate)
VALUES VALUES
<dtml-in "_.range(0,count)"> <dtml-in "_.range(count - 1)">
( <dtml-sqlvar thread_id type="string"> , 'reserved', <dtml-sqlvar date type="datetime"> ) , ( <dtml-sqlvar instance_id type="string"> , 'reserved', NOW() ) ,
</dtml-in> </dtml-in>
( <dtml-sqlvar thread_id type="string"> , 'reserved', <dtml-sqlvar date type="datetime"> ); ( <dtml-sqlvar instance_id type="string"> , 'reserved', NOW() );
<dtml-var "'\0'"> <dtml-var "'\0'">
...@@ -25,8 +24,6 @@ FROM ...@@ -25,8 +24,6 @@ FROM
WHERE WHERE
path = 'reserved' path = 'reserved'
AND AND
id = <dtml-sqlvar thread_id type="string"> id = <dtml-sqlvar instance_id type="string">
AND
CreationDate = <dtml-sqlvar date type="datetime">
LIMIT LIMIT
10000 10000
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