problem under MySQL 4.0.x with mysqli
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2005-10-14 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* libraries/dbi/mysqli.dbi.lib.php: problem under MySQL 4.0.x
|
||||||
|
|
||||||
2005-10-14 Michal Čihař <michal@cihar.com>
|
2005-10-14 Michal Čihař <michal@cihar.com>
|
||||||
* libraries/sql_query_form.lib.php: Do not attempt to read upload dir when
|
* libraries/sql_query_form.lib.php: Do not attempt to read upload dir when
|
||||||
not configured.
|
not configured.
|
||||||
|
@@ -144,6 +144,11 @@ function PMA_mysqli_fetch_array($result, $type = FALSE) {
|
|||||||
if ($num > 0) {
|
if ($num > 0) {
|
||||||
$fields = PMA_DBI_get_fields_meta($result);
|
$fields = PMA_DBI_get_fields_meta($result);
|
||||||
}
|
}
|
||||||
|
// sometimes, mysqli_fetch_fields() does not return results
|
||||||
|
// (as seen in PHP 5.1.0-dev), so for now, return $data unchanged
|
||||||
|
if (!$fields) {
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
$i = 0;
|
$i = 0;
|
||||||
for ($i = 0; $i < $num; $i++) {
|
for ($i = 0; $i < $num; $i++) {
|
||||||
if (!isset($fields[$i]->type)) {
|
if (!isset($fields[$i]->type)) {
|
||||||
|
Reference in New Issue
Block a user