blob: 29670578a8c96d48af45bf0346f49502bee4ab34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?xml version="1.0" encoding="UTF-8" ?>
<sqlMap namespace="DynamicParameterTestMap">
<select id="SelectStaticSql1" resultClass="string">
<![CDATA[
SELECT `teststring` FROM `dynamicparametertest1` WHERE `testname`="staticsql"
]]>
</select>
<select id="SelectStaticSql2" resultClass="string">
<![CDATA[
SELECT `teststring` FROM `dynamicparametertest2` WHERE `testname`="staticsql"
]]>
</select>
<select id="SelectDynamicTable" parameterClass="string" resultClass="string">
<![CDATA[
SELECT `teststring` FROM `$value$` WHERE `testname`="dynamictable"
]]>
</select>
<select id="SelectDynamicComplex" parameterClass="array" resultClass="string">
<![CDATA[
SELECT CONCAT("##", `teststring`, "$$") FROM `$tablename$` WHERE `testname`=#testname, dbType=varchar#
]]>
</select>
<select id="SelectNoDynamic" parameterClass="string" resultClass="string">
<![CDATA[
SELECT `teststring` FROM `dynamicparametertest1` WHERE `testname`=#value, dbType=varchar#
]]>
</select>
<select id="SelectInlineEscapeParam" parameterClass="string" resultClass="string">
<![CDATA[
SELECT $value$
]]>
</select>
</sqlMap>
|