original_string: protected function _prep_query($sql)
  	{
  		// mysql_affected_rows() returns 0 for "DELETE FROM TABLE" queries. This hack
  		// modifies the query so that it a proper number of affected rows is returned.
  		if ($this->delete_hack === TRUE && preg_match('/^\s*DELETE\s+FROM\s+(\S+)\s*$/i', $sql))
  		{
  			return trim($sql).' WHERE 1=1';
  		}
  
  		return $sql;
  	}
code: protected function _prep_query($sql)
  	{
  		// mysql_affected_rows() returns 0 for "DELETE FROM TABLE" queries. This hack
  		// modifies the query so that it a proper number of affected rows is returned.
  		if ($this->delete_hack === TRUE && preg_match('/^\s*DELETE\s+FROM\s+(\S+)\s*$/i', $sql))
  		{
  			return trim($sql).' WHERE 1=1';
  		}
  
  		return $sql;
  	}
code_tokens: protected function _prep_query ( $ sql ) { // mysql_affected_rows() returns 0 for "DELETE FROM TABLE" queries. This hack // modifies the query so that it a proper number of affected rows is returned. if ( $ this -> delete_hack === TRUE && preg_match ( '/^\s*DELETE\s+FROM\s+(\S+)\s*$/i' , $ sql ) ) { return trim ( $ sql ) . ' WHERE 1=1' ; } return $ sql ; }
docstring: Prep the query
  
  If needed, each database adapter can prep the query string
  
  @param	string	$sql	an SQL query
  @return	string
docstring_tokens: Prep the query