phpBB

Code Changes

File: phpbb/db/driver/driver_interface.php

  Unmodified   Added   Modified   Removed
Line 289Line 289
	public function cast_expr_to_bigint($expression);

/**

	public function cast_expr_to_bigint($expression);

/**

	* Get last inserted id after insert statement


	 * Gets the ID of the **last** inserted row immediately after an INSERT
* statement.

	*

	*

	* @return	string		Autoincrement value of the last inserted row












	 * **Note**: Despite the name, the returned ID refers to the row that has
* just been inserted, rather than the hypothetical ID of the next row if a
* new one was to be inserted.
*
* The returned value can be used for selecting the item that has just been
* inserted or for updating another table with an ID pointing to that item.
*
* Alias of `sql_last_inserted_id`.
*
* @deprecated 3.3.11-RC1 Replaced by sql_last_inserted_id(), to be removed in 4.1.0-a1
*
* @return string|false Auto-incremented value of the last inserted row

	*/
public function sql_nextid();

	*/
public function sql_nextid();

 

/**
* Gets the ID of the last inserted row immediately after an INSERT
* statement. The returned value can be used for selecting the item that has
* just been inserted or for updating another table with an ID pointing to
* that item.
*
* @return string|false Auto-incremented value of the last inserted row
*/
public function sql_last_inserted_id();


/**
* Add to query count


/**
* Add to query count

Line 464Line 486
	* @return string	A SQL statement like: "IN (1, 2, 3, 4)" or "= 1"
*/
public function sql_in_set($field, $array, $negate = false, $allow_empty_set = false);

	* @return string	A SQL statement like: "IN (1, 2, 3, 4)" or "= 1"
*/
public function sql_in_set($field, $array, $negate = false, $allow_empty_set = false);

 

/**
* Quote identifiers used in sql query
*
* @param string $msg String to be quoted
* @return string Quoted version of $msg
*/
public function sql_quote($msg);

/**
* Ensure query ID can be used by cache
*
* @param resource|int|string $query_id Mixed type query id
*
* @return int|string Query id in string or integer format
*/
public function clean_query_id($query_id);

}


}