MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / AppendString

Method AppendString

src/sdk/sql_insert_row.cc:230–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230bool SQLInsertRow::AppendString(const std::string& val) {
231 if (IsDimension()) {
232 if (val.empty()) {
233 PackDimension(hybridse::codec::EMPTY_STRING);
234 } else {
235 PackDimension(val);
236 }
237 }
238 str_size_ -= val.size();
239 if (rb_.AppendString(val.c_str(), val.size())) {
240 return MakeDefault();
241 }
242 return false;
243}
244
245bool SQLInsertRow::AppendString(const char* string_buffer_var_name, uint32_t length) {
246 if (IsDimension()) {

Callers 15

testSmokeMethod · 0.95
TEST_FFunction · 0.45
TEST_FFunction · 0.45
NewSimpleBatchMethod · 0.45
BM_SimpleQueryFunctionFunction · 0.45
BM_SimpleRowWindowFunction · 0.45
BM_SimpleRow4WindowFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by 9

testSmokeMethod · 0.76
TEST_FFunction · 0.36
TEST_FFunction · 0.36
NewSimpleBatchMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
test_smokeFunction · 0.36
test_smokeFunction · 0.36