mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Offset probably required in fetch_field (bug #3100185)
This commit is contained in:
@@ -160,7 +160,7 @@ if (!defined("DRIVER")) {
|
|||||||
class Min_Result {
|
class Min_Result {
|
||||||
var
|
var
|
||||||
$num_rows, ///< @var int number of rows in the result
|
$num_rows, ///< @var int number of rows in the result
|
||||||
$_result ///< @access private
|
$_result, $_offset = 0 ///< @access private
|
||||||
;
|
;
|
||||||
|
|
||||||
/** Constructor
|
/** Constructor
|
||||||
@@ -189,7 +189,7 @@ if (!defined("DRIVER")) {
|
|||||||
* @return object properties: name, type, orgtable, orgname, charsetnr
|
* @return object properties: name, type, orgtable, orgname, charsetnr
|
||||||
*/
|
*/
|
||||||
function fetch_field() {
|
function fetch_field() {
|
||||||
$return = mysql_fetch_field($this->_result);
|
$return = mysql_fetch_field($this->_result, $this->_offset++); // offset required under certain conditions
|
||||||
$return->orgtable = $return->table;
|
$return->orgtable = $return->table;
|
||||||
$return->orgname = $return->name;
|
$return->orgname = $return->name;
|
||||||
$return->charsetnr = ($return->blob ? 63 : 0);
|
$return->charsetnr = ($return->blob ? 63 : 0);
|
||||||
|
Reference in New Issue
Block a user