Update to Kirby 3.7.5

This commit is contained in:
Nico Hoffmann
2022-08-30 20:43:20 +02:00
parent d89a0a647c
commit 26541380c4
45 changed files with 191 additions and 199 deletions

View File

@@ -672,7 +672,6 @@ abstract class Sql
// array of columns
if (is_array($columns) === true) {
// validate columns
$result = [];
@@ -704,16 +703,16 @@ abstract class Sql
$parts = preg_split('/(?:`[^`]*`|"[^"]*")(*SKIP)(*F)|\./', $identifier);
switch (count($parts)) {
// non-qualified identifier
case 1:
// non-qualified identifier
return [$table, $this->unquoteIdentifier($parts[0])];
// qualified identifier
case 2:
// qualified identifier
return [$this->unquoteIdentifier($parts[0]), $this->unquoteIdentifier($parts[1])];
// every other number is an error
default:
// every other number is an error
throw new InvalidArgumentException('Invalid identifier ' . $identifier);
}
}