Hi,,,
I've used zeos with postgre, but i don't know how to use it with auto-increment, when i trie to append a new record by a TZquery the auto increment cod is not inserted, but when i execute a query (e.g. insert into...) all works ok..
thanks...
zeos and auto increment
Moderators: gto, cipto_kh, EgonHugeist
This is the normal behaviour of C/S applications.
The application must SELECT the new insrted record to known wich fielsd where changed by pre-insert triggers and / or identity or auto inc fields.
Normally JDBC drivers can do this because them do the trick changing the SQL text adding RETURNING clause for those databases which supports it.
Better use sequence and get the value from database then put it on the field of your table before post.
Regards.
The application must SELECT the new insrted record to known wich fielsd where changed by pre-insert triggers and / or identity or auto inc fields.
Normally JDBC drivers can do this because them do the trick changing the SQL text adding RETURNING clause for those databases which supports it.
Better use sequence and get the value from database then put it on the field of your table before post.
Regards.
-
- Junior Boarder
- Posts: 29
- Joined: 31.10.2005, 00:09
- Location: Antwerp
- Contact:
That's discussed here.