BUG: BUG Fix PostgreSQL error when creating a table for namespaced data object

This issue is caused by the presence of backslash characters (PHP namespace delimiter) in entity names.
This commit is contained in:
Saophalkun Ponlu 2012-07-18 19:32:49 +12:00
parent 0ffaf3d055
commit fe85c32d5b
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);
}