mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
#BUGFIX: Ticket 7533 fixed a bug which I found whilst testing this and amended the README.md
This commit is contained in:
parent
29512e54b7
commit
501c158f7f
@ -953,6 +953,8 @@ class PostgreSQLDatabase extends SS_Database {
|
|||||||
$indexSpec=trim($indexSpec, '()');
|
$indexSpec=trim($indexSpec, '()');
|
||||||
$bits=explode(',', $indexSpec);
|
$bits=explode(',', $indexSpec);
|
||||||
$indexes="\"" . implode("\",\"", $bits) . "\"";
|
$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:
|
//One last check:
|
||||||
$existing=DB::query("SELECT tablename FROM pg_indexes WHERE indexname='" . strtolower($tableCol) . "';")->first();
|
$existing=DB::query("SELECT tablename FROM pg_indexes WHERE indexname='" . strtolower($tableCol) . "';")->first();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# PostgreSQL Database Module
|
# 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
|
## Requirements
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user