wordpress/wp-content/plugins/sqlite-integration/query.class.php
/**
	 * Method to handle SHOW INDEX query.
	 *
	 * Moved the WHERE clause manipulation to pdoengin.class.php (ver 1.3.1)
	 *
	 * @access private
	 */
Method to handle SHOW INDEX query.

@access private
Method to handle SHOW INDEX query . @access private
private function handle_show_index() {
		$pattern = '/^\\s*SHOW\\s*(?:INDEX|INDEXES|KEYS)\\s*FROM\\s*(\\w+)?/im';
		if (preg_match($pattern, $this->_query, $match)) {
			$table_name   = preg_replace("/[\';]/", '', $match[1]);
			$table_name   = trim($table_name);
			$this->_query = "SELECT * FROM sqlite_master WHERE tbl_name='$table_name'";
		}
	}
private function handle_show_index ( ) { $ pattern = '/^\\s*SHOW\\s*(?:INDEX|INDEXES|KEYS)\\s*FROM\\s*(\\w+)?/im' ; if ( preg_match ( $ pattern , $ this -> _query , $ match ) ) { $ table_name = preg_replace ( " /[\';]/ " , '' , $ match [ 1 ] ) ; $ table_name = trim ( $ table_name ) ; $ this -> _query = " SELECT * FROM sqlite_master WHERE tbl_name=' $ table_name ' " ; } }
Method to handle SHOW INDEX query.
Method to handle SHOW INDEX query .