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

Method precheck

sql/sql_update.cc:3068–3091  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3066*/
3067
3068bool Sql_cmd_update::precheck(THD *thd)
3069{
3070 if (!multitable)
3071 {
3072 if (update_precheck(thd, lex->query_tables))
3073 return true;
3074 }
3075 else
3076 {
3077 if (multi_update_precheck(thd, lex->query_tables))
3078 return true;
3079 }
3080
3081#ifdef WITH_WSREP
3082 WSREP_SYNC_WAIT(thd, WSREP_SYNC_WAIT_BEFORE_UPDATE_DELETE);
3083#endif
3084
3085 return false;
3086
3087#ifdef WITH_WSREP
3088wsrep_error_label:
3089#endif
3090 return true;
3091}
3092
3093
3094/**

Callers

nothing calls this directly

Calls 2

update_precheckFunction · 0.85
multi_update_precheckFunction · 0.85

Tested by

no test coverage detected