diff options
author | unknown <monty@mysql.com> | 2005-07-01 10:07:01 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2005-07-01 10:07:01 +0300 |
commit | b7e409a58349ea56f09964a401c2742303b0b78a (patch) | |
tree | 1a3837275384c3c526ca9fc41c8af1c9077160c5 /sql | |
parent | 0ff72e6019d8f9deec9159db87cf7947142539b3 (diff) | |
parent | df7852f20d25f9f298a3a65133cb192d4f08983e (diff) | |
download | mariadb-git-b7e409a58349ea56f09964a401c2742303b0b78a.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/my/mysql-4.1
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_select.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 044dc60e4b6..fcc10ae466a 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -8222,12 +8222,10 @@ cp_buffer_from_ref(THD *thd, TABLE_REF *ref) thd->count_cuted_fields= CHECK_FIELD_IGNORE; for (store_key **copy=ref->key_copy ; *copy ; copy++) { - int res; - if ((res= (*copy)->copy())) + if ((*copy)->copy() & 1) { thd->count_cuted_fields= save_count_cuted_fields; - if ((res= res & 1)) - return res; // Something went wrong + return 1; // Something went wrong } } thd->count_cuted_fields= save_count_cuted_fields; @@ -8818,7 +8816,8 @@ setup_copy_fields(THD *thd, TMP_TABLE_PARAM *param, DBUG_RETURN(0); err: - delete [] param->copy_field; // This is never 0 + if (copy) + delete [] param->copy_field; param->copy_field=0; err2: DBUG_RETURN(TRUE); |