Commit c04d4356 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use datetime instead of string where appropriate.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2953 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5968de52
...@@ -10,7 +10,7 @@ class_file: ...@@ -10,7 +10,7 @@ class_file:
<params>uid</params> <params>uid</params>
UPDATE message UPDATE message
SET SET
processing_date = <dtml-sqlvar "_.DateTime()" type="string">, processing_date = <dtml-sqlvar "_.DateTime()" type="datetime">,
processing = 1 processing = 1
WHERE WHERE
<dtml-in uid>uid = <dtml-sqlvar sequence-item type="int"><dtml-if sequence-end><dtml-else> <dtml-in uid>uid = <dtml-sqlvar sequence-item type="int"><dtml-if sequence-end><dtml-else>
......
...@@ -17,7 +17,7 @@ WHERE ...@@ -17,7 +17,7 @@ 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>
<dtml-if to_date>AND date <= <dtml-sqlvar to_date type="string"> </dtml-if> <dtml-if to_date>AND date <= <dtml-sqlvar to_date type="datetime"> </dtml-if>
ORDER BY ORDER BY
priority, date priority, date
...@@ -18,7 +18,7 @@ SET ...@@ -18,7 +18,7 @@ SET
WHERE WHERE
processing = 1 processing = 1
AND AND
processing_date < <dtml-sqlvar to_processing_date type="string"> processing_date < <dtml-sqlvar to_processing_date type="datetime">
<dtml-var "'\0'"> <dtml-var "'\0'">
......
...@@ -18,4 +18,4 @@ WHERE ...@@ -18,4 +18,4 @@ WHERE
<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 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>
<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 to_date>AND date <= <dtml-sqlvar to_date type="string"> </dtml-if> <dtml-if to_date>AND date <= <dtml-sqlvar to_date type="datetime"> </dtml-if>
...@@ -15,7 +15,7 @@ UPDATE ...@@ -15,7 +15,7 @@ UPDATE
SET SET
priority = <dtml-sqlvar priority type="int">, priority = <dtml-sqlvar priority type="int">,
processing = 0, processing = 0,
date = <dtml-sqlvar date type="string"> date = <dtml-sqlvar date type="datetime">
WHERE WHERE
<dtml-in uid>uid = <dtml-sqlvar sequence-item type="int"><dtml-if sequence-end><dtml-else> <dtml-in uid>uid = <dtml-sqlvar sequence-item type="int"><dtml-if sequence-end><dtml-else>
OR </dtml-if></dtml-in> OR </dtml-if></dtml-in>
...@@ -17,7 +17,7 @@ processing_node=-1</params> ...@@ -17,7 +17,7 @@ processing_node=-1</params>
INSERT INTO message INSERT INTO message
SET SET
path = <dtml-sqlvar path type="string">, path = <dtml-sqlvar path type="string">,
<dtml-if date>date = <dtml-sqlvar date type="string">, <dtml-else>date = <dtml-sqlvar "_.DateTime()" type="string">, </dtml-if> <dtml-if date>date = <dtml-sqlvar date type="string">, <dtml-else>date = <dtml-sqlvar "_.DateTime()" type="datetime">, </dtml-if>
method_id = <dtml-sqlvar method_id type="string">, method_id = <dtml-sqlvar method_id type="string">,
processing_node = <dtml-sqlvar processing_node type="int">, processing_node = <dtml-sqlvar processing_node type="int">,
processing = -1, processing = -1,
......
...@@ -21,7 +21,7 @@ VALUES ...@@ -21,7 +21,7 @@ VALUES
<dtml-if sequence-start><dtml-else>,</dtml-if> <dtml-if sequence-start><dtml-else>,</dtml-if>
( (
<dtml-sqlvar expr="path_list[loop_item]" type="string">, <dtml-sqlvar expr="path_list[loop_item]" type="string">,
<dtml-if date_list><dtml-sqlvar expr="date_list[loop_item]" type="string"><dtml-else><dtml-sqlvar "_.DateTime()" type="string"></dtml-if>, <dtml-if date_list><dtml-sqlvar expr="date_list[loop_item]" type="string"><dtml-else><dtml-sqlvar "_.DateTime()" type="datetime"></dtml-if>,
<dtml-sqlvar expr="method_id_list[loop_item]" type="string">, <dtml-sqlvar expr="method_id_list[loop_item]" type="string">,
<dtml-if processing_node_list><dtml-sqlvar expr="processing_node_list[loop_item]" type="int"><dtml-else>-1</dtml-if>, <dtml-if processing_node_list><dtml-sqlvar expr="processing_node_list[loop_item]" type="int"><dtml-else>-1</dtml-if>,
-1, -1,
......
...@@ -11,7 +11,7 @@ class_file: ...@@ -11,7 +11,7 @@ class_file:
UPDATE UPDATE
message_queue message_queue
SET SET
processing_date = <dtml-sqlvar "_.DateTime()" type="string">, processing_date = <dtml-sqlvar "_.DateTime()" type="datetime">,
processing=1 processing=1
WHERE WHERE
uid = <dtml-sqlvar uid type="int"> uid = <dtml-sqlvar uid type="int">
...@@ -16,7 +16,7 @@ WHERE ...@@ -16,7 +16,7 @@ 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>
<dtml-if to_date> AND date <= <dtml-sqlvar to_date type="string"> </dtml-if> <dtml-if to_date> AND date <= <dtml-sqlvar to_date type="datetime"> </dtml-if>
ORDER BY ORDER BY
priority, date priority, date
...@@ -17,4 +17,4 @@ WHERE ...@@ -17,4 +17,4 @@ 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 path>AND path = <dtml-sqlvar path type="string"></dtml-if> <dtml-if path>AND path = <dtml-sqlvar path type="string"></dtml-if>
<dtml-if to_date>AND date <= <dtml-sqlvar to_date type="string"> </dtml-if> <dtml-if to_date>AND date <= <dtml-sqlvar to_date type="datetime"> </dtml-if>
...@@ -15,6 +15,6 @@ UPDATE ...@@ -15,6 +15,6 @@ UPDATE
SET SET
priority = <dtml-sqlvar priority type="int">, priority = <dtml-sqlvar priority type="int">,
processing = 0, processing = 0,
date = <dtml-sqlvar date type="string"> date = <dtml-sqlvar date type="datetime">
WHERE WHERE
uid = <dtml-sqlvar uid type="int"> uid = <dtml-sqlvar uid type="int">
...@@ -17,7 +17,7 @@ date</params> ...@@ -17,7 +17,7 @@ date</params>
INSERT INTO message_queue INSERT INTO message_queue
SET SET
path = <dtml-sqlvar path type="string">, path = <dtml-sqlvar path type="string">,
<dtml-if date>date = <dtml-sqlvar date type="string">, <dtml-else>date = <dtml-sqlvar "_.DateTime()" type="string">, </dtml-if> <dtml-if date>date = <dtml-sqlvar date type="string">, <dtml-else>date = <dtml-sqlvar "_.DateTime()" type="datetime">, </dtml-if>
method_id = <dtml-sqlvar method_id type="string">, method_id = <dtml-sqlvar method_id type="string">,
processing_node = <dtml-sqlvar processing_node type="int">, processing_node = <dtml-sqlvar processing_node type="int">,
broadcast = <dtml-sqlvar broadcast type="int">, broadcast = <dtml-sqlvar broadcast type="int">,
......
<dtml-comment> <dtml-comment>
title: title:
connection_id:erp5_sql_connection connection_id:erp5_sql_connection
max_rows:10000 max_rows:0
max_cache:0 max_cache:0
cache_time:0 cache_time:0
</dtml-comment> </dtml-comment>
...@@ -12,9 +12,9 @@ INSERT INTO ...@@ -12,9 +12,9 @@ INSERT INTO
catalog (id, path, CreationDate) catalog (id, path, CreationDate)
VALUES VALUES
<dtml-in "_.range(0,count)"> <dtml-in "_.range(0,count)">
( <dtml-sqlvar thread_id type="string"> , 'reserved', <dtml-sqlvar date type="string"> ) , ( <dtml-sqlvar thread_id type="string"> , 'reserved', <dtml-sqlvar date type="datetime"> ) ,
</dtml-in> </dtml-in>
( <dtml-sqlvar thread_id type="string"> , 'reserved', <dtml-sqlvar date type="string"> ); ( <dtml-sqlvar thread_id type="string"> , 'reserved', <dtml-sqlvar date type="datetime"> );
<dtml-var "'\0'"> <dtml-var "'\0'">
...@@ -27,4 +27,6 @@ WHERE ...@@ -27,4 +27,6 @@ WHERE
AND AND
id = <dtml-sqlvar thread_id type="string"> id = <dtml-sqlvar thread_id type="string">
AND AND
CreationDate = <dtml-sqlvar date type="string"> CreationDate = <dtml-sqlvar date type="datetime">
\ No newline at end of file LIMIT
10000
...@@ -29,20 +29,20 @@ summary ...@@ -29,20 +29,20 @@ summary
INSERT INTO compatibility VALUES ( INSERT INTO compatibility VALUES (
<dtml-sqlvar uid type="int">, <dtml-sqlvar uid type="int">,
<dtml-sqlvar Creator type="string" optional>, <dtml-sqlvar Creator type="string" optional>,
<dtml-sqlvar Date type="string" optional>, <dtml-sqlvar Date type="datetime" optional>,
<dtml-sqlvar PrincipiaSearchSource type="string" optional>, <dtml-sqlvar PrincipiaSearchSource type="string" optional>,
<dtml-sqlvar SearchableText type="string" optional>, <dtml-sqlvar SearchableText type="string" optional>,
<dtml-sqlvar EffectiveDate type="string" optional>, <dtml-sqlvar EffectiveDate type="datetime" optional>,
<dtml-sqlvar ExpiresDate type="string" optional>, <dtml-sqlvar ExpiresDate type="datetime" optional>,
<dtml-sqlvar ModificationDate type="string" optional>, <dtml-sqlvar ModificationDate type="datetime" optional>,
<dtml-sqlvar Type type="string" optional>, <dtml-sqlvar Type type="string" optional>,
<dtml-sqlvar bobobase_modification_time type="string" optional>, <dtml-sqlvar bobobase_modification_time type="datetime" optional>,
<dtml-sqlvar created type="string" optional>, <dtml-sqlvar created type="datetime" optional>,
<dtml-sqlvar effective type="string" optional>, <dtml-sqlvar effective type="datetime" optional>,
<dtml-sqlvar expires type="string" optional>, <dtml-sqlvar expires type="datetime" optional>,
<dtml-sqlvar getIcon type="string" optional>, <dtml-sqlvar getIcon type="string" optional>,
<dtml-sqlvar in_reply_to type="string" optional>, <dtml-sqlvar in_reply_to type="string" optional>,
<dtml-sqlvar modified type="string" optional>, <dtml-sqlvar modified type="datetime" optional>,
<dtml-sqlvar review_state type="string" optional>, <dtml-sqlvar review_state type="string" optional>,
<dtml-sqlvar summary type="string" optional> <dtml-sqlvar summary type="string" optional>
); );
\ No newline at end of file
...@@ -32,21 +32,21 @@ VALUES ...@@ -32,21 +32,21 @@ VALUES
<dtml-in prefix="loop" expr="_.range(_.len(uid))"> <dtml-in prefix="loop" expr="_.range(_.len(uid))">
( (
<dtml-sqlvar expr="uid[loop_item]" type="int">, <dtml-sqlvar expr="uid[loop_item]" type="int">,
<dtml-sqlvar expr="Creator[loop_item]" type="string" optional>, <dtml-sqlvar expr="Creator[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="Date[loop_item]" type="string" optional>, <dtml-sqlvar expr="Date[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="PrincipiaSearchSource[loop_item]" type="string" optional>, <dtml-sqlvar expr="PrincipiaSearchSource[loop_item]" type="string" optional>,
<dtml-sqlvar expr="SearchableText[loop_item]" type="string" optional>, <dtml-sqlvar expr="SearchableText[loop_item]" type="string" optional>,
<dtml-sqlvar expr="EffectiveDate[loop_item]" type="string" optional>, <dtml-sqlvar expr="EffectiveDate[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="ExpiresDate[loop_item]" type="string" optional>, <dtml-sqlvar expr="ExpiresDate[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="ModificationDate[loop_item]" type="string" optional>, <dtml-sqlvar expr="ModificationDate[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="Type[loop_item]" type="string" optional>, <dtml-sqlvar expr="Type[loop_item]" type="string" optional>,
<dtml-sqlvar expr="bobobase_modification_time[loop_item]" type="string" optional>, <dtml-sqlvar expr="bobobase_modification_time[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="created[loop_item]" type="string" optional>, <dtml-sqlvar expr="created[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="effective[loop_item]" type="string" optional>, <dtml-sqlvar expr="effective[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="expires[loop_item]" type="string" optional>, <dtml-sqlvar expr="expires[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="getIcon[loop_item]" type="string" optional>, <dtml-sqlvar expr="getIcon[loop_item]" type="string" optional>,
<dtml-sqlvar expr="in_reply_to[loop_item]" type="string" optional>, <dtml-sqlvar expr="in_reply_to[loop_item]" type="string" optional>,
<dtml-sqlvar expr="modified[loop_item]" type="string" optional>, <dtml-sqlvar expr="modified[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="review_state[loop_item]" type="string" optional>, <dtml-sqlvar expr="review_state[loop_item]" type="string" optional>,
<dtml-sqlvar expr="summary[loop_item]" type="string" optional> <dtml-sqlvar expr="summary[loop_item]" type="string" optional>
) )
......
...@@ -20,7 +20,7 @@ getVariationText</params> ...@@ -20,7 +20,7 @@ getVariationText</params>
<dtml-if getAggregateUidList> <dtml-if getAggregateUidList>
INSERT INTO item VALUES <dtml-in getAggregateUidList>( INSERT INTO item VALUES <dtml-in getAggregateUidList>(
<dtml-sqlvar uid type="int">, <dtml-sqlvar uid type="int">,
<dtml-sqlvar getStopDate type="string" optional>, <dtml-sqlvar getStopDate type="datetime" optional>,
<dtml-sqlvar getDestinationUid type="int" optional>, <dtml-sqlvar getDestinationUid type="int" optional>,
<dtml-sqlvar getDestinationSectionUid type="int" optional>, <dtml-sqlvar getDestinationSectionUid type="int" optional>,
<dtml-sqlvar getResourceUid type="int" optional>, <dtml-sqlvar getResourceUid type="int" optional>,
......
...@@ -29,7 +29,7 @@ VALUES ...@@ -29,7 +29,7 @@ VALUES
<dtml-if getAggregateUidList><dtml-in getAggregateUidList> <dtml-if getAggregateUidList><dtml-in getAggregateUidList>
( (
<dtml-sqlvar expr="uid[loop_item]" type="int">, <dtml-sqlvar expr="uid[loop_item]" type="int">,
<dtml-sqlvar expr="getStopDate[loop_item]" type="string" optional>, <dtml-sqlvar expr="getStopDate[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="getDestinationUid[loop_item]" type="int" optional>, <dtml-sqlvar expr="getDestinationUid[loop_item]" type="int" optional>,
<dtml-sqlvar expr="getDestinationSectionUid[loop_item]" type="int" optional>, <dtml-sqlvar expr="getDestinationSectionUid[loop_item]" type="int" optional>,
<dtml-sqlvar expr="getResourceUid[loop_item]" type="int" optional>, <dtml-sqlvar expr="getResourceUid[loop_item]" type="int" optional>,
......
...@@ -37,11 +37,11 @@ INSERT INTO movement VALUES ( ...@@ -37,11 +37,11 @@ INSERT INTO movement VALUES (
<dtml-if getResourceUid><dtml-sqlvar getResourceUid type="int"><dtml-else>NULL</dtml-if>, <dtml-if getResourceUid><dtml-sqlvar getResourceUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getNetConvertedQuantity><dtml-sqlvar getNetConvertedQuantity type="float"><dtml-else>NULL</dtml-if>, <dtml-if getNetConvertedQuantity><dtml-sqlvar getNetConvertedQuantity type="float"><dtml-else>NULL</dtml-if>,
NULL, NULL,
<dtml-if getStartDate><dtml-sqlvar getStartDate type="string"><dtml-else>NULL</dtml-if>, <dtml-if getStartDate><dtml-sqlvar getStartDate type="datetime"><dtml-else>NULL</dtml-if>,
<dtml-if getStopDate><dtml-sqlvar getStopDate type="string"><dtml-else>NULL</dtml-if>, <dtml-if getStopDate><dtml-sqlvar getStopDate type="datetime"><dtml-else>NULL</dtml-if>,
<dtml-if getNetConvertedTargetQuantity><dtml-sqlvar getNetConvertedTargetQuantity type="float"><dtml-else>NULL</dtml-if>, <dtml-if getNetConvertedTargetQuantity><dtml-sqlvar getNetConvertedTargetQuantity type="float"><dtml-else>NULL</dtml-if>,
<dtml-if getTargetStartDate><dtml-sqlvar getTargetStartDate type="string"><dtml-else>NULL</dtml-if>, <dtml-if getTargetStartDate><dtml-sqlvar getTargetStartDate type="datetime"><dtml-else>NULL</dtml-if>,
<dtml-if getTargetStopDate><dtml-sqlvar getTargetStopDate type="string"><dtml-else>NULL</dtml-if>, <dtml-if getTargetStopDate><dtml-sqlvar getTargetStopDate type="datetime"><dtml-else>NULL</dtml-if>,
<dtml-if getPrice><dtml-sqlvar getPrice type="float"><dtml-else>NULL</dtml-if>, <dtml-if getPrice><dtml-sqlvar getPrice type="float"><dtml-else>NULL</dtml-if>,
<dtml-if getTotalPrice><dtml-sqlvar getTotalPrice type="float"><dtml-else>NULL</dtml-if>, <dtml-if getTotalPrice><dtml-sqlvar getTotalPrice type="float"><dtml-else>NULL</dtml-if>,
<dtml-if getTargetTotalPrice><dtml-sqlvar getTargetTotalPrice type="float"><dtml-else>NULL</dtml-if>, <dtml-if getTargetTotalPrice><dtml-sqlvar getTargetTotalPrice type="float"><dtml-else>NULL</dtml-if>,
......
...@@ -47,11 +47,11 @@ VALUES ...@@ -47,11 +47,11 @@ VALUES
<dtml-sqlvar expr="getResourceUid[loop_item]" type="int" optional>, <dtml-sqlvar expr="getResourceUid[loop_item]" type="int" optional>,
<dtml-sqlvar expr="getNetConvertedQuantity[loop_item]" type="float" optional>, <dtml-sqlvar expr="getNetConvertedQuantity[loop_item]" type="float" optional>,
NULL, NULL,
<dtml-sqlvar expr="getInventoriatedStartDate[loop_item]" type="string" optional>, <dtml-sqlvar expr="getInventoriatedStartDate[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="getInventoriatedStopDate[loop_item]" type="string" optional>, <dtml-sqlvar expr="getInventoriatedStopDate[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="getNetConvertedTargetQuantity[loop_item]" type="float" optional>, <dtml-sqlvar expr="getNetConvertedTargetQuantity[loop_item]" type="float" optional>,
<dtml-sqlvar expr="getTargetStartDate[loop_item]" type="string" optional>, <dtml-sqlvar expr="getTargetStartDate[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="getTargetStopDate[loop_item]" type="string" optional>, <dtml-sqlvar expr="getTargetStopDate[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="getPrice[loop_item]" type="float" optional>, <dtml-sqlvar expr="getPrice[loop_item]" type="float" optional>,
<dtml-sqlvar expr="getTotalPrice[loop_item]" type="float" optional>, <dtml-sqlvar expr="getTotalPrice[loop_item]" type="float" optional>,
<dtml-sqlvar expr="getTargetTotalPrice[loop_item]" type="float" optional>, <dtml-sqlvar expr="getTargetTotalPrice[loop_item]" type="float" optional>,
......
...@@ -53,7 +53,7 @@ VALUES ...@@ -53,7 +53,7 @@ VALUES
<dtml-sqlvar expr="getRelativeUrl[loop_item]" type="string">, <dtml-sqlvar expr="getRelativeUrl[loop_item]" type="string">,
<dtml-sqlvar expr="getParentUid[loop_item]" type="int">, <dtml-sqlvar expr="getParentUid[loop_item]" type="int">,
<dtml-sqlvar expr="id[loop_item]" type="string" optional>, <dtml-sqlvar expr="id[loop_item]" type="string" optional>,
<dtml-sqlvar expr="CreationDate[loop_item]" type="string" optional>, <dtml-sqlvar expr="CreationDate[loop_item]" type="datetime" optional>,
<dtml-sqlvar expr="getDescription[loop_item]" type="string" optional>, <dtml-sqlvar expr="getDescription[loop_item]" type="string" optional>,
<dtml-sqlvar expr="getTitle[loop_item]" type="string" optional>, <dtml-sqlvar expr="getTitle[loop_item]" type="string" optional>,
<dtml-sqlvar expr="meta_type[loop_item]" type="string" optional>, <dtml-sqlvar expr="meta_type[loop_item]" type="string" optional>,
......
...@@ -38,7 +38,7 @@ VALUES ...@@ -38,7 +38,7 @@ VALUES
<dtml-if getSourceSectionUid><dtml-sqlvar getSourceSectionUid type="int"><dtml-else>NULL</dtml-if>, <dtml-if getSourceSectionUid><dtml-sqlvar getSourceSectionUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-sqlvar getResourceUid type="int">, <dtml-sqlvar getResourceUid type="int">,
<dtml-if getInventoriatedQuantity><dtml-sqlvar "getInventoriatedQuantity" type="float"><dtml-else>NULL</dtml-if>, <dtml-if getInventoriatedQuantity><dtml-sqlvar "getInventoriatedQuantity" type="float"><dtml-else>NULL</dtml-if>,
<dtml-if getStopDate><dtml-sqlvar getStopDate type="string"><dtml-else>NULL</dtml-if>, <dtml-if getStopDate><dtml-sqlvar getStopDate type="datetime"><dtml-else>NULL</dtml-if>,
<dtml-if getPrice><dtml-sqlvar getPrice type="float"><dtml-else>NULL</dtml-if>, <dtml-if getPrice><dtml-sqlvar getPrice type="float"><dtml-else>NULL</dtml-if>,
<dtml-if isAccountable><dtml-sqlvar isAccountable type="int"><dtml-else>NULL</dtml-if>, <dtml-if isAccountable><dtml-sqlvar isAccountable type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getPortalType><dtml-sqlvar getPortalType type="string"><dtml-else>NULL</dtml-if>, <dtml-if getPortalType><dtml-sqlvar getPortalType type="string"><dtml-else>NULL</dtml-if>,
...@@ -55,7 +55,7 @@ VALUES ...@@ -55,7 +55,7 @@ VALUES
<dtml-if getDestinationSectionUid><dtml-sqlvar getDestinationSectionUid type="int"><dtml-else>NULL</dtml-if>, <dtml-if getDestinationSectionUid><dtml-sqlvar getDestinationSectionUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-sqlvar getResourceUid type="int">, <dtml-sqlvar getResourceUid type="int">,
<dtml-if getInventoriatedQuantity><dtml-sqlvar "-getInventoriatedQuantity" type="float"><dtml-else>NULL</dtml-if>, <dtml-if getInventoriatedQuantity><dtml-sqlvar "-getInventoriatedQuantity" type="float"><dtml-else>NULL</dtml-if>,
<dtml-if getStartDate><dtml-sqlvar getStartDate type="string"><dtml-else>NULL</dtml-if>, <dtml-if getStartDate><dtml-sqlvar getStartDate type="datetime"><dtml-else>NULL</dtml-if>,
<dtml-if getPrice><dtml-sqlvar getPrice type="float"><dtml-else>NULL</dtml-if>, <dtml-if getPrice><dtml-sqlvar getPrice type="float"><dtml-else>NULL</dtml-if>,
<dtml-if isAccountable><dtml-sqlvar isAccountable type="int"><dtml-else>NULL</dtml-if>, <dtml-if isAccountable><dtml-sqlvar isAccountable type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getPortalType><dtml-sqlvar getPortalType type="string"><dtml-else>NULL</dtml-if>, <dtml-if getPortalType><dtml-sqlvar getPortalType type="string"><dtml-else>NULL</dtml-if>,
...@@ -76,7 +76,7 @@ VALUES ...@@ -76,7 +76,7 @@ VALUES
<dtml-if getDestinationSectionUid><dtml-sqlvar getDestinationSectionUid type="int"><dtml-else>NULL</dtml-if>, <dtml-if getDestinationSectionUid><dtml-sqlvar getDestinationSectionUid type="int"><dtml-else>NULL</dtml-if>,
<dtml-sqlvar getResourceUid type="int">, <dtml-sqlvar getResourceUid type="int">,
<dtml-if getInventoriatedQuantity><dtml-sqlvar "-getInventoriatedQuantity" type="float"><dtml-else>NULL</dtml-if>, <dtml-if getInventoriatedQuantity><dtml-sqlvar "-getInventoriatedQuantity" type="float"><dtml-else>NULL</dtml-if>,
<dtml-if getStartDate><dtml-sqlvar getStartDate type="string"><dtml-else>NULL</dtml-if>, <dtml-if getStartDate><dtml-sqlvar getStartDate type="datetime"><dtml-else>NULL</dtml-if>,
<dtml-if getPrice><dtml-sqlvar getPrice type="float"><dtml-else>NULL</dtml-if>, <dtml-if getPrice><dtml-sqlvar getPrice type="float"><dtml-else>NULL</dtml-if>,
<dtml-if isAccountable><dtml-sqlvar isAccountable type="int"><dtml-else>NULL</dtml-if>, <dtml-if isAccountable><dtml-sqlvar isAccountable type="int"><dtml-else>NULL</dtml-if>,
<dtml-if getPortalType><dtml-sqlvar getPortalType type="string"><dtml-else>NULL</dtml-if>, <dtml-if getPortalType><dtml-sqlvar getPortalType type="string"><dtml-else>NULL</dtml-if>,
......
...@@ -51,7 +51,7 @@ VALUES ...@@ -51,7 +51,7 @@ VALUES
<dtml-sqlvar expr="row_item[4]" type="int" optional>, <dtml-sqlvar expr="row_item[4]" type="int" optional>,
<dtml-sqlvar expr="row_item[5]" type="int">, <dtml-sqlvar expr="row_item[5]" type="int">,
<dtml-sqlvar expr="row_item[6]" type="float" optional>, <dtml-sqlvar expr="row_item[6]" type="float" optional>,
<dtml-sqlvar expr="row_item[7]" type="string" optional> <dtml-sqlvar expr="row_item[7]" type="datetime" optional>
<dtml-sqlvar expr="row_item[8]" type="float" optional> <dtml-sqlvar expr="row_item[8]" type="float" optional>
<dtml-sqlvar expr="row_item[9]" type="int" optional> <dtml-sqlvar expr="row_item[9]" type="int" optional>
<dtml-sqlvar expr="row_item[10]" type="string" optional> <dtml-sqlvar expr="row_item[10]" type="string" optional>
......
...@@ -31,7 +31,7 @@ UPDATE delivery SET ...@@ -31,7 +31,7 @@ UPDATE delivery SET
source_section_uid=<dtml-sqlvar getSourceSectionUid type="int" optional>, source_section_uid=<dtml-sqlvar getSourceSectionUid type="int" optional>,
destination_section_uid=<dtml-sqlvar getDestinationSectionUid type="int" optional>, destination_section_uid=<dtml-sqlvar getDestinationSectionUid type="int" optional>,
resource_uid=<dtml-sqlvar getResourceUid type="int" optional>, resource_uid=<dtml-sqlvar getResourceUid type="int" optional>,
start_date=<dtml-sqlvar getStartDate type="string" optional>, start_date=<dtml-sqlvar getStartDate type="datetime" optional>,
stop_date=<dtml-sqlvar getStopDate type="string" optional> stop_date=<dtml-sqlvar getStopDate type="datetime" optional>
WHERE <dtml-sqltest uid op=eq type=int> WHERE <dtml-sqltest uid op=eq type=int>
</dtml-if> </dtml-if>
...@@ -55,7 +55,7 @@ UPDATE catalog SET uid=<dtml-sqlvar uid type="int">, ...@@ -55,7 +55,7 @@ UPDATE catalog SET uid=<dtml-sqlvar uid type="int">,
relative_url=<dtml-sqlvar getRelativeUrl type="string">, relative_url=<dtml-sqlvar getRelativeUrl type="string">,
parent_uid=<dtml-sqlvar getParentUid type="int" optional>, parent_uid=<dtml-sqlvar getParentUid type="int" optional>,
id=<dtml-sqlvar id type="string" optional>, id=<dtml-sqlvar id type="string" optional>,
CreationDate=<dtml-sqlvar CreationDate type="string" optional>, CreationDate=<dtml-sqlvar CreationDate type="datetime" optional>,
description=<dtml-sqlvar getDescription type="string" optional>, description=<dtml-sqlvar getDescription type="string" optional>,
title=<dtml-sqlvar getTitle type="string" optional>, title=<dtml-sqlvar getTitle type="string" optional>,
meta_type=<dtml-sqlvar meta_type type="string" optional>, meta_type=<dtml-sqlvar meta_type type="string" optional>,
......
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