[patch_done] An Error in zeos 7, last svn

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
cpalx
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 27.04.2012, 00:16

[patch_done] An Error in zeos 7, last svn

Post by cpalx »

I use zeos 7.0 (last svn) in lazarus (0.9.31)

when i make a query like

select -1.25 as num

and i want to show in lazarus. display always positive ( 1.25 ). This onlye in real numbers.

The problem is Zeos, i used PQconecction and works ok.

any idea?
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

cpalx,

which engine do you use here? PostgreSQL?

Michael
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
ism
Zeos Test Team
Zeos Test Team
Posts: 202
Joined: 02.10.2010, 20:48

Post by ism »

Code: Select all

select -1.25 as num
Try do this with stranded Lazarus components

Or replace . on ,

Better execute in this http://www.sqlmanager.net/en/products/p ... ql/manager
Lazarus 1.0.8 fpc 2.6.0
markus
Senior Boarder
Senior Boarder
Posts: 58
Joined: 17.10.2011, 12:43
Location: Piotrków Trybunalski, Poland

Post by markus »

ism wrote:

Code: Select all

select -1.25 as num
Try do this with stranded Lazarus components

Or replace . on ,

Better execute in this http://www.sqlmanager.net/en/products/p ... ql/manager
This bug do exist - simple test case:
Put ZComponent and ZQuery on a form. Configure Your pgsql connection.
Enter Query text just like cpalx wrote: "select -1.25 as num
and then do:
ZQuery1->Active = true;
double tmp = ZQuery1->FieldByName("num")->AsFloat;
ShowMessage(FloatToStr(tmp));
ZQuery1->Active = false;

in CBuilder2010 on postgresql 9.0 i got message "1.25" - positive value
ism
Zeos Test Team
Zeos Test Team
Posts: 202
Joined: 02.10.2010, 20:48

Post by ism »

You have done what I wrote?
Results ?
Lazarus 1.0.8 fpc 2.6.0
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

Sorry guys, wasn't at home.

Patch done Rev.1125\testing and Rev.1126\tesing-egonhugeist

5min work... Confirmed?

Michael
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
markus
Senior Boarder
Senior Boarder
Posts: 58
Joined: 17.10.2011, 12:43
Location: Piotrków Trybunalski, Poland

Post by markus »

It does work better;)
Last edited by markus on 27.04.2012, 23:03, edited 1 time in total.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

markus,

??? What you mean here?
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
markus
Senior Boarder
Senior Boarder
Posts: 58
Joined: 17.10.2011, 12:43
Location: Piotrków Trybunalski, Poland

Post by markus »

no no - before Your patch...
i didn't see Your post

With rev 1126 this problem is gone
cpalx
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 27.04.2012, 00:16

Post by cpalx »

Thanks.
Locked