Diff for Metafox/lib/DB/common.php between version 1.4 and 1.5
| version 1.4, 2017/06/09 15:05:06 |
version 1.5, 2024/11/20 15:48:03 |
| Line 262 class DB_common extends PEAR |
|
| Line 262 class DB_common extends PEAR |
|
| function quoteString($string) |
function quoteString($string) |
| { |
{ |
| $string = $this->quoteSmart($string); |
$string = $this->quoteSmart($string); |
| if ($string{0} == "'") { |
if ($string[0] == "'") { |
| return substr($string, 1, -1); |
return substr($string, 1, -1); |
| } |
} |
| return $string; |
return $string; |
| Line 471 class DB_common extends PEAR |
|
| Line 471 class DB_common extends PEAR |
|
| function quoteBoolean($boolean) { |
function quoteBoolean($boolean) { |
| return $boolean ? '1' : '0'; |
return $boolean ? '1' : '0'; |
| } |
} |
| |
|
| // }}} |
// }}} |
| // {{{ quoteFloat() |
// {{{ quoteFloat() |
| |
|
| Line 487 class DB_common extends PEAR |
|
| Line 487 class DB_common extends PEAR |
|
| function quoteFloat($float) { |
function quoteFloat($float) { |
| return "'".$this->escapeSimple(str_replace(',', '.', strval(floatval($float))))."'"; |
return "'".$this->escapeSimple(str_replace(',', '.', strval(floatval($float))))."'"; |
| } |
} |
| |
|
| // }}} |
// }}} |
| // {{{ escapeSimple() |
// {{{ escapeSimple() |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|