From d3f8a880a91c134ae2aefc18efc47923bccf3fd2 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 18 Oct 2010 18:16:07 -0700 Subject: [PATCH] Fix misnamed unique constraint --- db/core.php | 2 +- lib/schema.php | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/db/core.php b/db/core.php index 32f29c7151..3fcc9b8fa1 100644 --- a/db/core.php +++ b/db/core.php @@ -650,7 +650,7 @@ $schema['user_group'] = array( ), 'primary key' => array('id'), 'unique keys' => array( - 'user_uri_key' => array('uri'), + 'user_group_uri_key' => array('uri'), ), 'foreign keys' => array( 'user_group_design_id_fkey' => array('design', array('design_id' => 'id')), diff --git a/lib/schema.php b/lib/schema.php index 391f0f1fdf..6e9643b677 100644 --- a/lib/schema.php +++ b/lib/schema.php @@ -653,11 +653,7 @@ class Schema function quoteValue($val) { - if (is_int($val) || is_float($val) || is_double($val)) { - return strval($val); - } else { - return '"' . $this->conn->escapeSimple($val) . '"'; - } + return $this->conn->quoteSmart($val); } /**