TZUPDATESQL and autoincrement fields

Forum related to MySQL

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
marcocot
Fresh Boarder
Fresh Boarder
Posts: 17
Joined: 23.05.2007, 13:52

TZUPDATESQL and autoincrement fields

Post by marcocot »

Hello,
I have a simple table with an autoincrement field. I have dropped a TZQUERY and aTZUpdateSQL.
Just to test I filled Zquery.SQL property with
SELECT * FROM atable
and filled the sql properties of the TZUpdateSQL component with the proper statentemnts.

I tryied working in autocommit mode:

Zquery1.Append;
ZQuery1.Post;

But I don't get the autoincrement field incremented. If I delete the TZUpdateSQL component it works fine. How can I make autoincrement field s work with TZUpdateSQL?

Thanks

Marco
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

marcocot,
Have a look here : http://zeos.firmos.at/viewtopic.php?t=1257

It's a firebird example, but I remember I've written some mysql related stuff as well.

Mark
Post Reply