mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Add unit tests for if="var" support in XML query
This commit is contained in:
parent
658a28dfd8
commit
ae0e13eca9
3 changed files with 67 additions and 1 deletions
18
tests/_data/dbquery/ifVarTest.xml
Normal file
18
tests/_data/dbquery/ifVarTest.xml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<query id="ifVarTest" action="select">
|
||||
<tables>
|
||||
<table name="documents" if="if_table" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="module_srl" />
|
||||
<column name="document_srl" if="if_column" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="module_srl" var="module_srl" if="if_condition" />
|
||||
</conditions>
|
||||
<navigation>
|
||||
<index var="sort_index" default="list_order" order="desc" if="if_sort_index" />
|
||||
<list_count var="list_count" default="20" if="if_list_count" />
|
||||
<page_count var="page_count" default="10" if="if_page_count" />
|
||||
<page var="page" default="3" if="if_page" />
|
||||
</navigation>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue