bug 906551

This commit is contained in:
Marc Delisle
2004-03-05 18:56:53 +00:00
parent e22f80a3bf
commit 2ed606d914
2 changed files with 6 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2004-03-05 Marc Delisle <lem9@users.sourceforge.net> 2004-03-05 Marc Delisle <lem9@users.sourceforge.net>
* libraries/sqlparser.lib.php: bug 909752, floating point digit * libraries/sqlparser.lib.php: bug 909752, floating point digit
* libraries/sqlparser.lib.php: bug 906551, GRANT...TO
2004-03-03 Marc Delisle <lem9@users.sourceforge.net> 2004-03-03 Marc Delisle <lem9@users.sourceforge.net>
* tbl_change.php, tbl_replace_fields.php: bug 907510, invalid * tbl_change.php, tbl_replace_fields.php: bug 907510, invalid

View File

@@ -1835,7 +1835,11 @@ if ($is_minimum_common == FALSE) {
// //
// also we must not be inside a privilege list // also we must not be inside a privilege list
if ($i > 0) { if ($i > 0) {
if (!$in_priv_list) { // the alpha_identifier condition is there to
// catch cases like
// GRANT SELECT ON mydb.mytable TO myuser@localhost
// (else, we get mydb.mytableTO )
if (!$in_priv_list || $typearr[1] == 'alpha_identifier') {
$before .= $space_alpha_reserved_word; $before .= $space_alpha_reserved_word;
} }
} else { } else {