| 256 | return true; |
| 257 | } |
| 258 | bool SQLRequestRow::AppendFloat(float val) { |
| 259 | if (!Check(::hybridse::sdk::kTypeFloat)) return false; |
| 260 | int8_t* ptr = buf_ + offset_vec_[cnt_]; |
| 261 | *(reinterpret_cast<float*>(ptr)) = val; |
| 262 | if (record_cols_.find(cnt_) != record_cols_.end()) { |
| 263 | record_value_.emplace(schema_->GetColumnName(cnt_), std::to_string(val)); |
| 264 | } |
| 265 | cnt_++; |
| 266 | return true; |
| 267 | } |
| 268 | |
| 269 | bool SQLRequestRow::AppendDouble(double val) { |
| 270 | if (!Check(::hybridse::sdk::kTypeDouble)) return false; |
nothing calls this directly
no test coverage detected