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

Function net_clear_error

sql-common/client.c:244–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242*/
243
244void net_clear_error(NET *net)
245{
246 net->last_errno= 0;
247 net->last_error[0]= '\0';
248 strmov(net->sqlstate, not_error_sqlstate);
249}
250
251/**
252 Set an error message on the client.

Callers 2

cli_advanced_commandFunction · 0.85
client.cFile · 0.85

Calls 1

strmovFunction · 0.85

Tested by

no test coverage detected