| 574 | */ |
| 575 | |
| 576 | int get_quote_char_for_identifier(THD *thd, const char *name, uint length) |
| 577 | { |
| 578 | if (length && |
| 579 | !is_keyword(name,length) && |
| 580 | !require_quotes(name, length) && |
| 581 | !(thd->variables.option_bits & OPTION_QUOTE_SHOW_CREATE)) |
| 582 | return EOF; |
| 583 | if (thd->variables.sql_mode & MODE_ANSI_QUOTES) |
| 584 | return '"'; |
| 585 | return '`'; |
| 586 | } |
| 587 | |
| 588 | |
| 589 | /**************************************************************************** |
no test coverage detected