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

Method check_charset_collation_map_version

sql/sql_prepare.cc:320–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 THD::used_t m_prepare_time_thd_used_flags;
319 uint m_prepare_time_charset_collation_map_version;
320 bool check_charset_collation_map_version(THD *thd,
321 Reprepare_observer *observer)
322 {
323 if ((m_prepare_time_thd_used_flags & THD::CHARACTER_SET_COLLATIONS_USED) &&
324 m_prepare_time_charset_collation_map_version !=
325 thd->variables.character_set_collations.version())
326 {
327 observer->report_error(thd);
328 return true;
329 }
330 return false;
331 }
332private:
333 bool set_db(const LEX_CSTRING *db);
334 bool set_parameters(String *expanded_query,

Callers

nothing calls this directly

Calls 2

versionMethod · 0.45
report_errorMethod · 0.45

Tested by

no test coverage detected