Fix sql tests?
This commit is contained in:
parent
40c76b2653
commit
c4ec46eae4
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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.
Loading…
Reference in New Issue
Block a user