You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug#29955295 NDBCLUSTER FUNCTION PARAMETER SHADOWS HANDLER::TABLE
Compiler warning showing that the parameter "table" of functions
ha_ndbcluster::unpack_record_and_set_generated_fields() and
ha_ndbcluster::get_partition_row_type() hides the handler::table member.
/home/mblaudd/mysql/trunk/sql/ha_ndbcluster.cc:7094:10: warning:
parameter
'table' shadows member
inherited from type 'handler' [-Wshadow-field]
TABLE *table,
^
/home/mblaudd/mysql/trunk/sql/handler.h:3990:10: note: declared here
TABLE *table; /* The current open table */
^
/home/mblaudd/mysql/trunk/sql/ha_ndbcluster.cc:16609:22: warning:
parameter
'table' shadows member
inherited from type 'handler' [-Wshadow-field]
const dd::Table *table MY_ATTRIBUTE((unused)),
^
/home/mblaudd/mysql/trunk/sql/handler.h:3990:10: note: declared here
TABLE *table; /* The current open table */
^
Fix ha_ndbcluster::unpack_record_and_set_generated_fields() by removing
parameter and use handler::table directly.
Fix ha_ndbcluster::get_partition_row_type() by renaming the dd::Table
parameter to "table_def" like in other functions taking a dd::Table.
Also fix same problem in ha_ndbcluster::get_fk_data_for_truncate() by
renameing parameter to "ndbtab".
Change-Id: I623e967da6f6ca9e623667db0c30ec9790eb3a87
0 commit comments