Leading zeroes to decimal value less than one |
We are using codeigniter 4 with microsoft sql server 2016 and we fetch data having decimal values less than zero, zero before dot getting removed.
After analysis of issue able to find that issue with sql server and they added below option from version pdo_sqlsrv v5.6.0, Below code which works for core php : Code: $attrs = array(PDO::SQLSRV_ATTR_FORMAT_DECIMALS => true); But didn't found way to do same with ci4 i.e. applying PDO::SQLSRV_ATTR_FORMAT_DECIMALS => true. Thanks in advance. |
Messages In This Thread |
Leading zeroes to decimal value less than one - by Sureshkumar - 01-07-2022, 05:16 AM
RE: Leading zeroes to decimal value less than one - by kenjis - 01-07-2022, 06:58 PM
RE: Leading zeroes to decimal value less than one - by Sureshkumar - 01-10-2022, 02:10 AM
RE: Leading zeroes to decimal value less than one - by kenjis - 01-10-2022, 07:23 PM
RE: Leading zeroes to decimal value less than one - by Sureshkumar - 01-14-2022, 11:31 PM
|