Issue 2758: Issue with NULL value on CUBRID when using prepared statements

git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@12415 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2012-12-17 12:30:39 +00:00
parent 7e73b1b250
commit 9d9914ff3b

View file

@ -97,6 +97,7 @@ class Argument {
}
function getUnescapedValue() {
if($this->value === 'null') return null;
return $this->value;
}
@ -200,8 +201,10 @@ class Argument {
function isColumnName(){
$type = $this->getType();
$value = $this->getUnescapedValue();
if($type == 'column_name') return true;
if($type == 'number' && !is_numeric($this->value) && $this->uses_default_value) return true;
if($type == 'number' && is_null($value)) return false;
if($type == 'number' && !is_numeric($value) && $this->uses_default_value) return true;
return false;
}