| Bug #317 | Inconsistency in SHOW GRANTS output | ||
|---|---|---|---|
| Submitted: | 23 Apr 2003 9:54 | Modified: | 23 Apr 2003 10:40 |
| Reporter: | Paul DuBois | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 4.x | OS: | Any (any) |
| Assigned to: | CPU Architecture: | Any | |
[23 Apr 2003 9:54]
Paul DuBois
[23 Apr 2003 10:40]
MySQL Verification Team
Fixed, thanks.
This is a patch:
===== sql/sql_acl.cc 1.93 vs edited =====
*** /tmp/sql_acl.cc-1.93-2058 Mon Apr 21 22:53:53 2003
--- edited/sql/sql_acl.cc Wed Apr 23 20:36:56 2003
***************
*** 3031,3041 ****
}
}
}
! global.append(" ON ",4);
global.append(grant_table->db);
! global.append(".",1);
global.append(grant_table->tname);
! global.append(" TO '",5);
global.append(lex_user->user.str,lex_user->user.length);
global.append("'@'",3);
global.append(lex_user->host.str,lex_user->host.length);
--- 3031,3041 ----
}
}
}
! global.append(" ON `",5);
global.append(grant_table->db);
! global.append("`.`",3);
global.append(grant_table->tname);
! global.append("` TO '",6);
global.append(lex_user->user.str,lex_user->user.length);
global.append("'@'",3);
global.append(lex_user->host.str,lex_user->host.length);
