From 9cb42c8e45b9adf33872a7c5b116795c768b3b49 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 11 Oct 2010 19:17:21 -0700 Subject: [PATCH] tweak for strings --- lib/schema.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) . '"'; + } } /**