diff options
author | unknown <monty@mysql.com> | 2006-05-24 11:56:59 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2006-05-24 11:56:59 +0300 |
commit | 12a0f4ff14d4700898a10cd95ada901ed19e2ed2 (patch) | |
tree | 20d3e7d67881628df33708fc37eeebee886c5f5e /sql/field.h | |
parent | fc2e96ee7b5bf2c0370310c12ec260705dfe0318 (diff) | |
download | mariadb-git-12a0f4ff14d4700898a10cd95ada901ed19e2ed2.tar.gz |
Remove dflt_field from field structure as this was only needed when createing temporary table and I found another soultion that doesn't increase the size of the field structure for all table instances. (Better fix for bug #19089)
Fixed compiler warnings
Fixed valgrind warning in Item_date_add_intervall::eq. (Recoding of bugfix #19490)
sql/field.cc:
remove dflt_field from field structure (not needed)
Simple cleanup of code that been copied elsewhere
sql/field.h:
remove dflt_field from field structure (not needed)
sql/item.h:
Removed compiler warnings
sql/item_timefunc.cc:
Fixed Item_date_add_intervall::eq
The problem was that when we call 'eq' 'this' is not fixed, which means we can't call const_item() or a value function.
I fixed this so that we check eq for all arguments and that the sign and type are identical.
(The original code gave a 'accessing uninitialized data' in valgrind.
sql/mysql_priv.h:
Added default fields to create_tmp_field
sql/sql_insert.cc:
New default_field parameter to create_tmp_field()
sql/sql_select.cc:
New default_field parameter to create_tmp_field()
Use this in create_tmp_table() to set right default value for a field
Diffstat (limited to 'sql/field.h')
-rw-r--r-- | sql/field.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sql/field.h b/sql/field.h index 4c3f6cd0709..f4d27e46877 100644 --- a/sql/field.h +++ b/sql/field.h @@ -54,12 +54,6 @@ public: char *ptr; // Position to field in record uchar *null_ptr; // Byte where null_bit is /* - dflt_field is used only for the fields of temporary tables. - It points to the default value of the field in another table - from which this field has been created. - */ - Field *dflt_field; // Field to copy default value from - /* Note that you can use table->in_use as replacement for current_thd member only inside of val_*() and store() members (e.g. you can't use it in cons) */ |