bug 697979
This commit is contained in:
@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2003-08-01 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* tbl_select.php3: bug 697979, implemented a suggestion by
|
||||||
|
Joerg Klein (j0erch) to do a SELECT * when all fields were selected
|
||||||
|
on the Select page, to avoid (in most cases) a IE limitation
|
||||||
|
|
||||||
2003-08-01 Alexander M. Turek <rabus@users.sourceforge.net>
|
2003-08-01 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||||
* main.php3: Added link to charset page.
|
* main.php3: Added link to charset page.
|
||||||
* libraries/mysql_charsets.lib.php3, lang/*.inc.php3: More detailed charset
|
* libraries/mysql_charsets.lib.php3, lang/*.inc.php3: More detailed charset
|
||||||
|
@@ -10,7 +10,6 @@ require('./libraries/grab_globals.lib.php3');
|
|||||||
require('./libraries/common.lib.php3');
|
require('./libraries/common.lib.php3');
|
||||||
require('./libraries/relation.lib.php3'); // foreign keys
|
require('./libraries/relation.lib.php3'); // foreign keys
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines arrays of functions (should possibly be in config.inc.php3
|
* Defines arrays of functions (should possibly be in config.inc.php3
|
||||||
* so it can also be used in tbl_qbe.php3)
|
* so it can also be used in tbl_qbe.php3)
|
||||||
@@ -20,7 +19,6 @@ require('./libraries/relation.lib.php3'); // foreign keys
|
|||||||
$numfunctions = array('=', '>', '>=', '<', '<=', '!=', 'LIKE');
|
$numfunctions = array('=', '>', '>=', '<', '<=', '!=', 'LIKE');
|
||||||
$textfunctions = array('LIKE', '=', '!=');
|
$textfunctions = array('LIKE', '=', '!=');
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Not selection yet required -> displays the selection form
|
* Not selection yet required -> displays the selection form
|
||||||
*/
|
*/
|
||||||
@@ -204,6 +202,7 @@ if (!isset($param) || $param[0] == '') {
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
<input type="hidden" name="max_number_of_fields" value="<?php echo $fields_cnt; ?>" />
|
||||||
<input type="submit" name="submit" value="<?php echo $strGo; ?>" />
|
<input type="submit" name="submit" value="<?php echo $strGo; ?>" />
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
@@ -218,15 +217,28 @@ if (!isset($param) || $param[0] == '') {
|
|||||||
*/
|
*/
|
||||||
else {
|
else {
|
||||||
// Builds the query
|
// Builds the query
|
||||||
$sql_query = 'SELECT ' . PMA_backquote(urldecode($param[0]));
|
|
||||||
$i = 0;
|
$sql_query = 'SELECT ';
|
||||||
$c = count($param);
|
|
||||||
while ($i < $c) {
|
// if all fields were selected to display, we do a SELECT *
|
||||||
if ($i > 0) {
|
// (more efficient and this helps prevent a problem in IE
|
||||||
$sql_query .= ',' . PMA_backquote(urldecode($param[$i]));
|
// if one of the rows is edited and we come back to the Select results)
|
||||||
|
|
||||||
|
if (count($param) == $max_number_of_fields) {
|
||||||
|
$sql_query .= '* ';
|
||||||
|
} else {
|
||||||
|
|
||||||
|
$sql_query .= PMA_backquote(urldecode($param[0]));
|
||||||
|
$i = 0;
|
||||||
|
$c = count($param);
|
||||||
|
while ($i < $c) {
|
||||||
|
if ($i > 0) {
|
||||||
|
$sql_query .= ',' . PMA_backquote(urldecode($param[$i]));
|
||||||
|
}
|
||||||
|
$i++;
|
||||||
}
|
}
|
||||||
$i++;
|
} // end if
|
||||||
}
|
|
||||||
$sql_query .= ' FROM ' . PMA_backquote($table);
|
$sql_query .= ' FROM ' . PMA_backquote($table);
|
||||||
// The where clause
|
// The where clause
|
||||||
if ($where != '') {
|
if ($where != '') {
|
||||||
|
Reference in New Issue
Block a user