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

Method multi_update

sql/sql_update.cc:1822–1851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1820
1821
1822multi_update::multi_update(THD *thd_arg, TABLE_LIST *table_list,
1823 List<TABLE_LIST> *leaves_list,
1824 List<Item> *field_list,
1825 List<Item> *value_list,
1826 enum enum_duplicates handle_duplicates_arg,
1827 bool ignore_arg)
1828 : select_result_interceptor(thd_arg),
1829 all_tables(table_list),
1830 leaves(leaves_list),
1831 update_tables(0),
1832 tmp_tables(0),
1833 updated(0),
1834 found(0),
1835 fields(field_list),
1836 values(value_list),
1837 table_count(0),
1838 copy_field(0),
1839 handle_duplicates(handle_duplicates_arg),
1840 do_update(1),
1841 trans_safe(1),
1842 transactional_tables(0),
1843 ignore(ignore_arg),
1844 error_handled(0),
1845 prepared(0),
1846 updated_sys_ver(0),
1847 tables_to_update(get_table_map(fields))
1848{
1849 // Defer error reporting to multi_update::init when tables_to_update is zero
1850 // because we don't have exceptions and we can't return values from a constructor.
1851}
1852
1853
1854bool multi_update::init(THD *thd)

Callers

nothing calls this directly

Calls 1

get_table_mapFunction · 0.85

Tested by

no test coverage detected