mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
FIX issue #9300: install error with PostgreSQL when using custom table prefix
This commit is contained in:
@@ -451,6 +451,11 @@ if ($action == "set")
|
||||
$buffer=trim($buffer);
|
||||
if ($buffer)
|
||||
{
|
||||
// Replace the prefix in table names
|
||||
if ($dolibarr_main_db_prefix != 'llx_')
|
||||
{
|
||||
$buffer=preg_replace('/llx_/i',$dolibarr_main_db_prefix,$buffer);
|
||||
}
|
||||
dolibarr_install_syslog("step2: request: " . $buffer);
|
||||
print "<!-- Insert line : ".$buffer."<br>-->\n";
|
||||
$resql=$db->query($buffer,0,'dml');
|
||||
|
||||
Reference in New Issue
Block a user