wordpress/wp-content/plugins/sqlite-integration/pdoengine.class.php
/**
	 * Method to create a PDO statement object from the query string.
	 *
	 * @return PDOStatement
	 */
Method to create a PDO statement object from the query string.
Method to create a PDO statement object from the query string .
private function prepare_query(){
		$this->queries[] = "Prepare:\n" . $this->prepared_query;
		$reason          = 0;
		$message         = '';
		$statement       = null;
		do {
			try {
				$statement = $this->pdo->prepare($this->prepared_query);
			} catch (PDOException $err) {
				$reason  = $err->getCode();
				$message = $err->getMessage();
			}
		} while (5 == $reason || 6 == $reason);
		if ($reason > 0){
			$err_message = sprintf("Problem preparing the PDO SQL Statement.  Error was: %s", $message);
			$this->set_error(__LINE__, __FUNCTION__, $err_message);
		}
		return $statement;
	}
private function prepare_query ( ) { $ this -> queries [ ] = " Prepare: \n " . $ this -> prepared_query ; $ reason = 0 ; $ message = '' ; $ statement = null ; do { try { $ statement = $ this -> pdo -> prepare ( $ this -> prepared_query ) ; } catch ( PDOException $ err ) { $ reason = $ err -> getCode ( ) ; $ message = $ err -> getMessage ( ) ; } } while ( 5 == $ reason || 6 == $ reason ) ; if ( $ reason > 0 ) { $ err_message = sprintf ( " Problem preparing the PDO SQL Statement.  Error was: %s " , $ message ) ; $ this -> set_error ( __LINE__ , __FUNCTION__ , $ err_message ) ; } return $ statement ; }
Method to create a PDO statement object from the query string.
Method to create a PDO statement object from the query string .