mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1120 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c2497596a1
commit
6d6d6c5b8b
5 changed files with 24 additions and 19 deletions
|
|
@ -297,7 +297,8 @@
|
|||
$type = $output->column_type[$name];
|
||||
$pipe = $v['pipe'];
|
||||
|
||||
if(strpos($value,'.')===false) $value = $this->getConditionValue($name, $value, $operation, $type);
|
||||
$value = $this->getConditionValue($name, $value, $operation, $type);
|
||||
if(!$value) $value = $v['value'];
|
||||
$str = $this->getConditionPart($name, $value, $operation);
|
||||
if($sub_condition) $sub_condition .= ' '.$pipe.' ';
|
||||
$sub_condition .= $str;
|
||||
|
|
@ -328,9 +329,7 @@
|
|||
if($output->column_type[$name]!='number') {
|
||||
$value = "'".$this->addQuotes($value)."'";
|
||||
if(!$value) $value = 'null';
|
||||
} else {
|
||||
if(!$value) $value = 0;
|
||||
}
|
||||
} elseif(!$value || is_numeric($value)) $value = (int)$value;
|
||||
|
||||
$column_list[] = '`'.$name.'`';
|
||||
$value_list[] = $value;
|
||||
|
|
@ -355,7 +354,7 @@
|
|||
$name = $val['name'];
|
||||
$value = $val['value'];
|
||||
if($output->column_type[$name]!='number') $value = "'".$this->addQuotes($value)."'";
|
||||
else $value = (int)$value;
|
||||
elseif(!$value || is_numeric($value)) $value = (int)$value;
|
||||
|
||||
$column_list[] = sprintf("`%s` = %s", $name, $value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue