Removed $err_url.

This commit is contained in:
Garvin Hicking
2003-03-11 15:15:21 +00:00
parent eda306631b
commit f5a9eb4de1
2 changed files with 9 additions and 2 deletions

View File

@@ -5,6 +5,13 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2003-03-11 Garvin Hicking <me@supergarv.de>
* transformation_wrapper.php3 - Remove $err_url, because if a query
fails here, the user won't get to see the error string anyways.
Can happen if you want to display a blob without having an index
key in your query, because the blob cannot be filtered by a content
WHERE-string.
2003-03-11 Marc Delisle <lem9@users.sourceforge.net> 2003-03-11 Marc Delisle <lem9@users.sourceforge.net>
* libraries/sqlparser.data.php3: bug 700082, support of XOR * libraries/sqlparser.data.php3: bug 700082, support of XOR

View File

@@ -33,11 +33,11 @@ PMA_mysql_select_db($db);
$table_def = PMA_mysql_query('SHOW FIELDS FROM ' . PMA_backquote($table)); $table_def = PMA_mysql_query('SHOW FIELDS FROM ' . PMA_backquote($table));
if (isset($primary_key)) { if (isset($primary_key)) {
$local_query = 'SELECT * FROM ' . PMA_backquote($table) . ' WHERE ' . $primary_key; $local_query = 'SELECT * FROM ' . PMA_backquote($table) . ' WHERE ' . $primary_key;
$result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url); $result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', '');
$row = PMA_mysql_fetch_array($result); $row = PMA_mysql_fetch_array($result);
} else { } else {
$local_query = 'SELECT * FROM ' . PMA_backquote($table) . ' LIMIT 1'; $local_query = 'SELECT * FROM ' . PMA_backquote($table) . ' LIMIT 1';
$result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url); $result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', '');
$row = PMA_mysql_fetch_array($result); $row = PMA_mysql_fetch_array($result);
} }