niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Sybase
A bug in Sybase's query parser/ numeric conversion code
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
joeNOSPAM@BEA.com
*nix forums beginner


Joined: 10 Jun 2005
Posts: 15

PostPosted: Wed Jul 12, 2006 5:30 pm    Post subject: A bug in Sybase's query parser/ numeric conversion code Reply with quote

Hi all. This issue was also raised in a previous post about a convert
oddity:

select convert(numeric(16,2), 5.3299),convert(numeric(16,2), '5.329')

returns


5.32 5.33


The problem is in the truncation/round-down of the first conversion,
compared
to the round-up of the second value that is actually lower. It's
definitely a DBMS
issue and not a client one, because if you select:

select convert(varchar(30), convert(numeric(16,2), 5.3299))

you still get 5.32

if you change the values to 5.999, you get

5.99 and 6.00


Joe Weinstein at BEA Systems
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 11:41 am | All times are GMT
navigation Forum index » Databases » Sybase
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Very slow query Michael Sutter MySQL 0 Fri Jul 21, 2006 1:10 pm
No new posts Where is this code not freeing memory ? jithoosin C++ 2 Fri Jul 21, 2006 9:39 am
No new posts Where is this code not freeing memory ? jithoosin C++ 1 Fri Jul 21, 2006 9:27 am
No new posts Where is this code not freeing memory ? jithoosin C++ 1 Fri Jul 21, 2006 9:12 am
No new posts Where is this code not freeing memory ? jithoosin C++ 0 Fri Jul 21, 2006 9:09 am

Western Union Money Transfer | Cell Phones | Adverse Credit Remortgage | Personal Loans | Car Insurance
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1420s ][ Queries: 16 (0.0802s) ][ GZIP on - Debug on ]