MCPcopy Create free account
hub / github.com/apache/arrow / SetDataPtrOnRecord

Method SetDataPtrOnRecord

cpp/src/arrow/flight/sql/odbc/odbc_impl/odbc_descriptor.cc:563–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563void ODBCDescriptor::SetDataPtrOnRecord(SQLPOINTER data_ptr, SQLSMALLINT record_number) {
564 assert(static_cast<size_t>(record_number) <= records_.size());
565 DescriptorRecord& record = records_[record_number - 1];
566 if (data_ptr) {
567 record.CheckConsistency();
568 record.is_bound = true;
569 } else {
570 record.is_bound = false;
571 }
572 record.data_ptr = data_ptr;
573
574 // Bookkeeping on the highest bound record (used for returning SQL_DESC_COUNT)
575 if (highest_one_based_bound_record_ < record_number && data_ptr) {
576 highest_one_based_bound_record_ = record_number;
577 } else if (highest_one_based_bound_record_ == record_number && !data_ptr) {
578 highest_one_based_bound_record_ = CalculateHighestBoundRecord(records_);
579 }
580 has_bindings_changed_ = true;
581}
582
583void DescriptorRecord::CheckConsistency() {
584 // TODO

Callers

nothing calls this directly

Calls 3

CheckConsistencyMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected