1
0
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:
David Grudl
2009-08-13 12:33:28 +00:00
parent eeba6cfc91
commit 208a579d6f

View File

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