You have already lost

When the following code introduces a valgrind warning… you are in a world of pain and loss:

=== modified file 'drizzled/field/blob.h'
--- drizzled/field/blob.h	2009-12-21 08:16:13 +0000
+++ drizzled/field/blob.h	2010-01-18 01:36:48 +0000
@@ -32,6 +32,7 @@
  */
 class Field_blob :public Field_str {
 protected:
+  uint32_t assassass;
   uint32_t packlength;
   String value;				// For temporaries
 public:

3 thoughts on “You have already lost

  1. What was valgrind warning you about?

    I’m expecting this to be some totally Drizzle specific black magic, but I’m still curious.

  2. Soo…. this is the inheritance chain:

    Field <- Field_str <- Field_blob and Field <- Field_str <- Field_varstring and the code casts a Field_blob to a Field_varstring.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.