mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 15:05:45 +00:00
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:
parent
bb07e6cfd5
commit
eeaa32a148
@ -234,6 +234,7 @@ class PostgreSQLDatabase extends SS_Database {
|
||||
$starttime = microtime(true);
|
||||
}
|
||||
|
||||
$sql = str_replace("\\", "_", $sql);
|
||||
$handle = pg_query($this->dbConn, $sql);
|
||||
|
||||
if(isset($_REQUEST['showqueries'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user