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

Function is_end_of_query

sql/sql_bootstrap.cc:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include <string>
22
23static bool is_end_of_query(const char *line, size_t len,
24 const std::string& delimiter)
25{
26 if (delimiter.length() > len)
27 return false;
28 return !strcmp(line + len-delimiter.length(),delimiter.c_str());
29}
30
31static std::string delimiter= ";";
32extern "C" int read_bootstrap_query(char *query, int *query_length,

Callers 1

read_bootstrap_queryFunction · 0.85

Calls 2

lengthMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected