wordpress/wp-content/plugins/sqlite-integration/pdoengine.class.php
/**
	 * Method to execute SHOW VARIABLES query
	 *
	 * This query is meaningless for SQLite. This function returns null data with some
	 * exceptions and only avoids the error message.
	 *
	 * @param string
	 * @return ObjectArray
	 */
Method to execute SHOW VARIABLES query
This query is meaningless for SQLite. This function returns null data with some
exceptions and only avoids the error message.

@param string
@return ObjectArray
Method to execute SHOW VARIABLES query This query is meaningless for SQLite . This function returns null data with some exceptions and only avoids the error message . @param string @return ObjectArray
private function show_variables_workaround($query) {
		$dummy_data = array('Variable_name' => '', 'Value' => null);
		$pattern    = '/SHOW\\s*VARIABLES\\s*LIKE\\s*(.*)?$/im';
		if (preg_match($pattern, $query, $match)) {
			$value = str_replace("'", '', $match[1]);
			$dummy_data['Variable_name'] = trim($value);
			if ($value == 'max_allowed_packet') {
				$dummy_data['Value'] = 1047552;
			} else {
				$dummy_data['Value'] = '';
			}
		}
		$_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_variables_workaround ( $ query ) { $ dummy_data = array ( 'Variable_name' => '' , 'Value' => null ) ; $ pattern = '/SHOW\\s*VARIABLES\\s*LIKE\\s*(.*)?$/im' ; if ( preg_match ( $ pattern , $ query , $ match ) ) { $ value = str_replace ( " ' " , '' , $ match [ 1 ] ) ; $ dummy_data [ 'Variable_name' ] = trim ( $ value ) ; if ( $ value == 'max_allowed_packet' ) { $ dummy_data [ 'Value' ] = 1047552 ; } else { $ dummy_data [ 'Value' ] = '' ; } } $ _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 VARIABLES query
 This query is meaningless for SQLite.
Method to execute SHOW VARIABLES query This query is meaningless for SQLite .
// this is set for Wordfence Security Plugin