mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/17176] Pass query_id by ref in sql_fetchfield()
PHPBB3-17176
This commit is contained in:
@@ -387,7 +387,7 @@ abstract class driver implements driver_interface
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
function sql_fetchfield($field, $rownum = false, $query_id = false)
|
||||
function sql_fetchfield($field, $rownum = false, &$query_id = false)
|
||||
{
|
||||
global $cache;
|
||||
|
||||
|
@@ -268,7 +268,7 @@ interface driver_interface
|
||||
* @return mixed String value of the field in the selected row,
|
||||
* false, if the row does not exist
|
||||
*/
|
||||
public function sql_fetchfield($field, $rownum = false, $query_id = false);
|
||||
public function sql_fetchfield($field, $rownum = false, &$query_id = false);
|
||||
|
||||
/**
|
||||
* Fetch current row
|
||||
|
@@ -294,7 +294,7 @@ class factory implements driver_interface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function sql_fetchfield($field, $rownum = false, $query_id = false)
|
||||
public function sql_fetchfield($field, $rownum = false, &$query_id = false)
|
||||
{
|
||||
return $this->get_driver()->sql_fetchfield($field, $rownum, $query_id);
|
||||
}
|
||||
|
@@ -298,7 +298,7 @@ class postgres extends \phpbb\db\driver\driver
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
function sql_fetchfield($field, $rownum = false, $query_id = false)
|
||||
function sql_fetchfield($field, $rownum = false, &$query_id = false)
|
||||
{
|
||||
global $cache;
|
||||
|
||||
|
Reference in New Issue
Block a user