Open daveherman71 opened 2 years ago
The SQLSRV driver returns decimals and money fields without the leading 0.
To fix this we require the FormatDecimals parameter to be passed in the sqlsrv_driver.php file.
FormatDecimals
sqlsrv_driver.php
$connection = array( 'UID' => empty($this->username) ? '' : $this->username, 'PWD' => empty($this->password) ? '' : $this->password, 'Database' => $this->database, 'ConnectionPooling' => ($pooling === TRUE) ? 1 : 0, 'CharacterSet' => $charset, 'Encrypt' => ($this->encrypt === TRUE) ? 1 : 0, 'FormatDecimals' => 1, 'ReturnDatesAsStrings' => 1 );
The SQLSRV driver returns decimals and money fields without the leading 0.
To fix this we require the
FormatDecimals
parameter to be passed in thesqlsrv_driver.php
file.