diff options
author | Andrey Andreev <narf@devilix.net> | 2014-05-09 09:24:14 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-05-09 09:24:14 +0200 |
commit | 2bbbd1a13ead097fd3f4b00bfb275f0b0f836f93 (patch) | |
tree | 9a1615f486dac1502c024d8fcd57e066a875b4a2 /system/database/drivers/pdo/pdo_result.php | |
parent | 81b6efa76b90e28c87d1efad50dc13c2ac462ca8 (diff) |
Remove (most of) error suppression from database drivers (issue #3036)
Diffstat (limited to 'system/database/drivers/pdo/pdo_result.php')
-rw-r--r-- | system/database/drivers/pdo/pdo_result.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/system/database/drivers/pdo/pdo_result.php b/system/database/drivers/pdo/pdo_result.php index 904bdd5b3..1b8fbc9d4 100644 --- a/system/database/drivers/pdo/pdo_result.php +++ b/system/database/drivers/pdo/pdo_result.php @@ -91,6 +91,8 @@ class CI_DB_pdo_result extends CI_DB_result { $field_names = array(); for ($i = 0, $c = $this->num_fields(); $i < $c; $i++) { + // Might trigger an E_WARNING due to not all subdrivers + // supporting getColumnMeta() $field_names[$i] = @$this->result_id->getColumnMeta(); $field_names[$i] = $field_names[$i]['name']; } |