wordpress/wp-content/plugins/sqlite-integration/pdoengine.class.php
/**
	 * Method to convert the SHOW COLUMNS query data to an object.
	 *
	 * It rewrites pragma results to mysql compatible array
	 * when query_type is describe, we use sqlite pragma function.
	 *
	 * @access private
	 */
Method to convert the SHOW COLUMNS query data to an object.
It rewrites pragma results to mysql compatible array
when query_type is describe, we use sqlite pragma function.

@access private
Method to convert the SHOW COLUMNS query data to an object . It rewrites pragma results to mysql compatible array when query_type is describe we use sqlite pragma function . @access private
private function convert_to_columns_object() {
		$_results = array();
		$_columns = array( 
			'Field'   => "",
			'Type'    => "",
			'Null'    => "",
			'Key'     => "",
			'Default' => "",
			'Extra'   => ""
		);
		if (count($this->_results) === 0) {
			echo $this->get_error_message();
		} else {
			foreach ($this->_results as $row) {
				$_columns['Field']   = $row->name;
				$_columns['Type']    = $row->type;
				$_columns['Null']    = $row->notnull ? "NO" : "YES";
				$_columns['Key']     = $row->pk ? "PRI" : "";
				$_columns['Default'] = $row->dflt_value;
				$_results[]          = new ObjectArray($_columns);
			}
		}
		$this->results = $_results;
	}
private function convert_to_columns_object ( ) { $ _results = array ( ) ; $ _columns = array ( 'Field' => " " , 'Type' => " " , 'Null' => " " , 'Key' => " " , 'Default' => " " , 'Extra' => " " ) ; if ( count ( $ this -> _results ) === 0 ) { echo $ this -> get_error_message ( ) ; } else { foreach ( $ this -> _results as $ row ) { $ _columns [ 'Field' ] = $ row -> name ; $ _columns [ 'Type' ] = $ row -> type ; $ _columns [ 'Null' ] = $ row -> notnull ? " NO " : " YES " ; $ _columns [ 'Key' ] = $ row -> pk ? " PRI " : " " ; $ _columns [ 'Default' ] = $ row -> dflt_value ; $ _results [ ] = new ObjectArray ( $ _columns ) ; } } $ this -> results = $ _results ; }
Method to convert the SHOW COLUMNS query data to an object.
Method to convert the SHOW COLUMNS query data to an object .
//Field names MySQL SHOW COLUMNS returns