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:
What was valgrind warning you about?
I’m expecting this to be some totally Drizzle specific black magic, but I’m still curious.
Maybe valgrind just doesn’t like ass? :)
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.