mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
Added index hints for SQL Server. Improvements to existing query hints for Mysql and Cubrid.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9481 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
eaa1a02adc
commit
3815aece09
19 changed files with 320 additions and 6 deletions
|
|
@ -34,5 +34,25 @@
|
|||
$this->_test($xml_file, $argsString, $expected);
|
||||
}
|
||||
|
||||
function testThreeIndexHintsAndTwoTables_ForceAndIgnore(){
|
||||
$xml_file = $this->xmlPath . "three_index_hints_two_tables_combined.xml";
|
||||
$argsString = '';
|
||||
$expected = 'select * from `xe_member` as `member` force index (`idx_member_list_order`, `idx_member_srl`)
|
||||
, `xe_document` as `document` ignore index (`idx_document_srl`)';
|
||||
$this->_test($xml_file, $argsString, $expected);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests that index is added if "for" attribute is "ALL"
|
||||
*
|
||||
* example: <index_hint for="ALL"> ... </index_hint>
|
||||
*/
|
||||
function testIndexHintForAll(){
|
||||
$xml_file = $this->xmlPath . "index_hint_for_all.xml";
|
||||
$argsString = '';
|
||||
$expected = 'select * from `xe_member` as `member` use index (`idx_member_list_order`)';
|
||||
$this->_test($xml_file, $argsString, $expected);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue