mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/17176] Pass query_id by ref in sql_fetchfield()
PHPBB3-17176
This commit is contained in:
parent
eed92e766f
commit
295fcc771b
4 changed files with 4 additions and 4 deletions
|
@ -387,7 +387,7 @@ abstract class driver implements driver_interface
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
function sql_fetchfield($field, $rownum = false, $query_id = false)
|
function sql_fetchfield($field, $rownum = false, &$query_id = false)
|
||||||
{
|
{
|
||||||
global $cache;
|
global $cache;
|
||||||
|
|
||||||
|
|
|
@ -268,7 +268,7 @@ interface driver_interface
|
||||||
* @return mixed String value of the field in the selected row,
|
* @return mixed String value of the field in the selected row,
|
||||||
* false, if the row does not exist
|
* 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
|
* Fetch current row
|
||||||
|
|
|
@ -294,7 +294,7 @@ class factory implements driver_interface
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@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);
|
return $this->get_driver()->sql_fetchfield($field, $rownum, $query_id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -298,7 +298,7 @@ class postgres extends \phpbb\db\driver\driver
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
function sql_fetchfield($field, $rownum = false, $query_id = false)
|
function sql_fetchfield($field, $rownum = false, &$query_id = false)
|
||||||
{
|
{
|
||||||
global $cache;
|
global $cache;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue