diff options
Diffstat (limited to 'phpBB/includes/db/dbal.php')
| -rw-r--r-- | phpBB/includes/db/dbal.php | 27 | 
1 files changed, 24 insertions, 3 deletions
diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php index 2f9619c8ea..82fd03b5f3 100644 --- a/phpBB/includes/db/dbal.php +++ b/phpBB/includes/db/dbal.php @@ -458,6 +458,28 @@ class dbal  	}  	/** +	* Returns SQL string to cast a string expression to an int. +	* +	* @param  string $expression An expression evaluating to string +	* @return string             Expression returning an int +	*/ +	function cast_expr_to_bigint($expression) +	{ +		return $expression; +	} + +	/** +	* Returns SQL string to cast an integer expression to a string. +	* +	* @param  string $expression An expression evaluating to int +	* @return string             Expression returning a string +	*/ +	function cast_expr_to_string($expression) +	{ +		return $expression; +	} + +	/**  	* Run more than one insert statement.  	*  	* @param string $table table name to run the statements on @@ -721,8 +743,9 @@ class dbal  	function sql_report($mode, $query = '')  	{  		global $cache, $starttime, $phpbb_root_path, $user; +		global $request; -		if (empty($_REQUEST['explain'])) +		if (is_object($request) && !$request->variable('explain', false))  		{  			return false;  		} @@ -911,5 +934,3 @@ class dbal  * This variable holds the class name to use later  */  $sql_db = (!empty($dbms)) ? 'dbal_' . basename($dbms) : 'dbal'; - -?>
\ No newline at end of file  | 
