/** * fill correctly some properties of the column, depending of its type * and other properties * @param jDbColumn $col */ function normalizeColumn($col) { $type = $this->conn->tools()->getTypeInfo($col->type); $col->nativeType = $type[0]; if (!$col->length && $type[5]) { $col->length = $type[5]; } if ($type[6]) { $col->autoIncrement = true; $col->notNull = true; } }