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@1118 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
77a0d87dfc
commit
428e44d492
4 changed files with 7 additions and 11 deletions
|
|
@ -357,9 +357,7 @@
|
|||
if($this->getColumnType($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;
|
||||
|
||||
if(strpos($name,'.')===false) $column_list[] = '"'.$name.'"';
|
||||
else $column_list[] = $name;
|
||||
|
|
@ -387,7 +385,7 @@
|
|||
|
||||
$value = $val['value'];
|
||||
if($this->getColumnType($output->column_type,$name)!='number') $value = "'".$this->addQuotes($value)."'";
|
||||
else $value = (int)$value;
|
||||
elseif(!$value || is_numeric($value)) $value = (int)$value;
|
||||
|
||||
if(strpos($name,'.')===false) $name = '"'.$name.'"';
|
||||
$column_list[] = sprintf('%s = %s', $name, $value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue