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

Method GetDouble

src/sdk/batch_request_result_set_sql.cc:277–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277bool SQLBatchRequestResultSet::GetDouble(uint32_t index, double* result) {
278 if (result == NULL) {
279 LOG(WARNING) << "input ptr is null pointer";
280 return false;
281 }
282 if (!IsValidColumnIdx(index)) {
283 LOG(WARNING) << "column idx out of bound " << index;
284 return false;
285 }
286 size_t mapped_index = column_remap_[index];
287 int32_t ret;
288 if (IsCommonColumnIdx(index)) {
289 ret = common_row_view_->GetDouble(mapped_index, result);
290 } else {
291 ret = non_common_row_view_->GetDouble(mapped_index, result);
292 }
293 return ret == 0;
294}
295
296bool SQLBatchRequestResultSet::GetDate(uint32_t index, int32_t* date) {
297 if (date == NULL) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected