summaryrefslogtreecommitdiff
path: root/lib/schema.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-10-11 19:17:21 -0700
committerBrion Vibber <brion@pobox.com>2010-10-11 19:17:21 -0700
commit9cb42c8e45b9adf33872a7c5b116795c768b3b49 (patch)
tree66ff7ded5c802568b854054df67f308317734a2e /lib/schema.php
parent7723d15cd0a8dd0526c1ddf4b8b34a0891f04ff1 (diff)
tweak for strings
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) . '"';
+ }
}
/**