mirror of
https://github.com/dg/dibi.git
synced 2025-08-09 23:56:58 +02:00
- last rev fix
This commit is contained in:
@@ -238,10 +238,10 @@ final class DibiTranslator extends DibiObject
|
|||||||
|
|
||||||
case 'n': // key, key, ... identifier names
|
case 'n': // key, key, ... identifier names
|
||||||
foreach ($value as $k => $v) {
|
foreach ($value as $k => $v) {
|
||||||
$pair = explode('%', $k, 2); // split into identifier & modifier
|
|
||||||
if (is_string($k)) {
|
if (is_string($k)) {
|
||||||
$vx[] = $this->delimite($pair[0]) . (empty($v) ? '' : ' AS ' . $v);
|
$vx[] = $this->delimite($k) . (empty($v) ? '' : ' AS ' . $v);
|
||||||
} else {
|
} else {
|
||||||
|
$pair = explode('%', $v, 2); // split into identifier & modifier
|
||||||
$vx[] = $this->delimite($pair[0]);
|
$vx[] = $this->delimite($pair[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user