| 337 | } |
| 338 | |
| 339 | bool 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 | |
| 357 | bool SQLRequestRow::GetRecordVal(const std::string& col, std::string* val) { |
| 358 | if (val == nullptr) { |
nothing calls this directly
no outgoing calls
no test coverage detected