mirror of
https://github.com/dg/dibi.git
synced 2025-08-29 08:49:50 +02:00
- BC change: DibiResult::fetchAll() returns always multidimensional arrays (for single columns use fetchPairs() instead)
- added DibiTable::insertOrUpdate() - new modifier %by
This commit is contained in:
@@ -64,3 +64,15 @@ SELECT *
|
||||
FROM [people]
|
||||
WHERE [id] IN (", $array, ")
|
||||
");
|
||||
|
||||
|
||||
// ORDER BY array
|
||||
$order = array(
|
||||
'field1' => 'asc',
|
||||
'field2' => 'desc',
|
||||
);
|
||||
dibi::test("
|
||||
SELECT *
|
||||
FROM [people]
|
||||
ORDER BY %by", $order, "
|
||||
");
|
||||
|
Reference in New Issue
Block a user