ZQuery.Cancel error

The offical for ZeosLib 7.3 Report problems, ask for help, post proposals for the new version of Zeoslib 7.3/v8
Quick Info:
-We made two new drivers: odbc(raw and unicode version) and oledb
-GUID domain/field-defined support for FB
-extended error infos of Firebird
-performance ups are still in queue
In future some more feature will arrive, so stay tuned and don't hassitate to help
Post Reply
nlanger
Junior Boarder
Junior Boarder
Posts: 27
Joined: 14.10.2020, 21:56

ZQuery.Cancel error

Post by nlanger »

I encountered an error with ZQuery.Cancel. If there is one data record in the ZQuery and you do ZQuery.Insert is all OK, but if you do not do POST but CANCEL, the 1st sentence disappears and not the newly appended 2nd sentence. This only happens if there is exactly 1 record in it, if there are several records it works correctly.

I am using Zeos 7.3 beta and ZConn.Protocol = 'OleDB' on the MS-SQL Server 2014.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: ZQuery.Cancel error

Post by EgonHugeist »

Just let you know: Have no time to look to that bug. Guess ou are right. I will write a second post if i got it resolved..
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
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: ZQuery.Cancel error

Post by EgonHugeist »

Hello Norbert
https://sourceforge.net/p/zeoslib/code-0/7086/ should fix it. Can you confirm it?
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
nlanger
Junior Boarder
Junior Boarder
Posts: 27
Joined: 14.10.2020, 21:56

Re: ZQuery.Cancel error

Post by nlanger »

Yes that solves the problem - great.

I still have one effect, but it doesn't always happen. Have not yet found a reason under which conditions this occurs.

- Same access ZQuery via ZConn Protocol = 'OleDB' to MS-SQLserver 2014.
- With "select * from RGPOS where BNR=:0" = 4 data records are returned.
- Now you delete the penultimate data record = OK
- Now delete the last data record - error: "Bound variable index out of range: 7." (The number increases by two for every mistake.)

Always delete the last record = everything OK
After every ZQuery.Delete you also do ZQuery.Refresh = everything OK

Norbert
nlanger
Junior Boarder
Junior Boarder
Posts: 27
Joined: 14.10.2020, 21:56

Re: ZQuery.Cancel error

Post by nlanger »

Addition: The table RGPOS has two fields in the primary key.

BNR varchar(9) not null *primary key
POS varchar(3) not null *primary key
ANR varchar(15) not null
BEZ varchar(100) null
INFO text null
LGNR varchar(2) null
ANZ numeric(8, 3) not null
...
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: ZQuery.Cancel error

Post by EgonHugeist »

Hello Norbert,

please open a ticket for that:
make a create skript, a popullate data skript and a small no gui app (if possible) and i can fix it quickly. Yet my crystal ball doesn't talk to me :)
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
Post Reply