summaryrefslogtreecommitdiff
path: root/lib/schema.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/schema.php')
-rw-r--r--lib/schema.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/schema.php b/lib/schema.php
index 6c6a3e56f..4eafb4df2 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) . '"';
+ }
}
/**