~drizzle-trunk/drizzle/development

This patch fixes a bug in the replication service and transaction
proto file that was occurring when an UPDATE statement was SETting
a field to a value by referencing the field itself.

For instance, imagine the following scenario:

CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY, count INT NOT NULL);
INSERT INTO t1 (id, counter) VALUES (1,1),(2,2),(3,3);
UPDATE t1 SET counter = counter + 1 WHERE id IN (1,2);

Previously, the UpdateHeader message contained a single set_value
byte array containing the new value to set the field to.  However,
in scenarios such as the above, for each record being updated, the
value that the field would be set to is different.  Therefore, this
patch moves the set_value byte array from the UpdateHeader message
into the UpdateRecord message and names it after_value to match the
existing before_value byte array.

This patch adds a test case to the existing update.test case in the
transaction log suite and modifies the statement_transform library to
properly handle the above scenario.
Filename Latest Rev Last Changed Committer Comment Size
..
client_priv.h 1122.2.10 15 years ago Monty Taylor Fixed all of the include guards. 3.4 KB Diff Download File
drizzle.1 1097.1.1 15 years ago Monty Taylor Fixed manpage warnings. Make debian lintian happy. 39.5 KB Diff Download File
drizzle.cc 1183.4.23 15 years ago Stewart Smith remove unused define: DRIZZLE_DEFALUT_INPUT_LINE 127 KB Diff Download File
drizzled.8 1022.2.25 15 years ago Monty Taylor Imported manpages for the things we ship. Started 2.7 KB Diff Download File
drizzledump.1 1097.1.1 15 years ago Monty Taylor Fixed manpage warnings. Make debian lintian happy. 33.7 KB Diff Download File
drizzledump.cc 1183.4.62 15 years ago Stewart Smith put compatible_mode_typelib back, as it is actuall 84.5 KB Diff Download File
drizzleimport.1 1022.2.25 15 years ago Monty Taylor Imported manpages for the things we ship. Started 9.1 KB Diff Download File
drizzleimport.cc 971.6.11 15 years ago Eric Day Removed purecov messages. 20.8 KB Diff Download File
drizzleslap.1 1022.2.25 15 years ago Monty Taylor Imported manpages for the things we ship. Started 13.5 KB Diff Download File
drizzleslap.cc 1093.1.12 15 years ago Jay Pipes Merge Monty's fix-asserts branch. 76.9 KB Diff Download File
drizzletest.cc 1130.3.34 15 years ago Monty Taylor Merged up with build. 183 KB Diff Download File
errname.cc 1124.3.2 15 years ago Diego Medina Renamed ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT to ER_WR 27.7 KB Diff Download File
errname.h 1122.2.10 15 years ago Monty Taylor Fixed all of the include guards. 1.1 KB Diff Download File
get_password.cc 994.2.4 15 years ago Monty Taylor Blast. Fixed some make distcheck issues. 3.3 KB Diff Download File
get_password.h 928.1.1 15 years ago Eric Day Started client changes. 1 KB Diff Download File
linebuffer.cc 1095.2.5 15 years ago Robert Klahn more changes from code review feedback 1.5 KB Diff Download File
linebuffer.h 1095.2.4 15 years ago Robert Klahn changes from code review feedback 1 KB Diff Download File