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:
ucorina 2011-10-13 14:43:23 +00:00
parent 9f9c6dd9be
commit bddb968dbf
5 changed files with 59 additions and 16 deletions

View file

@ -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);
}
}