From: Brion Vibber Date: Tue, 19 Oct 2010 01:16:07 +0000 (-0700) Subject: Fix misnamed unique constraint X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d3f8a880a91c134ae2aefc18efc47923bccf3fd2;p=quix0rs-gnu-social.git Fix misnamed unique constraint --- 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); } /**