wordpress/wp-content/plugins/sqlite-integration/query_create.class.php
/**
	 * Method to remove the character set information from within mysql queries.
	 *
	 * This removes DEFAULT CHAR(ACTER) SET and COLLATE, which is meaningless for
	 * SQLite.
	 *
	 * @access private
	 */
Method to remove the character set information from within mysql queries.

@access private
Method to remove the character set information from within mysql queries . @access private
private function rewrite_character_set(){
		$pattern_charset  = '/\\b(default\\s*character\\s*set|default\\s*charset|character\\s*set)\\s*(?<!\()[^ ]*/im';
		$pattern_collate1 = '/\\s*collate\\s*[^ ]*(?=,)/im';
		$pattern_collate2 = '/\\s*collate\\s*[^ ]*(?<!;)/im';
		$patterns         = array($pattern_charset, $pattern_collate1, $pattern_collate2);
		$this->_query     = preg_replace($patterns, '', $this->_query);
	}
private function rewrite_character_set ( ) { $ pattern_charset = '/\\b(default\\s*character\\s*set|default\\s*charset|character\\s*set)\\s*(?<!\()[^ ]*/im' ; $ pattern_collate1 = '/\\s*collate\\s*[^ ]*(?=,)/im' ; $ pattern_collate2 = '/\\s*collate\\s*[^ ]*(?<!;)/im' ; $ patterns = array ( $ pattern_charset , $ pattern_collate1 , $ pattern_collate2 ) ; $ this -> _query = preg_replace ( $ patterns , '' , $ this -> _query ) ; }
Method to remove the character set information from within mysql queries.
Method to remove the character set information from within mysql queries .