wordpress/wp-content/plugins/sqlite-integration/query.class.php
/**
	 * Method to remove LIMIT clause from DELETE or UPDATE query.
	 *
	 * The author of the original 'PDO for WordPress' says update method of wpdb
	 * insists on adding LIMIT. But the newest version of WordPress doesn't do that.
	 * Nevertheless some plugins use DELETE with LIMIT, UPDATE with LIMIT.
	 * We need to exclude sub query's LIMIT. And if SQLite is compiled with
	 * ENABLE_UPDATE_DELETE_LIMIT option, we don't remove it.
	 *
	 * @access private
	 */
Method to remove LIMIT clause from DELETE or UPDATE query.
The author of the original 'PDO for WordPress' says update method of wpdb
insists on adding LIMIT. But the newest version of WordPress doesn't do that.
Nevertheless some plugins use DELETE with LIMIT, UPDATE with LIMIT.
We need to exclude sub query's LIMIT. And if SQLite is compiled with
ENABLE_UPDATE_DELETE_LIMIT option, we don't remove it.

@access private
Method to remove LIMIT clause from DELETE or UPDATE query . The author of the original ' PDO for WordPress ' says update method of wpdb insists on adding LIMIT . But the newest version of WordPress doesn ' t do that . Nevertheless some plugins use DELETE with LIMIT UPDATE with LIMIT . We need to exclude sub query ' s LIMIT . And if SQLite is compiled with ENABLE_UPDATE_DELETE_LIMIT option we don ' t remove it . @access private
private function rewrite_limit_usage(){
		$_wpdb = new PDODB();
		$options = $_wpdb->get_results('PRAGMA compile_options');
		foreach ($options as $opt) {
			if (stripos($opt->compile_option, 'ENABLE_UPDATE_DELETE_LIMIT') !== false) return;
		}
		if (stripos($this->_query, '(select') === false) {
			$this->_query = preg_replace('/\\s*LIMIT\\s*[0-9]$/i', '', $this->_query);
		}
	}
private function rewrite_limit_usage ( ) { $ _wpdb = new PDODB ( ) ; $ options = $ _wpdb -> get_results ( 'PRAGMA compile_options' ) ; foreach ( $ options as $ opt ) { if ( stripos ( $ opt -> compile_option , 'ENABLE_UPDATE_DELETE_LIMIT' ) !== false ) return ; } if ( stripos ( $ this -> _query , '(select' ) === false ) { $ this -> _query = preg_replace ( '/\\s*LIMIT\\s*[0-9]$/i' , '' , $ this -> _query ) ; } }
Method to remove LIMIT clause from DELETE or UPDATE query.
Method to remove LIMIT clause from DELETE or UPDATE query .