Issue 344 in glassdb: ScaledDecimal>>_printAsDateAndTimeANSISecondsOn: throws errors for negative numbers

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 344 in glassdb: ScaledDecimal>>_printAsDateAndTimeANSISecondsOn: throws errors for negative numbers

glassdb
Status: Accepted
Owner: [hidden email]
Labels: Type-Defect Priority-Medium GLASS-Server Version-1.0-beta.8.7.1

New issue 344 by [hidden email]:  
ScaledDecimal>>_printAsDateAndTimeANSISecondsOn: throws errors for negative  
numbers
http://code.google.com/p/glassdb/issues/detail?id=344

I hit the original error in SqueakTests>>testDateAndTimePrinting running in  
GemStone 3.0.2 (unreleased), but it is an error in the basic algorithm used:

   -12.3s0 _printAsDateAndTimeANSISecondsOn: '' writeStream.

reproduces the error in 2.x and 3.x

Reply | Threaded
Open this post in threaded view
|

Re: Issue 344 in glassdb: ScaledDecimal>>_printAsDateAndTimeANSISecondsOn: throws errors for negative numbers

glassdb
Updates:
        Owner: ---

Comment #1 on issue 344 by [hidden email]:  
ScaledDecimal>>_printAsDateAndTimeANSISecondsOn: throws errors for negative  
numbers
http://code.google.com/p/glassdb/issues/detail?id=344

The seconds portion of a DateAndTime should never be negative but should  
satisfy the following:
     0 <= seconds < 60
The problem is in Number>>#'\\' which sometimes returns a negative number  
for a positive receiver. This has been reported as server bug #42196.

Reply | Threaded
Open this post in threaded view
|

Re: Issue 344 in glassdb: ScaledDecimal>>_printAsDateAndTimeANSISecondsOn: throws errors for negative numbers

glassdb
Updates:
        Status: Fixed
        Labels: nigid-42196

Comment #2 on issue 344 by [hidden email]:  
ScaledDecimal>>_printAsDateAndTimeANSISecondsOn: throws errors for negative  
numbers
http://code.google.com/p/glassdb/issues/detail?id=344

fixed in server version 3.1