isql exponential format of numbers has zero pad on windows [CORE1171] #1594
Submitted by: Bill Oliver (verbguy)
Assigned to: Claudio Valderrama C. (robocop)
Is related to QA260
Entering a tracker, as this might be a useful snippet to add to Firebird 2+.
Exponential formatting of numbers is different between Windows and Unix for 2-digit exponents. On Windows there is a zero pad, so that the exponent is always 3 digits. For example:
select cast ('-2.488355210669293e+39' as double precision) from rdb$database;
On Unix you get
On Windows you get
With the Microsoft and Intel compilers, the default behavior is to zero pad. This differs on Unix.
It would be nice to to have the zero pad removed on Windows. This would make managing differences between hosts easier. Tom has fixed this in ISQL with the following code:
#if defined(SAS_FIREBIRD) && defined(SSA_OS_WIN)
and this is called from print_item() for types of SQL_FLOAT and SQL_DOUBLE:
The text was updated successfully, but these errors were encountered:
Commented by: Bill Oliver (verbguy)
I confirm this is now fixed in HEAD, thanks!
SQL> show version;