mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 12:02:24 +09:00
Db Bug fix - skip condition if value is empty string.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9546 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9890b889ca
commit
82f117e32b
2 changed files with 17 additions and 1 deletions
|
|
@ -57,7 +57,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function toString($value){
|
function toString($value){
|
||||||
if(is_array($value)) return (count($value) !== 0 ? '('.implode(',', $value).')' : '');
|
if(is_array($value)){
|
||||||
|
if(count($value) === 0) return '';
|
||||||
|
if(count($value) === 1 && $value[0] === '') return '';
|
||||||
|
return '('.implode(',', $value).')';
|
||||||
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -358,6 +358,18 @@
|
||||||
$this->_test($xml_file, $argsString, $expected);
|
$this->_test($xml_file, $argsString, $expected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function test_file_getFileList_Not_In_Empty_String_Value(){
|
||||||
|
$xml_file = _XE_PATH_ . "modules/file/queries/getFileList.xml";
|
||||||
|
$argsString = '$args->exclude_module_srl = ""; $args->s_module_srl = array(12); ';
|
||||||
|
$expected = 'select "files".*
|
||||||
|
from "xe_files" as "files"
|
||||||
|
left join "xe_member" as "member" on "files"."member_srl" = "member"."member_srl"
|
||||||
|
where "files"."module_srl" in (12)
|
||||||
|
order by "files"."file_srl" desc
|
||||||
|
limit 0, 20';
|
||||||
|
$this->_test($xml_file, $argsString, $expected);
|
||||||
|
}
|
||||||
|
|
||||||
function test_document_getDeclaredList_In_Query(){
|
function test_document_getDeclaredList_In_Query(){
|
||||||
$xml_file = _XE_PATH_ . "modules/document/queries/getDeclaredList.xml";
|
$xml_file = _XE_PATH_ . "modules/document/queries/getDeclaredList.xml";
|
||||||
$argsString = "\$args->list_count = 30;
|
$argsString = "\$args->list_count = 30;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue