Merge pull request #5 from phalkunz/master
BUG: Fix PostgreSQL error when creating a table for namespaced data object
This commit is contained in:
commit
5ba1b80391
|
@ -947,7 +947,7 @@ class PostgreSQLDatabase extends SS_Database {
|
||||||
|
|
||||||
if(!$asDbValue){
|
if(!$asDbValue){
|
||||||
|
|
||||||
$tableCol= 'ix_' . $tableName . '_' . $indexName;
|
$tableCol= 'ix_' . str_replace("\\", "_", $tableName) . '_' . $indexName;
|
||||||
if(strlen($tableCol)>64){
|
if(strlen($tableCol)>64){
|
||||||
$tableCol=substr($indexName, 0, 59) . rand(1000, 9999);
|
$tableCol=substr($indexName, 0, 59) . rand(1000, 9999);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue