Fix for xml condition tag - when no "var" attribute existed, functions were not evaluated (e.g. "curdate").

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9785 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-11-01 13:56:24 +00:00
parent ef059ba669
commit 3928e8ec37
2 changed files with 30 additions and 11 deletions

View file

@ -385,4 +385,13 @@
$this->_test($xml_file, $argsString, $expected);
}
function test_getExpiredSession_curdate(){
$xml_file = _XE_PATH_ . "modules/session/queries/getExpiredSessions.xml";
$argsString = '';
$expected = 'select "session_key"
from "xe_session" as "session"
where "expired" <= ' . date("YmdHis");
$this->_test($xml_file, $argsString, $expected);
}
}