summaryrefslogtreecommitdiffstats
path: root/system/database/DB_utility.php
diff options
context:
space:
mode:
authorTaufan Aditya <toopay@taufanaditya.com>2012-05-25 02:03:04 +0200
committerTaufan Aditya <toopay@taufanaditya.com>2012-05-25 02:03:04 +0200
commit64ccbd75b6725abc4770e0911a2af0f8d5bf7e6d (patch)
treeaab3d8c90b9d8ec858ad457d54c96e3b59e3a69b /system/database/DB_utility.php
parent502942bd94fef292970df331b15652ef6e1385e7 (diff)
parentf33e2ff30b0a9c54d6e8adbe88662838b9bd525e (diff)
Explicitely testing escape_like_str API
Diffstat (limited to 'system/database/DB_utility.php')
-rw-r--r--system/database/DB_utility.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/database/DB_utility.php b/system/database/DB_utility.php
index 587dfdc01..cb97ff448 100644
--- a/system/database/DB_utility.php
+++ b/system/database/DB_utility.php
@@ -212,7 +212,7 @@ abstract class CI_DB_utility extends CI_DB_forge {
$out = rtrim($out).$newline;
// Next blast through the result array and build out the rows
- foreach ($query->result_array() as $row)
+ while ($row = $query->unbuffered_row('array'))
{
foreach ($row as $item)
{
@@ -258,7 +258,7 @@ abstract class CI_DB_utility extends CI_DB_forge {
// Generate the result
$xml = '<'.$root.'>'.$newline;
- foreach ($query->result_array() as $row)
+ while ($row = $query->unbuffered_row())
{
$xml .= $tab.'<'.$element.'>'.$newline;
foreach ($row as $key => $val)