MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / flush

Method flush

sql/protocol.cc:636–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634
635
636bool Protocol::flush()
637{
638#ifndef EMBEDDED_LIBRARY
639 bool error;
640 thd->get_stmt_da()->set_overwrite_status(true);
641 error= net_flush(&thd->net);
642 thd->get_stmt_da()->set_overwrite_status(false);
643 return error;
644#else
645 return 0;
646#endif
647}
648
649#ifndef EMBEDDED_LIBRARY
650

Callers

nothing calls this directly

Calls 2

set_overwrite_statusMethod · 0.80
get_stmt_daMethod · 0.80

Tested by

no test coverage detected