How automaticaly retrieve autoincrement field

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
przemm07
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 23.07.2007, 12:26

How automaticaly retrieve autoincrement field

Post by przemm07 »

Hi.

I use MySQL 4.1 and ZeosLib 6.5.1.
In TZQuery after inert null value into autoincrement field, DataSet is automatically refreshed with last_insert_id and this is great. But I have problem when use TZUpdateSQL with TZQuery. Autoincremented field is not automatically refreshing and I have problem with for example delete record. I dont want refresh each time all query after insert. What is workaround?

Thanks
Przemm07
Post Reply