mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
Issue 388 - Query cache error related table alias
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9544 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
92a49aa179
commit
308d1606a7
8 changed files with 94 additions and 14 deletions
|
|
@ -12,9 +12,23 @@
|
|||
$argsString = '$args->is_secret = \'Y\';
|
||||
$args->status = \'SECRET\';
|
||||
';
|
||||
$expected = 'update `xe_documents` set `status` = \'secret\' where `is_secret` = \'y\'';
|
||||
$expected = 'update `xe_documents` as `documents` set `status` = \'secret\' where `is_secret` = \'y\'';
|
||||
$this->_test($xml_file, $argsString, $expected);
|
||||
}
|
||||
|
||||
/**
|
||||
* Issue 388 - Query cache error related table alias
|
||||
* http://code.google.com/p/xe-core/issues/detail?id=388
|
||||
*/
|
||||
function test_importer_updateDocumentSync(){
|
||||
$xml_file = _TEST_PATH_ . "db/xml_query/mysql/data/importer.updateDocumentSync.xml";
|
||||
$argsString = '';
|
||||
$expected = 'UPDATE `xe_documents` as `documents`, `xe_member` as `member`
|
||||
SET `documents`.`member_srl` = `member`.`member_srl`
|
||||
WHERE `documents`.`user_id` = `member`.`user_id`
|
||||
';
|
||||
$this->_test($xml_file, $argsString, $expected);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue