[solved] Where is mistake?

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
merovingio
Fresh Boarder
Fresh Boarder
Posts: 24
Joined: 06.11.2011, 16:46
Location: Siracusa (Siclily)

[solved] Where is mistake?

Post by merovingio »

Hi! i have execute query

AnsiString qry = "insert into cases (id_user,rts,id_host,id_manager) ";
qry+= "values (:idu,:rts,:idh,:idm)";

datam->zQuery->Active = false;
datam->zQuery->SQL->Text = qry;
datam->zQuery->Prepare();
datam->zQuery->ParamByName("idu")->AsInteger = 10;
datam->zQuery->ParamByName("rts")->AsString = "0517";
datam->zQuery->ParamByName("idh")->AsString = "PSR999";
datam->zQuery->ParamByName("idm")->AsInteger = 2;
datam->zQuery->ExecSQL();

But not append anything!
Where is mistake?
merovingio
Fresh Boarder
Fresh Boarder
Posts: 24
Joined: 06.11.2011, 16:46
Location: Siracusa (Siclily)

Post by merovingio »

Usign zTable result non change.


datam->ZTable1->Active = true;
datam->ZTable1->Append();
datam->ZTable1->FieldByName("id_user")->AsInteger = 10;
datam->ZTable1->FieldByName("rts")->AsString = "0517";
datam->ZTable1->FieldByName("id_host")->AsString = "PSR999";
datam->ZTable1->FieldByName("id_manager")->AsInteger = 10;
datam->ZTable1->Post();
datam->ZTable1->ApplyUpdates();

and not error returned.
merovingio
Fresh Boarder
Fresh Boarder
Posts: 24
Joined: 06.11.2011, 16:46
Location: Siracusa (Siclily)

Solution found.

Post by merovingio »

I've solved the problem.
It is because mysql server delay tables updates.
Returning home I found update tables with right values...
after several minutes from append queries.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

merovingio,

wow what the hell are you doing that it could take minutes to see the results??

However, thank you for the reply that everything is ok.
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
merovingio
Fresh Boarder
Fresh Boarder
Posts: 24
Joined: 06.11.2011, 16:46
Location: Siracusa (Siclily)

The probles is in table format.

Post by merovingio »

Thanks for your help.

Today, changed type from InnoDB to MyIsam.
Using same application the update table is in realtime!!!
Strange!
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

merovingio,

Oh that is strange but could be true. I must admit my apps o work with InnoDB to and i've recognized strange speed differences between firebird and MySQL. Some operations on Firebird are 3x faster than on MySQL. So thank you for that hint. If i've the time to test the MyIsam engine i'll do 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
ism
Zeos Test Team
Zeos Test Team
Posts: 202
Joined: 02.10.2010, 20:48

Post by ism »

MyIsam not support transactions
May be in this case?
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 »

ism,

that could be the reason but firebird does support transactions and is still extreamly fast. I've only recognized it in one of my apps i made for my own company. Damn firebird is really lightning fast but has issues if you want to change the client characterset after create the db. But ism that can be the reason for such speed differences on MySQL.
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
merovingio
Fresh Boarder
Fresh Boarder
Posts: 24
Joined: 06.11.2011, 16:46
Location: Siracusa (Siclily)

view your zeos application

Post by merovingio »

Hi! EgonHugeist... have you on youtube your zeos application?
Locked