diff --git a/lib/schema.php b/lib/schema.php index 6c6a3e56f0..4eafb4df24 100644 --- a/lib/schema.php +++ b/lib/schema.php @@ -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) . '"'; + } } /**