-
Sub-task
-
Resolution: Fixed
-
Minor
-
2.2
-
MySQL
-
MOODLE_22_STABLE
-
MOODLE_23_STABLE
-
w11_
MDL-31899_m23_mysqlcolumns -
The current implementation of mysqli_native_moodle_database->get_columns gets its information by doing a SHOW_COLUMNS and parsing the output. There are some limitations with this approach, not the least of which is that it doesn't return the maximum length for text fields, which would help resolve MDL-15678. I've also noticed in my own testing that the values returned by the current function don't match what comes out of the information_schema table (which may be related to MDL-27634).