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

Method GetInt32

src/sdk/batch_request_result_set_sql.cc:220–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220bool SQLBatchRequestResultSet::GetInt32(uint32_t index, int32_t* result) {
221 if (result == NULL) {
222 LOG(WARNING) << "input ptr is null pointer";
223 return false;
224 }
225 if (!IsValidColumnIdx(index)) {
226 LOG(WARNING) << "column idx out of bound " << index;
227 return false;
228 }
229 size_t mapped_index = column_remap_[index];
230 int32_t ret;
231 if (IsCommonColumnIdx(index)) {
232 ret = common_row_view_->GetInt32(mapped_index, result);
233 } else {
234 ret = non_common_row_view_->GetInt32(mapped_index, result);
235 }
236 return ret == 0;
237}
238
239bool SQLBatchRequestResultSet::GetInt64(uint32_t index, int64_t* result) {
240 if (result == NULL) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected