tweak for strings

This commit is contained in:
Brion Vibber 2010-10-11 19:17:21 -07:00
parent 7723d15cd0
commit 9cb42c8e45

View File

@ -600,7 +600,11 @@ class Schema
function quoteValue($val)
{
return $this->conn->escapeSimple($val); // ??
if (is_int($val) || is_float($val) || is_double($val)) {
return strval($val);
} else {
return '"' . $this->conn->escapeSimple($val) . '"';
}
}
/**