diff options
author | unknown <sergefp@mysql.com> | 2005-02-05 18:16:29 +0300 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2005-02-05 18:16:29 +0300 |
commit | e2c82051a05f51cb59fc4514249d7de5cea576c4 (patch) | |
tree | d8c699ee07ccc67bdf858d916ac7617588040480 /sql/table.h | |
parent | 8405ff016d353e25b76ed783c6db4cb829ef48f8 (diff) | |
download | mariadb-git-e2c82051a05f51cb59fc4514249d7de5cea576c4.tar.gz |
Outer joins cleanup: Remove TABLE::outer_join and use TABLE::maybe_null only (2nd patch after Monty's comments).
sql/mysql_priv.h:
Outer joins cleanup: Remove TABLE::outer_join and use TABLE::maybe_null only.
sql/opt_range.cc:
Outer joins cleanup: Remove TABLE::outer_join and use TABLE::maybe_null only.
sql/sql_base.cc:
Outer joins cleanup: Remove TABLE::outer_join and use TABLE::maybe_null only.
sql/sql_select.cc:
Outer joins cleanup: Remove TABLE::outer_join and use TABLE::maybe_null only.
sql/table.h:
Outer joins cleanup:
* Remove TABLE::outer_join and use TABLE::maybe_null only.
* Added comments.
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sql/table.h b/sql/table.h index 8240a3445ec..5d804a7837e 100644 --- a/sql/table.h +++ b/sql/table.h @@ -217,14 +217,18 @@ struct st_table { uint derived_select_number; int current_lock; /* Type of lock on table */ my_bool copy_blobs; /* copy_blobs when storing */ + + /* + 0 or JOIN_TYPE_{LEFT|RIGHT}. Currently this is only compared to 0. + If maybe_null !=0, this table is inner w.r.t. some outer join operation, + and null_row may be true. + */ + uint maybe_null; /* - Used in outer joins: if true, all columns are considered to have NULL - values, including columns declared as "not null". + If true, the current table row is considered to have all columns set to + NULL, including columns declared as "not null" (see maybe_null). */ my_bool null_row; - /* 0 or JOIN_TYPE_{LEFT|RIGHT}, same as TABLE_LIST::outer_join */ - my_bool outer_join; - my_bool maybe_null; /* true if (outer_join != 0) */ my_bool force_index; my_bool distinct,const_table,no_rows; my_bool key_read, no_keyread; |