]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix misnamed unique constraint
authorBrion Vibber <brion@pobox.com>
Tue, 19 Oct 2010 01:16:07 +0000 (18:16 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 19 Oct 2010 01:16:07 +0000 (18:16 -0700)
db/core.php
lib/schema.php

index 32f29c7151fddafcb0308c81c2a3ec03b869defa..3fcc9b8fa1f512dff5180bcd7dca1b1ba2eb1e99 100644 (file)
@@ -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')),
index 391f0f1fdf3c44fc792f75b1b57877b5b0e04128..6e9643b6773f2b68d96416c84b2885791b329650 100644 (file)
@@ -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);
     }
 
     /**