File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ Common Changes
6767 - Fixed bug when fetching numeric data that has no decimal point but the
6868 Arrow array has scale > 0
6969 - Fixed bug when fetching dates that are in the year 2038 or later
70+ - Fixed bug when fetching numeric data with precision that exceeds 38 as
71+ decimal data
7072
7173 Note the data frame support in python-oracledb 3.3 is a pre-release, and
7274 may change in a future version.
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ cdef class OracleMetadata:
6262 uint8_t py_type_num = self ._py_type_num
6363 uint32_t db_type_num = self .dbtype.num
6464 if db_type_num == DB_TYPE_NUM_NUMBER:
65- if py_type_num == PY_TYPE_NUM_DECIMAL and self .precision > 0 :
65+ if py_type_num == PY_TYPE_NUM_DECIMAL \
66+ and self .precision > 0 and self .precision <= 38 :
6667 self ._arrow_type = NANOARROW_TYPE_DECIMAL128
6768 elif py_type_num == PY_TYPE_NUM_STR:
6869 self ._arrow_type = NANOARROW_TYPE_STRING
You can’t perform that action at this time.
0 commit comments