wordpress/wp-content/plugins/sqlite-integration/pdoengine.class.php
/**
	 * Method to execute SHOW TABLE STATUS query.
	 *
	 * This query is meaningless for SQLite. This function return dummy data.
	 *
	 * @param string
	 * @return ObjectArray
	 */
Method to execute SHOW TABLE STATUS query.
This query is meaningless for SQLite. This function return dummy data.

@param string
@return ObjectArray
Method to execute SHOW TABLE STATUS query . This query is meaningless for SQLite . This function return dummy data . @param string @return ObjectArray
private function show_status_workaround($query) {
		$pattern = '/^SHOW\\s*TABLE\\s*STATUS\\s*LIKE\\s*(.*?)$/im';
		if (preg_match($pattern, $query, $match)) {
			$table_name = str_replace("'", '', $match[1]);
		} else {
			$table_name = '';
		}
		$dummy_data = array(
			'Name'   => $table_name, 'Engine'          => '', 'Version'        => '',
			'Row_format'      => '', 'Rows'            =>  0, 'Avg_row_length' =>  0,
			'Data_length'     =>  0, 'Max_data_length' =>  0, 'Index_length'   =>  0,
			'Data_free'       =>  0, 'Auto_increment'  =>  0, 'Create_time'    => '',
			'Update_time'     => '', 'Check_time'      => '', 'Collation'      => '',
			'Checksum'        => '', 'Create_options'  => '', 'Comment'        => ''
		);
		$_results[]         = new ObjectArray($dummy_data);
		$this->results      = $_results;
		$this->num_rows     = count($this->results);
		$this->return_value = $this->num_rows;
		return true;
	}
private function show_status_workaround ( $ query ) { $ pattern = '/^SHOW\\s*TABLE\\s*STATUS\\s*LIKE\\s*(.*?)$/im' ; if ( preg_match ( $ pattern , $ query , $ match ) ) { $ table_name = str_replace ( " ' " , '' , $ match [ 1 ] ) ; } else { $ table_name = '' ; } $ dummy_data = array ( 'Name' => $ table_name , 'Engine' => '' , 'Version' => '' , 'Row_format' => '' , 'Rows' => 0 , 'Avg_row_length' => 0 , 'Data_length' => 0 , 'Max_data_length' => 0 , 'Index_length' => 0 , 'Data_free' => 0 , 'Auto_increment' => 0 , 'Create_time' => '' , 'Update_time' => '' , 'Check_time' => '' , 'Collation' => '' , 'Checksum' => '' , 'Create_options' => '' , 'Comment' => '' ) ; $ _results [ ] = new ObjectArray ( $ dummy_data ) ; $ this -> results = $ _results ; $ this -> num_rows = count ( $ this -> results ) ; $ this -> return_value = $ this -> num_rows ; return true ; }
Method to execute SHOW TABLE STATUS query.
Method to execute SHOW TABLE STATUS query .