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

Method GetDate

src/sdk/batch_request_result_set_sql.cc:296–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296bool SQLBatchRequestResultSet::GetDate(uint32_t index, int32_t* date) {
297 if (date == NULL) {
298 LOG(WARNING) << "input ptr is null pointer";
299 return false;
300 }
301 if (!IsValidColumnIdx(index)) {
302 LOG(WARNING) << "column idx out of bound " << index;
303 return false;
304 }
305 size_t mapped_index = column_remap_[index];
306 int32_t ret;
307 if (IsCommonColumnIdx(index)) {
308 ret = common_row_view_->GetDate(mapped_index, date);
309 } else {
310 ret = non_common_row_view_->GetDate(mapped_index, date);
311 }
312 return ret == 0;
313}
314
315bool SQLBatchRequestResultSet::GetDate(uint32_t index, int32_t* year, int32_t* month,
316 int32_t* day) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected