~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 1 16 years ago brian clean slate Diff
config 1 16 years ago brian clean slate Diff
drizzled 214 16 years ago Brian Aker Rename of fields (fix issue with string and decima Diff
extra 1022.2.34 15 years ago Monty Taylor Merged Monty from lp:~mordred/drizzle/kill-malloc Diff
gnulib 815.1.1 15 years ago Monty Taylor Add timegm which is missing on Solaris. Diff
m4 202.3.14 16 years ago Monty Taylor Moved m4 macros to top-level m4 dir, per GNU stand Diff
mystrings 212.5.4 16 years ago Monty Taylor Renamed strings to mystrings, for include/lib nami Diff
mysys 1 16 years ago brian clean slate Diff
plugin 1 16 years ago brian clean slate Diff
po 202.3.1 16 years ago Monty Taylor Added very initial gettextize stuff. Diff
support-files 1 16 years ago brian clean slate Diff
tests 77.1.47 16 years ago Monty Taylor Moved test to tests... Diff
.bzrignore 1130.1.1 15 years ago Monty Taylor Merged in plugin-slot-reorg patches. 5.2 KB Diff Download File
ABOUT-NLS 202.3.1 16 years ago Monty Taylor Added very initial gettextize stuff. 74.7 KB Diff Download File
AUTHORS 968.2.18 15 years ago Monty Taylor Merged from Padraig. 377 bytes Diff Download File
configure.ac 1143.2.9 15 years ago Jay Pipes Merge Monty's fixes for moving crc32 function into 22 KB Diff Download File
COPYING 1 16 years ago brian clean slate 18.6 KB Diff Download File
Doxyfile 264.3.1 16 years ago Jay Pipes * Added Doxyfile configuration for doxygen builds 55.2 KB Diff Download File
DRIZZLE.FAQ 665.1.4 15 years ago Eric Herman Added pointer to online version of the FAQ 5.8 KB Diff Download File
EXCEPTIONS-CLIENT 1 16 years ago brian clean slate 5 KB Diff Download File
Makefile.am 1143.2.23 15 years ago Jay Pipes Merge trunk and resolve all conflicts. 7.5 KB Diff Download File
NEWS 194 16 years ago Brian Aker Documentation cleanup 41 bytes Diff Download File
README 992.1.3 15 years ago Monty Taylor Clarified instructions in README. 821 bytes Diff Download File