MCPcopy Create free account
hub / github.com/MariaDB/server / mysql_test_call_fields

Function mysql_test_call_fields

sql/sql_prepare.cc:1715–1739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1713*/
1714
1715static 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);
1737err:
1738 DBUG_RETURN(TRUE);
1739}
1740
1741
1742/**

Callers 1

check_prepared_statementFunction · 0.85

Calls 4

fix_fields_if_neededMethod · 0.80
check_table_accessFunction · 0.70
refMethod · 0.45

Tested by

no test coverage detected