Issue 364 - Query error related escape characters.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9494 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-10-05 08:41:30 +00:00
parent f0a9bfa02f
commit 0016c7963a
3 changed files with 21 additions and 13 deletions

View file

@ -162,12 +162,10 @@
$expected = 'select count(*) as [count]
from [xe_module_grants] as [module_grants]
where [module_srl] = ?
and [name] in (?,?,?)
and (
[group_srl] >= ?
or [group_srl] = ?
or [group_srl] = ?
)';
$this->_test($xml_file, $argsString, $expected, array(67, array('\'access\'', '\'view\'', '\'list\''), 1, -1, -2));
and [name] in (\'access\',\'view\',\'list\')
and ([group_srl] >= 1
or [group_srl] = -1
or [group_srl] = -2)';
$this->_test($xml_file, $argsString, $expected, array(67));
}
}