Merge pull request #5 from phalkunz/master

BUG: Fix PostgreSQL error when creating a table for namespaced data object
This commit is contained in:
Hamish Friedlander 2012-08-09 18:43:35 -07:00
commit 5ba1b80391
1 changed files with 1 additions and 1 deletions

View File

@ -947,7 +947,7 @@ class PostgreSQLDatabase extends SS_Database {
if(!$asDbValue){
$tableCol= 'ix_' . $tableName . '_' . $indexName;
$tableCol= 'ix_' . str_replace("\\", "_", $tableName) . '_' . $indexName;
if(strlen($tableCol)>64){
$tableCol=substr($indexName, 0, 59) . rand(1000, 9999);
}