diff options
author | serg@serg.mylan <> | 2003-12-09 21:56:11 +0100 |
---|---|---|
committer | serg@serg.mylan <> | 2003-12-09 21:56:11 +0100 |
commit | 0dea4148c821d5d7fe9ad2eb15e50120fe6c44c2 (patch) | |
tree | 5642253d489ffe5e099fd5ca097b55a5c5c2e1f2 /sql/opt_range.cc | |
parent | a5e0ea5c0e610d68ac27fcbd0269feaac9463621 (diff) | |
download | mariadb-git-0dea4148c821d5d7fe9ad2eb15e50120fe6c44c2.tar.gz |
followup
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 07f2f1eaf67..4bbeaca8a79 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -2447,6 +2447,7 @@ QUICK_SELECT *get_quick_select_for_ref(THD *thd, TABLE *table, TABLE_REF *ref) QUICK_SELECT *quick=new QUICK_SELECT(thd, table, ref->key, 1); KEY *key_info = &table->key_info[ref->key]; KEY_PART *key_part; + QUICK_RANGE *range; uint part; if (!quick) @@ -2458,8 +2459,7 @@ QUICK_SELECT *get_quick_select_for_ref(THD *thd, TABLE *table, TABLE_REF *ref) return quick; // empty range } - QUICK_RANGE *range= new QUICK_RANGE(); - if (!range) + if (!(range= new QUICK_RANGE())) goto err; // out of memory range->min_key=range->max_key=(char*) ref->key_buff; |