WHERE o.schema_id = SCHEMA_ID(" . $connection->quote(get_schema()) . ") AND o.type IN ('S', 'U', 'V') AND o.name = " . $connection->quote($table)
);
while ($row = $result->fetch_assoc()) {
+ $length = $row["max_length"]; //! precision, scale
$return[$row["name"]] = array(
"field" => $row["name"],
- "full_type" => $row["type"],
+ "full_type" => $row["type"] . ($length ? "($length)" : ""),
"type" => $row["type"],
- "length" => $row["max_length"], //! precision, scale
+ "length" => $length,
"default" => $row["default"],
"null" => $row["is_nullable"],
"auto_increment" => $row["is_identity"],