Skip to content

Commit

Permalink
bugfix removing support for OraNumber (see issue #21)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipenoris committed Apr 10, 2021
1 parent 5b3f68c commit 4107cfc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/enums.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ end
ORA_NATIVE_TYPE_STMT = 3010
ORA_NATIVE_TYPE_BOOLEAN = 3011
ORA_NATIVE_TYPE_ROWID = 3012
ORA_NATIVE_TYPE_NUMBER = 3013
#ORA_NATIVE_TYPE_NUMBER = xxxx # see issue #21
end

@enum OraStatementType::UInt16 begin
Expand Down
9 changes: 5 additions & 4 deletions src/oracle_value.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ end
return quote
dpiData_getUint64(data_handle)
end
elseif N == ORA_NATIVE_TYPE_NUMBER
return quote
dpiData_getNumber(data_handle)
end
# see issue #21
# elseif N == ORA_NATIVE_TYPE_NUMBER
# return quote
# dpiData_getNumber(data_handle)
# end
else
error("Native type $N not expected for value with numeric oracle type.")
end
Expand Down

0 comments on commit 4107cfc

Please sign in to comment.