Skip to content

Commit 6c7de4e

Browse files
authored
GH-48811: [C++][FlightRPC] ODBC: Add missing arrow:: to fix build (#48810)
### Rationale for this change Add `arrow::` to `Decimal128Type::kMaxPrecision` to fix the build ### What changes are included in this PR? - Add `arrow::` as prefix to `Decimal128Type::kMaxPrecision` ### Are these changes tested? - Yes, on local MSVC and CI ### Are there any user-facing changes? N/A * GitHub Issue: #48811 Authored-by: Alina (Xi) Li <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
1 parent 2009cc9 commit 6c7de4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/src/arrow/flight/sql/odbc/odbc_impl/odbc_statement.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,8 @@ SQLRETURN ODBCStatement::GetData(SQLSMALLINT record_number, SQLSMALLINT c_type,
747747
// Get precision and scale from IRD (implementation row descriptor) as defaults.
748748
// These can be overridden by ARD (application row descriptor) if specified.
749749
const DescriptorRecord& ird_record = ird_->GetRecords()[record_number - 1];
750-
int precision =
751-
ird_record.precision > 0 ? ird_record.precision : Decimal128Type::kMaxPrecision;
750+
int precision = ird_record.precision > 0 ? ird_record.precision
751+
: arrow::Decimal128Type::kMaxPrecision;
752752
int scale = ird_record.scale;
753753

754754
if (c_type == SQL_ARD_TYPE) {

0 commit comments

Comments
 (0)