mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
parent
0c6bc8fbb1
commit
03e5909036
6 changed files with 81 additions and 4 deletions
17
tests/_data/dbquery/indexHintTest1.xml
Normal file
17
tests/_data/dbquery/indexHintTest1.xml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<query id="indexHintTest1" action="select">
|
||||
<tables>
|
||||
<table name="documents" />
|
||||
</tables>
|
||||
<index_hint for="MYSQL">
|
||||
<index name="idx_module_srl" type="USE" />
|
||||
</index_hint>
|
||||
<conditions>
|
||||
<condition operation="equal" column="module_srl" var="module_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
<navigation>
|
||||
<index var="sort_index" default="list_order" order="desc" />
|
||||
<list_count var="list_count" default="20" />
|
||||
<page_count var="page_count" default="10" />
|
||||
<page var="page" default="1" />
|
||||
</navigation>
|
||||
</query>
|
||||
18
tests/_data/dbquery/indexHintTest2.xml
Normal file
18
tests/_data/dbquery/indexHintTest2.xml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<query id="indexHintTest2" action="select">
|
||||
<tables>
|
||||
<table name="documents" />
|
||||
</tables>
|
||||
<index_hint for="ALL">
|
||||
<index var="index_hint1" type="FORCE" />
|
||||
<index var="index_hint2" default="idx_module_list_order" type="USE" />
|
||||
</index_hint>
|
||||
<conditions>
|
||||
<condition operation="equal" column="module_srl" var="module_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
<navigation>
|
||||
<index var="sort_index" default="list_order" order="desc" />
|
||||
<list_count var="list_count" default="20" />
|
||||
<page_count var="page_count" default="10" />
|
||||
<page var="page" default="1" />
|
||||
</navigation>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue