Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.1.B1
-
None
Description
This bug was introduced by fix for CAY-2282.
Example:
GeneratedColumnDep dependent = context.newObject(GeneratedColumnDep.class);
dependent.setName("aaa");
dependent.setToMaster(idObject);
context.commitChanges();
Generated SQL:
INSERT INTO GENERATED_COLUMN_DEP (GENERATED_COLUMN_FK, NAME) VALUES (?, ?) UPDATE GENERATED_COLUMN_TEST SET GENERATED_COLUMN = ? WHERE GENERATED_COLUMN = ?
Note completely meaningless UPDATE query.