diff options
author | Andrey Andreev <narf@devilix.net> | 2019-07-15 22:08:59 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2019-07-15 22:08:59 +0200 |
commit | a8b0bda83857784b203954ef366a76c3a50569b6 (patch) | |
tree | 7242da3b1019c75e9f9615aae9a2e17a56381c68 /system | |
parent | a084c7e8f79f8b2c99b52360473750e914f1ae0e (diff) |
[ci skip] Fix #5788
Diffstat (limited to 'system')
-rw-r--r-- | system/database/drivers/pdo/pdo_result.php | 2 |
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 03c0f9f9d..b3973da46 100644 --- a/system/database/drivers/pdo/pdo_result.php +++ b/system/database/drivers/pdo/pdo_result.php @@ -133,7 +133,7 @@ class CI_DB_pdo_result extends CI_DB_result { $retval[$i] = new stdClass(); $retval[$i]->name = $field['name']; - $retval[$i]->type = $field['native_type']; + $retval[$i]->type = isset($field['native_type']) ? $field['native_type'] : null; $retval[$i]->max_length = ($field['len'] > 0) ? $field['len'] : NULL; $retval[$i]->primary_key = (int) ( ! empty($field['flags']) && in_array('primary_key', $field['flags'], TRUE)); } |