| 653 | */ |
| 654 | |
| 655 | inline bool is_temporary_table(TABLE_LIST *tl) |
| 656 | { |
| 657 | if (tl->view || tl->schema_table) |
| 658 | return FALSE; |
| 659 | |
| 660 | if (!tl->table) |
| 661 | return FALSE; |
| 662 | |
| 663 | /* |
| 664 | NOTE: 'table->s' might be NULL for specially constructed TABLE |
| 665 | instances. See SHOW TRIGGERS for example. |
| 666 | */ |
| 667 | |
| 668 | if (!tl->table->s) |
| 669 | return FALSE; |
| 670 | |
| 671 | return tl->table->s->tmp_table != NO_TMP_TABLE; |
| 672 | } |
| 673 | |
| 674 | |
| 675 | /** |
no outgoing calls
no test coverage detected