| 9300 | /* Help function for mysql_show_grants */ |
| 9301 | |
| 9302 | static void add_user_option(String *grant, long value, const char *name, |
| 9303 | bool is_signed) |
| 9304 | { |
| 9305 | if (value) |
| 9306 | { |
| 9307 | char buff[22], *p; // just as in int2str |
| 9308 | grant->append(' '); |
| 9309 | grant->append(name, strlen(name)); |
| 9310 | grant->append(' '); |
| 9311 | p=int10_to_str(value, buff, is_signed ? -10 : 10); |
| 9312 | grant->append(buff,p-buff); |
| 9313 | } |
| 9314 | } |
| 9315 | |
| 9316 | |
| 9317 | static void add_user_option(String *grant, double value, const char *name) |
no test coverage detected