diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-23 05:07:18 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-23 05:07:18 +0000 |
commit | 6192e19f60cd6e0a7f4c5841271ca9caf5eeafa4 (patch) | |
tree | 88f2bd86af7aafd6c36b869c7894f37ea1f4e314 /includes/database/pgsql/schema.inc | |
parent | fa02c4f4e931ba3fda37835971a8a0fd6de0365c (diff) | |
download | brdo-6192e19f60cd6e0a7f4c5841271ca9caf5eeafa4.tar.gz brdo-6192e19f60cd6e0a7f4c5841271ca9caf5eeafa4.tar.bz2 |
#720620 by andypost: Fixed indexExists() for pgsql and sqlite does not prefix tablename.
Diffstat (limited to 'includes/database/pgsql/schema.inc')
-rw-r--r-- | includes/database/pgsql/schema.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/database/pgsql/schema.inc b/includes/database/pgsql/schema.inc index 53392c170..f36ae2c32 100644 --- a/includes/database/pgsql/schema.inc +++ b/includes/database/pgsql/schema.inc @@ -378,7 +378,7 @@ class DatabaseSchema_pgsql extends DatabaseSchema { } public function indexExists($table, $name) { - $index_name = $table . '_' . $name . '_idx'; + $index_name = '{' . $table . '}_' . $name . '_idx'; return $this->connection->query("SELECT COUNT(indexname) FROM pg_indexes WHERE indexname = '$index_name'")->fetchField(); } |