mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-09-29 12:48:58 +02: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);
|
$starttime = microtime(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sql = str_replace("\\", "_", $sql);
|
||||||
$handle = pg_query($this->dbConn, $sql);
|
$handle = pg_query($this->dbConn, $sql);
|
||||||
|
|
||||||
if(isset($_REQUEST['showqueries'])) {
|
if(isset($_REQUEST['showqueries'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user