Re: [sqlite] Don't passes next tests on FreeBSD: atof1-*

2013-03-09 Thread Pavel Volkov
FreeBSD 9.1-RELEASE #0 r243826: Tue Dec 4 06:55:39 UTC 2012 r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 %sqlite3 :memory: SQLite version 3.7.15.1 2012-12-19 20:39:10 Enter ".help" for instructions Enter SQL st

Re: [sqlite] Don't passes next tests on FreeBSD: atof1-*

2013-03-08 Thread Pavel Volkov
And if set tcl_precision ... #!/usr/local/bin/tclsh8.6 # do_test atof1-1.$i.1 package require platform puts "\nplatform: [platform::generic]" set tcl_precision 15 puts "sqlite version: [package require sqlite3]" sqlite db :m

Re: [sqlite] Don't passes next tests on FreeBSD: atof1-*

2013-03-08 Thread Pavel Volkov
Excuse me, the test (test/atof1.test) of sqlite3 distribution, of course. It is guilty? Or tcl real to text conversation? Why only on the platform x32. Thanks. On Fri, Mar 8, 2013 at 3:10 PM, Richard Hipp wrote: > On Fri, Mar 8, 2013 at 6:00 AM, Pavel Volkov wrote: > >> And more tests. Perhaps o

Re: [sqlite] Don't passes next tests on FreeBSD: atof1-*

2013-03-08 Thread Pavel Volkov
Hello again. This problem was initially detected in the test "test/atof1.test", only on x32 platform. On x64 it work correct. On Fri, Mar 8, 2013 at 2:54 PM, Richard Hipp wrote: > On Fri, Mar 8, 2013 at 5:34 AM, Pavel Volkov wrote: > >> Hello. This is new test that illustrates the problem: >> >

Re: [sqlite] Don't passes next tests on FreeBSD: atof1-*

2013-03-08 Thread Richard Hipp
On Fri, Mar 8, 2013 at 6:00 AM, Pavel Volkov wrote: > And more tests. Perhaps one of the problems in converting real -> text? > Binary to decimal conversion is *the* problem. TCL uses an infinite precision integer math library to do exact binary to decimal conversion. SQLite does not have acces

Re: [sqlite] Don't passes next tests on FreeBSD: atof1-*

2013-03-08 Thread Pavel Volkov
And more tests. Perhaps one of the problems in converting real -> text? #!/usr/local/bin/tclsh8.6 # do_test atof1-1.$i.1 package require platform puts "\nplatform: [platform::generic]" puts "sqlite version: [package require sq

Re: [sqlite] Don't passes next tests on FreeBSD: atof1-*

2013-03-08 Thread Richard Hipp
On Fri, Mar 8, 2013 at 5:34 AM, Pavel Volkov wrote: > Hello. This is new test that illustrates the problem: > SQLite only claims to convert floating binary to decimal and back again with an accuracy of 14 significant digits. Going much beyond that requires the use of infinite precision integer

Re: [sqlite] Don't passes next tests on FreeBSD: atof1-*

2013-03-08 Thread Pavel Volkov
Hello. This is new test that illustrates the problem: #!/usr/local/bin/tclsh8.5 package require platform puts "\nplatform: [platform::generic]" puts "sqlite version: [package require sqlite3]" sqlite db test.db set xf [format

Re: [sqlite] Don't passes next tests on FreeBSD: atof1-*

2013-01-11 Thread Pavel Volkov
Hello. On a 64 bit system, all the tests running are successful. log compilation https://docs.google.com/file/d/0Bz0ZXsXvwY_gc09EeWk1VEktRVk/edit log testing https://docs.google.com/file/d/0Bz0ZXsXvwY_geDlIRWlUSTZTMFE/edit My operating system: FreeBSD fb2.localhost 9.1-PRERELEASE FreeBSD 9.1-PR

Re: [sqlite] Don't passes next tests on FreeBSD: atof1-*

2013-01-06 Thread Pavel Volkov
Hello. This is the output of: #define _LONGLONG 1 #define __CHAR_BIT__ 8 #define __DBL_DENORM_MIN__ 4.9406564584124654e-324 #define __DBL_DIG__ 15 #define __DBL_EPSILON__ 2.2204460492503131e-16 #define __DBL_HAS_DENORM__ 1 #define __DBL_HAS_INFINITY__ 1 #define __DBL_HAS_QUIET_NAN__ 1 #define __DB

Re: [sqlite] Don't passes next tests on FreeBSD: atof1-*

2013-01-05 Thread Richard Hipp
On Sat, Jan 5, 2013 at 1:40 AM, Pavel Volkov wrote: > Hello. Excuse me. > I found the following errors when running tests in the operating > system FreeBSD x32: (this is an example) > Please send the output of the following command: cpp -dM /dev/null | sort -- D. Richard Hipp d...@sqlite