Skip Menu |

This queue is for tickets about the DBD-Firebird CPAN distribution.

Report information
The Basics
Id: 101650
Status: resolved
Priority: 0/
Queue: DBD-Firebird

People
Owner: Nobody in particular
Requestors: monalisa [...] cbn.net.id
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.25



Subject: Error Retrieve Negative Float Number
Date: Wed, 21 Jan 2015 12:05:49 +0700
To: bug-DBD-Firebird [...] rt.cpan.org
From: monalisa <monalisa [...] cbn.net.id>
Hi, I’ve got error when retrieve negative number between 0 to -1. e.g : -0.8 always read as 0.8 But it’s ok if less than -1 (e.g : -1.1 etc) Configuration : CentOS 6 Perl 5.18.4.1 64 bits Firebird 2.5.3 64 bits DBD::Firebird 1.18 Thanks, Mona
На 21 ян. 2015, ср 07:06:21, monalisa@cbn.net.id написа: Show quoted text
> Hi, > > I’ve got error when retrieve negative number between 0 to -1. > > e.g : -0.8 always read as 0.8 > > But it’s ok if less than -1 (e.g : -1.1 etc) > > Configuration : > > CentOS 6 > Perl 5.18.4.1 64 bits > Firebird 2.5.3 64 bits
I can't reproduce this on 64-bit Debian/unstable with perl 5.20.1 and firebird 2.5.3. Can you try running the just committed 63-doubles.t test in t/? https://github.com/mariuz/perl-dbd-firebird -- dam
From: andrzej.dzik [...] ekspert.szczecin.pl
On Śr 21 Sty 2015, 15:36:22, DAM wrote: Show quoted text
> На 21 ян. 2015, ср 07:06:21, monalisa@cbn.net.id написа:
> > Hi, > > > > I’ve got error when retrieve negative number between 0 to -1. > > > > e.g : -0.8 always read as 0.8 > > > > But it’s ok if less than -1 (e.g : -1.1 etc) > > > > Configuration : > > > > CentOS 6 > > Perl 5.18.4.1 64 bits > > Firebird 2.5.3 64 bits
> > I can't reproduce this on 64-bit Debian/unstable with perl 5.20.1 and > firebird 2.5.3. > > Can you try running the just committed 63-doubles.t test in t/? > https://github.com/mariuz/perl-dbd-firebird >
flt defined as float - no errors flt defined as numeric(18,4) t/embed-63-doubles.t ............ 1/? # Failed test 'row 9 (3.14159)' # at t/embed-63-doubles.t line 85. # Comparing $data->[1] as a number # got : 3.1416 # expect : 3.14159 +/- 1e-06 # Failed test 'row 10 (-0.4)' # at t/embed-63-doubles.t line 92. # Comparing $data->[1] as a number # got : 0.4 ('0.4000') # expect : -0.4 +/- 1e-06 # Failed test 'row 11 (-0.6)' # at t/embed-63-doubles.t line 92. # Comparing $data->[1] as a number # got : 0.6 ('0.6000') # expect : -0.6 +/- 1e-06 # Failed test 'row 12 (-0.8)' # at t/embed-63-doubles.t line 92. # Comparing $data->[1] as a number # got : 0.8 ('0.8000') # expect : -0.8 +/- 1e-06 # Failed test 'row 13 (-0.95)' # at t/embed-63-doubles.t line 92. # Comparing $data->[1] as a number # got : 0.95 ('0.9500') # expect : -0.95 +/- 1e-06 # Failed test 'row 18 (-3.14159)' # at t/embed-63-doubles.t line 92. # Comparing $data->[1] as a number # got : -3.1416 # expect : -3.14159 +/- 1e-06 # Looks like you failed 6 tests of 79. t/embed-63-doubles.t ............ Dubious, test returned 6 (wstat 1536, 0x600) Andrzej Dzik
На 10 окт. 2016, пн 14:35:07, andrzej.dzik@ekspert.szczecin.pl написа: Show quoted text
> On Śr 21 Sty 2015, 15:36:22, DAM wrote:
> > На 21 ян. 2015, ср 07:06:21, monalisa@cbn.net.id написа:
> > > Hi, > > > > > > I’ve got error when retrieve negative number between 0 to -1. > > > > > > e.g : -0.8 always read as 0.8 > > > > > > But it’s ok if less than -1 (e.g : -1.1 etc) > > > > > > Configuration : > > > > > > CentOS 6 > > > Perl 5.18.4.1 64 bits > > > Firebird 2.5.3 64 bits
> > > > I can't reproduce this on 64-bit Debian/unstable with perl 5.20.1 and > > firebird 2.5.3. > > > > Can you try running the just committed 63-doubles.t test in t/? > > https://github.com/mariuz/perl-dbd-firebird > >
> flt defined as float - no errors > > flt defined as numeric(18,4) > > t/embed-63-doubles.t ............ 1/? > # Failed test 'row 9 (3.14159)' > # at t/embed-63-doubles.t line 85. > # Comparing $data->[1] as a number > # got : 3.1416 > # expect : 3.14159 +/- 1e-06 > > # Failed test 'row 10 (-0.4)' > # at t/embed-63-doubles.t line 92. > # Comparing $data->[1] as a number > # got : 0.4 ('0.4000') > # expect : -0.4 +/- 1e-06 > > # Failed test 'row 11 (-0.6)' > # at t/embed-63-doubles.t line 92. > # Comparing $data->[1] as a number > # got : 0.6 ('0.6000') > # expect : -0.6 +/- 1e-06 > > # Failed test 'row 12 (-0.8)' > # at t/embed-63-doubles.t line 92. > # Comparing $data->[1] as a number > # got : 0.8 ('0.8000') > # expect : -0.8 +/- 1e-06 > > # Failed test 'row 13 (-0.95)' > # at t/embed-63-doubles.t line 92. > # Comparing $data->[1] as a number > # got : 0.95 ('0.9500') > # expect : -0.95 +/- 1e-06 > > # Failed test 'row 18 (-3.14159)' > # at t/embed-63-doubles.t line 92. > # Comparing $data->[1] as a number > # got : -3.1416 > # expect : -3.14159 +/- 1e-06 > # Looks like you failed 6 tests of 79. > t/embed-63-doubles.t ............ Dubious, test returned 6 (wstat > 1536, 0x600) > > Andrzej Dzik
There was a problem with decoding numerics between -1 and 0, fixed in 1.25.