The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!
My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
UPDATE
Job
SET
ID = :ID,
Owner = :Owner,
...
WHERE
ID = :Old_ID
This works OK, but ONLY if the record really changes. When I modify some field but the value at the end remains the same error "0 recod(s) updated. Only one record should have been updated." is raised.
Thans anybody for help.
You do not have the required permissions to view the files attached to this post.
Last edited by vejrous on 19.07.2018, 09:33, edited 1 time in total.
which driver do you use (firebird, postgres, ...)? And which database do you work with (Firebird 2.5, PostgreSQL 9.6, MSSQL 2008, ...)?
Usually Zeos expects that after an update the database reports one modified record. Maybe in the case where you don't change any data the database reports no changed records which in turn leads Zeos to belive that the updated record already was deleted on the database. In the end we will have to work out a solution on how Zeos trets this special case...
Of couse that setting the same value is specific, but this means it also happens when using LookupComboBox (when user wants to see what values are available: he clicks the ComboBox, DataSource is set to dsEdit, then he may keep the same value).
the reason for this is that MySQL behaves differently from other databases when it comes to returning the affected rows count - it returns the changed rows count only. See https://dev.mysql.com/doc/refman/8.0/en/mysql-affected-rows.html for the original explanation.
For Zeos 7.2 please add the following line to your TZConnection.Properties:
CLIENT_FOUND_ROWS=1
This will enable the CLILENT_FOUND_ROWS option which will change the behaviour of MySQL according to the documentation in the link above.
For Zeos 7.3 we are discussing wether to enable this option by default. To follow this discussion please have a look at the following ticket: https://sourceforge.net/p/zeoslib/tickets/270/