Commit dd4e53e6 by Qiang Xue

Merge pull request #2090 from lucianobaraglia/2087-pgsql-schema-quoted-indexes

Fix for #2087
parents 4b7c879c 13aa88bc
...@@ -283,7 +283,7 @@ SQL; ...@@ -283,7 +283,7 @@ SQL;
// Index is an expression like "lower(colname::text)" // Index is an expression like "lower(colname::text)"
$indexColumns = preg_replace("/.*\(([^\:]+).*/mi", "$1", $index['indexcolumns']); $indexColumns = preg_replace("/.*\(([^\:]+).*/mi", "$1", $index['indexcolumns']);
} else { } else {
$indexColumns = array_map('trim', explode(',', str_replace(['{', '}'], '', $index['indexcolumns']))); $indexColumns = array_map('trim', explode(',', str_replace(['{', '}', '"', '\\'], '', $index['indexcolumns'])));
} }
$uniqueIndexes[$indexName] = $indexColumns; $uniqueIndexes[$indexName] = $indexColumns;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment