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

Method GetInt16

src/sdk/batch_request_result_set_sql.cc:205–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203bool SQLBatchRequestResultSet::GetChar(uint32_t index, char* result) { return false; }
204
205bool SQLBatchRequestResultSet::GetInt16(uint32_t index, int16_t* result) {
206 if (result == NULL) {
207 LOG(WARNING) << "input ptr is null pointer";
208 return false;
209 }
210 size_t mapped_index = column_remap_[index];
211 int32_t ret;
212 if (IsCommonColumnIdx(index)) {
213 ret = common_row_view_->GetInt16(mapped_index, result);
214 } else {
215 ret = non_common_row_view_->GetInt16(mapped_index, result);
216 }
217 return ret == 0;
218}
219
220bool SQLBatchRequestResultSet::GetInt32(uint32_t index, int32_t* result) {
221 if (result == NULL) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected