summaryrefslogtreecommitdiff
path: root/sql/field.h
diff options
context:
space:
mode:
authorunknown <kaa@polly.local>2007-05-29 16:35:55 +0400
committerunknown <kaa@polly.local>2007-05-29 16:35:55 +0400
commit07c7cf12881759665baf90ba4f3f6c499b9fc780 (patch)
tree81c6fa3108f90c127cf2321142c8483ff3e6d1ef /sql/field.h
parenteab7e4d4e4375aa68996908ab391d3fd6b621ff3 (diff)
downloadmariadb-git-07c7cf12881759665baf90ba4f3f6c499b9fc780.tar.gz
Moved size_of() from Field_double to Field_real in order to properly clone Field_float and Field_double. This is to fix PushBuild failures introduced by the patch for bug #28121.
sql/field.h: Moved size_of() from Field_double to Field_real in order to properly clone Field_float and Field_double.
Diffstat (limited to 'sql/field.h')
-rw-r--r--sql/field.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/field.h b/sql/field.h
index 00854ca11b5..a0fd1a96480 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -470,6 +470,7 @@ public:
my_decimal *val_decimal(my_decimal *);
int truncate(double *nr, double max_length);
uint32 max_display_length() { return field_length; }
+ uint size_of() const { return sizeof(*this); }
};
@@ -794,7 +795,6 @@ public:
void sort_string(char *buff,uint length);
uint32 pack_length() const { return sizeof(double); }
void sql_type(String &str) const;
- uint size_of() const { return sizeof(*this); }
};