| 275 | } |
| 276 | |
| 277 | bool 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 | |
| 296 | bool SQLBatchRequestResultSet::GetDate(uint32_t index, int32_t* date) { |
| 297 | if (date == NULL) { |
nothing calls this directly
no outgoing calls
no test coverage detected