Fix sql tests?

This commit is contained in:
Timothy Warren 2013-05-02 11:59:43 -04:00
parent 40c76b2653
commit c4ec46eae4
3 changed files with 6 additions and 4 deletions

View File

@ -1039,9 +1039,11 @@ class Query_Builder implements iQuery_Builder {
// Can't use normal set, because it doesn't handle multidimensional arrays
foreach($data as $key => $arr)
{
$this->set_array_keys[$key] = array();
foreach($arr as $k => $v)
{
$this->set_array_keys[$key][] = $k;
array_push($this->set_array_keys[$key], $k);
$this->values[] = $v;
}

View File

@ -465,17 +465,17 @@ abstract class QBTest extends UnitTestCase {
$insert_array = array(
array(
'id' => 6,
'id' => 11,
'key' => 2,
'val' => 3
),
array(
'id' => 5,
'id' => 12,
'key' => 6,
'val' => 7
),
array(
'id' => 8,
'id' => 13,
'key' => 1,
'val' => 2
)

Binary file not shown.