| 1713 | */ |
| 1714 | |
| 1715 | static bool mysql_test_call_fields(Prepared_statement *stmt, |
| 1716 | TABLE_LIST *tables, |
| 1717 | List<Item> *value_list) |
| 1718 | { |
| 1719 | DBUG_ENTER("mysql_test_call_fields"); |
| 1720 | |
| 1721 | List_iterator<Item> it(*value_list); |
| 1722 | THD *thd= stmt->thd; |
| 1723 | Item *item; |
| 1724 | |
| 1725 | if ((tables && |
| 1726 | check_table_access(thd, SELECT_ACL, tables, FALSE, UINT_MAX, FALSE)) || |
| 1727 | open_normal_and_derived_tables(thd, tables, MYSQL_OPEN_FORCE_SHARED_MDL, |
| 1728 | DT_INIT | DT_PREPARE)) |
| 1729 | goto err; |
| 1730 | |
| 1731 | while ((item= it++)) |
| 1732 | { |
| 1733 | if (item->fix_fields_if_needed(thd, it.ref())) |
| 1734 | goto err; |
| 1735 | } |
| 1736 | DBUG_RETURN(FALSE); |
| 1737 | err: |
| 1738 | DBUG_RETURN(TRUE); |
| 1739 | } |
| 1740 | |
| 1741 | |
| 1742 | /** |
no test coverage detected