diff options
author | Taufan Aditya <toopay@taufanaditya.com> | 2012-03-17 19:00:36 +0100 |
---|---|---|
committer | Taufan Aditya <toopay@taufanaditya.com> | 2012-03-17 19:00:36 +0100 |
commit | 4a80154b0bb28df04d407d3d3d83e112808b25d4 (patch) | |
tree | 0b72ffb9507ae9b1e8655024d4ce9c9d5a67b26d /system/database/drivers | |
parent | 865ce1e3a2466259996e52d764650e2144ae10c9 (diff) |
Remove type casting
Diffstat (limited to 'system/database/drivers')
-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 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'])); } |