Skip to content

Commit

Permalink
Better comment about TABLE::maybe_null
Browse files Browse the repository at this point in the history
  • Loading branch information
spetrunia committed Aug 6, 2020
1 parent ab578bd commit 85bd531
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions sql/table.h
Original file line number Diff line number Diff line change
Expand Up @@ -1291,9 +1291,16 @@ struct TABLE
/* number of select if it is derived table */
uint derived_select_number;
/*
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.
Possible values:
- 0 by default
- JOIN_TYPE_{LEFT|RIGHT} if the table is inner w.r.t an outer join
operation
- 1 if the SELECT has mixed_implicit_grouping=1. example:
select max(col1), col2 from t1. In this case, the query produces
one row with all columns having NULL values.
Interpetation: If maybe_null!=0, all fields of the table are considered
NULLable (and have NULL values when null_row=true)
*/
uint maybe_null;
int current_lock; /* Type of lock on table */
Expand Down

0 comments on commit 85bd531

Please sign in to comment.