Bug 430288

This commit is contained in:
Marc Delisle
2001-06-05 16:21:56 +00:00
parent 09a32b1c1b
commit 28b7dcdf92
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2001-06-05 Marc Delisle <lem9@users.sourceforge.net> 2001-06-05 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties, tbl_printview: quote Comment field * tbl_properties, tbl_printview: quote Comment field
* bug 430288: bad parsing of from | FROM
2001-06-04 Marc Delisle <lem9@users.sourceforge.net> 2001-06-04 Marc Delisle <lem9@users.sourceforge.net>
* tbl_change, tbl_replace: SaveAsNewRow * tbl_change, tbl_replace: SaveAsNewRow

View File

@@ -71,7 +71,7 @@ else {
// the same SELECT without LIMIT // the same SELECT without LIMIT
if(eregi("^SELECT", $sql_query)) if(eregi("^SELECT", $sql_query))
{ {
$array=split('from|FROM',$sql_query,2); //read only the from-part of the query $array=split(' from | FROM ',$sql_query,2); //read only the from-part of the query
$count_query="select count(*) as count from $array[1]"; //and make a count(*) to count the entries $count_query="select count(*) as count from $array[1]"; //and make a count(*) to count the entries
$OPresult = mysql_query($count_query); $OPresult = mysql_query($count_query);
$SelectNumRows = mysql_result($OPresult,'0','count'); $SelectNumRows = mysql_result($OPresult,'0','count');