Wrong result at select query

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
h.o.o.k
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: 30.10.2009, 13:18

Wrong result at select query

Post by h.o.o.k »

Hello,
I have this problem. i use oracle 10g db and there i have table with field of NUMBER datatype. There i have value (number) with decimal point etc. (0.45).

i using zeos 6.6.6 .

so and when i open select query that result is 4 (original in db is 4.58).

when i open this query in sql developer that all is ok.

where is a problem please??


i am sorry for my English.
Wild_Pointer
Expert Boarder
Expert Boarder
Posts: 164
Joined: 18.03.2008, 13:03
Contact:

Post by Wild_Pointer »

h.o.o.k,
what programming tool do you use? There have been problems with lazarus users because of the way lazarus does string to float conversions if I remember right. The indication of this would be different result when decimal separator is point and comma.
Also please provide the table structure you are using and query you execute to get the result.
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

h.o.o.k,

If you're a Lazarus issue as Wild_Pointer proposes, you can find the solution in this patch :
http://fisheye2.atlassian.com/changelog/zeos/?cs=761
This patch is done already in 6.6-patches branch and will be available in 6.7 when it comes available.

If you're not a Lazarus user you'll have to provide more information.

Mark
Image
Post Reply