mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 12:49:55 +09:00
merge 1.4.5.7
git-svn-id: http://xe-core.googlecode.com/svn/trunk@8398 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e6e93c40a9
commit
92332c8ebb
12 changed files with 286 additions and 270 deletions
|
|
@ -581,8 +581,10 @@ class DBPostgresql extends DB
|
|||
$value = "'" . $this->addQuotes($value) . "'";
|
||||
if (!$value)
|
||||
$value = 'null';
|
||||
} elseif (!$value || is_numeric($value))
|
||||
$value = (int)$value;
|
||||
}
|
||||
// sql injection 문제로 xml 선언이 number인 경우이면서 넘어온 값이 숫자형이 아니면 숫자형으로 강제 형변환
|
||||
// elseif (!$value || is_numeric($value)) $value = (int)$value;
|
||||
else $this->_filterNumber(&$value);
|
||||
|
||||
$column_list[] = $name;
|
||||
$value_list[] = $value;
|
||||
|
|
@ -615,8 +617,8 @@ class DBPostgresql extends DB
|
|||
else {
|
||||
if ($output->column_type[$name] != 'number')
|
||||
$value = "'" . $this->addQuotes($value) . "'";
|
||||
elseif (!$value || is_numeric($value))
|
||||
$value = (int)$value;
|
||||
// sql injection 문제로 xml 선언이 number인 경우이면서 넘어온 값이 숫자형이 아니면 숫자형으로 강제 형변환
|
||||
else $this->_filterNumber(&$value);
|
||||
|
||||
$column_list[] = sprintf("%s = %s", $name, $value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue