- 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:
Roland Häder 2022-06-21 12:43:24 +02:00
parent 0d81a08e3c
commit 945cd1a2c2
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77
2 changed files with 22 additions and 1 deletions

View file

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