[patch_done] An Error in zeos 7, last svn
Moderators: gto, EgonHugeist, olehs
[patch_done] An Error in zeos 7, last svn
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?
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?
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
cpalx,
which engine do you use here? PostgreSQL?
Michael
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/
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/
Code: Select all
select -1.25 as num
Or replace . on ,
Better execute in this http://www.sqlmanager.net/en/products/p ... ql/manager
Lazarus 1.0.8 fpc 2.6.0
This bug do exist - simple test case:ism wrote:Try do this with stranded Lazarus componentsCode: Select all
select -1.25 as num
Or replace . on ,
Better execute in this http://www.sqlmanager.net/en/products/p ... ql/manager
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
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Sorry guys, wasn't at home.
Patch done Rev.1125\testing and Rev.1126\tesing-egonhugeist
5min work... Confirmed?
Michael
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/
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/
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
markus,
??? What you mean here?
??? 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/
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/