CakeDC / cakephp-oracle-driver

CakePHP 3 Driver for Oracle Database
Other
40 stars 24 forks source link

Floats in database returns with no decimals #16

Closed hugolizama closed 7 years ago

hugolizama commented 7 years ago

Hi, I have quantities store in the oracle like 17.12345 but in a "find()" instruction i get the number as 17 with no decimals.

That field in oracle is DataType: Number with Precision: 22 and Scale: 8.

This is what the query returns

\src\Controller\ConsultasController.php (line 115) [ (int) 0 => object(App\Model\Entity\Padron) { ... 'CANTIDAD' => (float) 17, <---- '[new]' => false, '[accessible]' => [ '*' => true ], '[dirty]' => [], '[original]' => [], '[virtual]' => [], '[errors]' => [], '[invalid]' => [], '[repository]' => 'Padron' } ]

Any idea??

hugolizama commented 7 years ago

Sorry to bother it´s not the oracle library, it's some issue with my server. So delete this issue if you want.