mirror of
https://github.com/friendica/friendica
synced 2025-04-30 09:44:22 +02:00
Fixed:
- since $table can be now schema.table, this needs being taken care off - maybe this foreach(explode()) is a bit an overkill as only 1 or 2 entries can be found in it
This commit is contained in:
parent
0d81a08e3c
commit
945cd1a2c2
2 changed files with 22 additions and 1 deletions
|
@ -530,7 +530,11 @@ class DBA
|
|||
|
||||
foreach ($tables as $schema => $table) {
|
||||
if (is_numeric($schema)) {
|
||||
$quotedTables[] = self::quoteIdentifier($table);
|
||||
$str = '';
|
||||
foreach (explode('.', $table) as $part) {
|
||||
$str .= self::quoteIdentifier($part) . '.';
|
||||
}
|
||||
$quotedTables[] = rtrim($str, '.');
|
||||
} else {
|
||||
$quotedTables[] = self::quoteIdentifier($schema) . '.' . self::quoteIdentifier($table);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue