Number of digits in exponent of cast( <double> to varchar ) in dialect 1
depends on protocol that is used for connecting to database
------------------------------------------------------------------------------------------------------------------------------------
Key: CORE-4814
URL: http://tracker.firebirdsql.org/browse/CORE-4814
Project: Firebird Core
Issue Type: Bug
Components: API / Client Library, Engine
Affects Versions: 3.0 Beta 2
Environment: WINDOWS only, use XP Sp3
No such effect on Linux.
Reporter: Pavel Zotov
Priority: Minor
WI-T3.0.0.31844
C:\MIX\firebird\QA\fbt-repo\tmp>isql -q
SQL> set sql dialect 1;
SQL> create database 'c:\temp\c1712dia1_emb.fdb';
SQL> select cast(1e19 as varchar(30)) from rdb$database;
CAST
==============================
1.000000000000000e+19
SQL> exit;
C:\MIX\firebird\QA\fbt-repo\tmp>isql -q
SQL> set sql dialect 1;
SQL> create database 'localhost/3333:c:\temp\c1712dia1_tcp.fdb';
SQL> select cast(1e19 as varchar(30)) from rdb$database;
CAST
==============================
1.000000000000000e+019
Note that when TCP is used than exponent is '+019' -- with leading '0' left
side from '19'.
The same will be if we use existent database instead of creating it.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel