Update for IN query - fix for when argument is column name.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8809 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-08-18 19:10:26 +00:00
parent bb95345fb2
commit 99b5d718e6
6 changed files with 57 additions and 26 deletions

View file

@ -17,8 +17,12 @@
$this->_value = $argument->getValue();
else if(is_a($this->argument, 'Subquery'))
$this->_value = $argument->toString();
else
else {
if(in_array($operation, array('in', 'not in')))
$this->_value = '('. $argument .')';
else
$this->_value = $argument;
}
}
function hasArgument(){