| 207 | } |
| 208 | |
| 209 | bool SQLRequestRow::AppendTimestamp(int64_t val) { |
| 210 | if (!Check(::hybridse::sdk::kTypeTimestamp)) return false; |
| 211 | int8_t* ptr = buf_ + offset_vec_[cnt_]; |
| 212 | *(reinterpret_cast<int64_t*>(ptr)) = val; |
| 213 | if (record_cols_.find(cnt_) != record_cols_.end()) { |
| 214 | record_value_.emplace(schema_->GetColumnName(cnt_), std::to_string(val)); |
| 215 | } |
| 216 | cnt_++; |
| 217 | return true; |
| 218 | } |
| 219 | bool SQLRequestRow::AppendDate(int32_t val) { |
| 220 | if (!Check(::hybridse::sdk::kTypeDate)) return false; |
| 221 | int8_t* ptr = buf_ + offset_vec_[cnt_]; |
nothing calls this directly
no test coverage detected