#BUGFIX: Ticket 7533 fixed a bug which I found whilst testing this and amended the README.md

This commit is contained in:
Kirk Mayo 2012-06-22 16:07:12 +12:00 committed by Ingo Schommer
parent 29512e54b7
commit 501c158f7f
2 changed files with 3 additions and 1 deletions

View File

@ -953,6 +953,8 @@ class PostgreSQLDatabase extends SS_Database {
$indexSpec=trim($indexSpec, '()');
$bits=explode(',', $indexSpec);
$indexes="\"" . implode("\",\"", $bits) . "\"";
// if some of the indexes have already been quoted then we need to remove the suplus double quotes
$indexes = str_replace('""', '"', $indexes);
//One last check:
$existing=DB::query("SELECT tablename FROM pg_indexes WHERE indexname='" . strtolower($tableCol) . "';")->first();

View File

@ -1,6 +1,6 @@
# PostgreSQL Database Module
SilverStripe now has tentative support for PostgreSQL ('Postgres'). This available though a module which you can use after completing a successful MySQL installation.
SilverStripe now has tentative support for PostgreSQL ('Postgres') which is available though this module
## Requirements