Welcome Guest, Not a member yet? Register   Sign In
Is there a bug in field_data() and max_length for string types?

The max_length apparently maxes out at 7 for string fields.
$query = $this->db->query(...);
$fields = $query->field_data();
The string fields max_length items are correct if they are declared in my database as char(x) where x is less than 7, but incorrect if over seven. I haven't tried this with varchars.

I'm using version 1.6.1 and MySQL.

it seems to me that the max_length item is the length of the longest record in the database, not the actual set maximum for the field. I'm not sure if this is a bug or not, but it seems like it to me.
still as of 1.7.1

anyone else have anything to say on this? is it a bug?

Theme © iAndrew 2016 - Forum software by © MyBB