mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 16:59:55 +09:00
Issue 483: 'Invalid query' problem when use resource.updateItem(Package)DownloadedCount
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9642 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9f9c6dd9be
commit
bddb968dbf
5 changed files with 59 additions and 16 deletions
|
|
@ -30,5 +30,17 @@
|
|||
$this->_test($xml_file, $argsString, $expected);
|
||||
}
|
||||
|
||||
function test_document_updateItemDownloadedCount(){
|
||||
$xml_file = _TEST_PATH_ . "db/xml_query/mysql/data/document.updateItemDownloadedCount.xml";
|
||||
$argsString = '$args->module_srl = 10; $args->package_srl = 11; $args->item_srl = 12;';
|
||||
$expected = 'update `xe_resource_items` as `resource_items`
|
||||
set `downloaded` = `downloaded` + 1
|
||||
where `module_srl` = 10
|
||||
and `package_srl` = 11
|
||||
and `item_srl` = 12
|
||||
';
|
||||
$this->_test($xml_file, $argsString, $expected);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue