PMA_DBI_num_rows is not needed and does not work with MYSQL_USE_RESULT (bug #952162).

This commit is contained in:
Michal Čihař
2004-05-26 11:44:10 +00:00
parent 7fb0bfb121
commit b3f0385960
3 changed files with 4 additions and 2 deletions

View File

@@ -12,6 +12,8 @@ $Source$
* lang/dutch: Update thanks to Ivo Teel - calimonk.
* lang/german-utf-8: Remove duplicated string.
* lang/*: Remove allow_recoding from non utf-8 translations.
* tbl_properties.inc.php, tbl_properties_operations.php: PMA_DBI_num_rows
is not needed and does not work with MYSQL_USE_RESULT (bug #952162).
2004-05-26 Alexander M. Turek <me@derrabus.de>
* translators.html: Linked to Indonesian translator's SF page instead of

View File

@@ -541,7 +541,7 @@ if ($action == 'tbl_create.php') {
if ($action == 'tbl_create.php') {
// find mysql capability - staybyte - 11. June 2001
$result = PMA_DBI_try_query('SHOW VARIABLES LIKE \'have_%\';');
if ($result != FALSE && PMA_DBI_num_rows($result) > 0) {
if ($result) {
while ($tmp = PMA_DBI_fetch_assoc($result)) {
if (isset($tmp['Variable_name'])) {
switch ($tmp['Variable_name']) {

View File

@@ -383,7 +383,7 @@ if ($cfgRelation['relwork'] && $tbl_type != "INNODB") {
<?php
// modify robbat2 code - staybyte - 11. June 2001
$result = PMA_DBI_query('SHOW VARIABLES LIKE \'have_%\';');
if ($result != FALSE && PMA_DBI_num_rows($result) > 0) {
if ($result) {
while ($tmp = PMA_DBI_fetch_assoc($result)) {
if (isset($tmp['Variable_name'])) {
switch ($tmp['Variable_name']) {