diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-01-31 10:04:16 +0400 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-01-31 10:04:16 +0400 |
commit | abc17f8f3c132971a04cc76543d3c0ef23386b79 (patch) | |
tree | 8ecd530e159e09b3b4589e988c143514e603d6df /sql/sql_select.h | |
parent | 150c99dffe2737ef4de7534bf297ff6943612cd0 (diff) | |
download | mariadb-git-abc17f8f3c132971a04cc76543d3c0ef23386b79.tar.gz |
fix for the bug #2419: order by ignores rows.
null_ref_key moved to TABLE_REF.
new null range created if necessary.
mysql-test/r/order_by.result:
fix for the bug #2419: order by ignores rows
mysql-test/t/order_by.test:
fix for the bug #2419: order by ignores rows
sql/item_subselect.cc:
fix for the bug #2419: order by ignores rows
sql/opt_range.cc:
fix for the bug #2419: order by ignores rows
sql/sql_select.cc:
fix for the bug #2419: order by ignores rows
sql/sql_select.h:
fix for the bug #2419: order by ignores rows
Diffstat (limited to 'sql/sql_select.h')
-rw-r--r-- | sql/sql_select.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h index 7cc71117914..ed650c450c0 100644 --- a/sql/sql_select.h +++ b/sql/sql_select.h @@ -46,6 +46,8 @@ typedef struct st_table_ref store_key **key_copy; // Item **items; // val()'s for each keypart table_map depend_map; // Table depends on these tables. + byte *null_ref_key; // null byte position in the key_buf. + // used for REF_OR_NULL optimization. } TABLE_REF; /* @@ -88,7 +90,6 @@ typedef struct st_join_table { QUICK_SELECT *quick; Item *on_expr; const char *info; - byte *null_ref_key; int (*read_first_record)(struct st_join_table *tab); int (*next_select)(JOIN *,struct st_join_table *,bool); READ_RECORD read_record; |