FIX issue #9300: install error with PostgreSQL when using custom table prefix

This commit is contained in:
Florian Mortgat
2019-07-30 14:09:03 +02:00
parent fe9ddd7649
commit de293c4ef2

View File

@@ -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');