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

Method find

sql/sql_class.h:874–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872 }
873
874 Statement *find(ulong id)
875 {
876 if (last_found_statement == 0 || id != last_found_statement->id)
877 {
878 Statement *stmt;
879 stmt= (Statement *) my_hash_search(&st_hash, (uchar *) &id, sizeof(id));
880 if (stmt && stmt->name.str)
881 return NULL;
882 last_found_statement= stmt;
883 }
884 return last_found_statement;
885 }
886 /*
887 Close all cursors of this connection that use tables of a storage
888 engine that has transaction-specific state and therefore can not

Callers

nothing calls this directly

Calls 1

my_hash_searchFunction · 0.85

Tested by

no test coverage detected