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

Method AppendTimestamp

src/sdk/sql_request_row.cc:209–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209bool 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}
219bool SQLRequestRow::AppendDate(int32_t val) {
220 if (!Check(::hybridse::sdk::kTypeDate)) return false;
221 int8_t* ptr = buf_ + offset_vec_[cnt_];

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected