WordPress at a glance
function is not described

wpdb::load_col_info() protected WP 3.5.0

Loads the column metadata from the last query.

{} It's a method of the class: wpdb{}

No Hooks.

Return

Null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->load_col_info();

Changelog

Since 3.5.0 Introduced.

Code of wpdb::load_col_info() WP 5.5.1

<?php
protected function load_col_info() {
	if ( $this->col_info ) {
		return;
	}

	if ( $this->use_mysqli ) {
		$num_fields = mysqli_num_fields( $this->result );
		for ( $i = 0; $i < $num_fields; $i++ ) {
			$this->col_info[ $i ] = mysqli_fetch_field( $this->result );
		}
	} else {
		$num_fields = mysql_num_fields( $this->result );
		for ( $i = 0; $i < $num_fields; $i++ ) {
			$this->col_info[ $i ] = mysql_fetch_field( $this->result, $i );
		}
	}
}