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

Method GetBool

src/sdk/batch_request_result_set_sql.cc:184–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184bool SQLBatchRequestResultSet::GetBool(uint32_t index, bool* val) {
185 if (val == NULL) {
186 LOG(WARNING) << "input ptr is null pointer";
187 return false;
188 }
189 if (!IsValidColumnIdx(index)) {
190 LOG(WARNING) << "column idx out of bound " << index;
191 return false;
192 }
193 size_t mapped_index = column_remap_[index];
194 int32_t ret;
195 if (IsCommonColumnIdx(index)) {
196 ret = common_row_view_->GetBool(mapped_index, val);
197 } else {
198 ret = non_common_row_view_->GetBool(mapped_index, val);
199 }
200 return ret == 0;
201}
202
203bool SQLBatchRequestResultSet::GetChar(uint32_t index, char* result) { return false; }
204

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected