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

Method Build

src/sdk/sql_request_row.cc:339–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339bool SQLRequestRow::Build() {
340 if (has_error_) {
341 return false;
342 }
343 if (str_length_current_ != str_length_expect_) {
344 LOG(WARNING) << "str_length_current_ != str_length_expect_ "
345 << str_length_current_ << ", " << str_length_expect_;
346 return false;
347 }
348 int32_t cnt = cnt_;
349 for (; cnt < schema_->GetColumnCnt(); cnt++) {
350 bool ok = AppendNULL();
351 if (!ok) return false;
352 }
353 is_ok_ = true;
354 return true;
355}
356
357bool SQLRequestRow::GetRecordVal(const std::string& col, std::string* val) {
358 if (val == nullptr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected