mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-18 10:49:54 +09:00
Update for IN query - fix for when argument is column name.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8809 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bb95345fb2
commit
99b5d718e6
6 changed files with 57 additions and 26 deletions
|
|
@ -342,4 +342,19 @@
|
|||
$this->_test($xml_file, $argsString, $expected);
|
||||
}
|
||||
|
||||
function test_document_getDeclaredList_In_Query(){
|
||||
$xml_file = _XE_PATH_ . "modules/document/queries/getDeclaredList.xml";
|
||||
$argsString = "\$args->list_count = 30;
|
||||
\$args->page_count = 10;
|
||||
\$args->sort_index = 'document_declared.declared_count';
|
||||
\$args->order_type = 'desc';";
|
||||
$expected = 'select * from "xe_documents" as "documents"
|
||||
, "xe_document_declared" as "document_declared"
|
||||
where "documents"."document_srl"
|
||||
in ("document_declared"."document_srl")
|
||||
order by "document_declared"."declared_count" desc
|
||||
limit 0, 30';
|
||||
$this->_test($xml_file, $argsString, $expected);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue