summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-07-05 14:35:13 +0200
committerAndrey Andreev <narf@devilix.net>2014-07-05 14:35:13 +0200
commita28d9bc9c429c2133447d4f088e336a16f26f507 (patch)
treea6e5f66c98550abc33efcea3af5441521dd9a4a7 /system/database
parentab9971f112c1394db0d0fc963d860479d3ec408b (diff)
parent5df2f1b741cc03477c279ef01be6c564e6076c0e (diff)
Merge pull request #3130 from dionysiosarvanitis/fix/pdo_result__list_fields
Missing looping index added.
Diffstat (limited to 'system/database')
-rw-r--r--system/database/drivers/pdo/pdo_result.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/pdo/pdo_result.php b/system/database/drivers/pdo/pdo_result.php
index 1b8fbc9d4..3f3af2e19 100644
--- a/system/database/drivers/pdo/pdo_result.php
+++ b/system/database/drivers/pdo/pdo_result.php
@@ -93,7 +93,7 @@ class CI_DB_pdo_result extends CI_DB_result {
{
// Might trigger an E_WARNING due to not all subdrivers
// supporting getColumnMeta()
- $field_names[$i] = @$this->result_id->getColumnMeta();
+ $field_names[$i] = @$this->result_id->getColumnMeta($i);
$field_names[$i] = $field_names[$i]['name'];
}