summaryrefslogtreecommitdiff
path: root/tests/simple_unit/SqlMap/maps
diff options
context:
space:
mode:
authorwei <>2007-02-02 05:29:00 +0000
committerwei <>2007-02-02 05:29:00 +0000
commitebe35517b35dc87eaec1333263cb78e9bd4ef2e1 (patch)
tree922abab3dd85415624269640cc600c487b338186 /tests/simple_unit/SqlMap/maps
parent72ead8d5896b9a24df4841f9c31cff1dc2fcd878 (diff)
add unit test for sqlmap statement extends
Diffstat (limited to 'tests/simple_unit/SqlMap/maps')
-rw-r--r--tests/simple_unit/SqlMap/maps/tests.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/simple_unit/SqlMap/maps/tests.xml b/tests/simple_unit/SqlMap/maps/tests.xml
new file mode 100644
index 00000000..5e93cae4
--- /dev/null
+++ b/tests/simple_unit/SqlMap/maps/tests.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<sqlmap>
+
+<statement id="test" parameterClass="array" >
+ <![CDATA[
+ SELECT a.*, b.*
+ FROM img_request a
+ left join hello_mst b on a.img_pat_id=b.pat_id
+ WHERE (img_requested_ap_dt >= #fromdt# and img_requested_ap_dt <= #todt#)
+ ]]>
+</statement>
+
+<select id="GetAllProgress" parameterClass="array" extends="test">
+ <![CDATA[
+ AND img_progress =#status#
+ ]]>
+</select>
+
+</sqlmap> \ No newline at end of file