summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-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 6bc923e38..1c72216b1 100644
--- a/system/database/drivers/pdo/pdo_result.php
+++ b/system/database/drivers/pdo/pdo_result.php
@@ -196,7 +196,7 @@ class CI_DB_pdo_result extends CI_DB_result {
}
else
{
- $F->max_length = ($field['len'] > 255) ? NULL : (string) $field['len'];
+ $F->max_length = ($field['len'] > 255) ? 0 : $field['len'];
$F->primary_key = (int) ( ! empty($field['flags']) && in_array('primary_key', $field['flags']));
}