Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cpp/src/arrow/flight/sql/odbc/odbc_impl/odbc_statement.cc
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,8 @@ SQLRETURN ODBCStatement::GetData(SQLSMALLINT record_number, SQLSMALLINT c_type,
// Get precision and scale from IRD (implementation row descriptor) as defaults.
// These can be overridden by ARD (application row descriptor) if specified.
const DescriptorRecord& ird_record = ird_->GetRecords()[record_number - 1];
int precision =
ird_record.precision > 0 ? ird_record.precision : Decimal128Type::kMaxPrecision;
int precision = ird_record.precision > 0 ? ird_record.precision
: arrow::Decimal128Type::kMaxPrecision;
int scale = ird_record.scale;

if (c_type == SQL_ARD_TYPE) {
Expand Down
Loading