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

Function add_keyword_string

sql/sql_partition.cc:2125–2141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2123*/
2124
2125static int add_keyword_string(String *str, const char *keyword,
2126 bool quoted, const char *keystr)
2127{
2128 int err= str->append(' ');
2129 err+= str->append(keyword, strlen(keyword));
2130
2131 str->append(STRING_WITH_LEN(" = "));
2132 if (quoted)
2133 {
2134 err+= str->append('\'');
2135 err+= str->append_for_single_quote(keystr, strlen(keystr));
2136 err+= str->append('\'');
2137 }
2138 else
2139 err+= str->append(keystr, strlen(keystr));
2140 return err;
2141}
2142
2143
2144/**

Callers 2

add_keyword_pathFunction · 0.85
add_server_part_optionsFunction · 0.85

Calls 2

appendMethod · 0.45

Tested by

no test coverage detected