Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 38f71761 authored by olszewst's avatar olszewst Committed by Mateusz Loskot
Browse files

Correct binding to NUMBER in Oracle backend.

On platforms where std::numeric_limits<int>::digits10 == 9,
NUMBER(9,0) can be represented losslessly using C++ type int.
Oracle data type NUMBER(precision,scale) is bound to C++ int
if scale is 0 and precision < std::numeric_limits<int>::digits10.
This comparison prevents conversion of NUMBER(9,0) to int, thus it is corrected
using weaker form: precision <= std::numeric_limits<int>::digits10.

Fixes #126
Close #128

(Original commit message amended by Mateusz Loskot)
parent 0f95517c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment