~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Brian Aker
  • Date: 2009-01-25 02:52:05 UTC
  • mfrom: (801.1.4 testable)
  • Revision ID: brian@gir.tangent.org-20090125025205-zlahg6u6z0w95v64
Merge from Myself

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
 
68
68
 
69
69
extern "C" unsigned char *table_cache_key(const unsigned char *record, size_t *length,
70
 
                                  bool not_used __attribute__((unused)))
 
70
                                  bool )
71
71
{
72
72
  Table *entry=(Table*) record;
73
73
  *length= entry->s->table_cache_key.length;
149
149
*****************************************************************************/
150
150
 
151
151
extern "C" unsigned char *table_def_key(const unsigned char *record, size_t *length,
152
 
                                bool not_used __attribute__((unused)))
 
152
                                bool )
153
153
{
154
154
  TABLE_SHARE *entry=(TABLE_SHARE*) record;
155
155
  *length= entry->table_cache_key.length;
387
387
*/
388
388
 
389
389
void release_table_share(TABLE_SHARE *share,
390
 
                         enum release_type type __attribute__((unused)))
 
390
                         enum release_type )
391
391
{
392
392
  bool to_be_deleted= 0;
393
393
 
1263
1263
*/
1264
1264
 
1265
1265
void update_non_unique_table_error(TableList *update,
1266
 
                                   const char *operation __attribute__((unused)),
1267
 
                                   TableList *duplicate __attribute__((unused)))
 
1266
                                   const char *,
 
1267
                                   TableList *)
1268
1268
{
1269
1269
  my_error(ER_UPDATE_TABLE_USED, MYF(0), update->alias);
1270
1270
}
3701
3701
 
3702
3702
static Field *
3703
3703
find_field_in_natural_join(Session *session, TableList *table_ref, const char *name,
3704
 
                           uint32_t length __attribute__((unused)),
3705
 
                           Item **ref __attribute__((unused)), bool register_tree_change __attribute__((unused)),
 
3704
                           uint32_t ,
 
3705
                           Item **, bool register_tree_change __attribute__((unused)),
3706
3706
                           TableList **actual_table)
3707
3707
{
3708
3708
  List_iterator_fast<Natural_join_column>
4810
4810
*/
4811
4811
 
4812
4812
static bool
4813
 
store_natural_using_join_columns(Session *session __attribute__((unused)),
 
4813
store_natural_using_join_columns(Session *,
4814
4814
                                 TableList *natural_using_join,
4815
4815
                                 TableList *table_ref_1,
4816
4816
                                 TableList *table_ref_2,
5136
5136
****************************************************************************/
5137
5137
 
5138
5138
int setup_wild(Session *session,
5139
 
               TableList *tables __attribute__((unused)),
 
5139
               TableList *,
5140
5140
               List<Item> &fields,
5141
5141
               List<Item> *sum_func_list,
5142
5142
               uint32_t wild_num)
5467
5467
bool
5468
5468
insert_fields(Session *session, Name_resolution_context *context, const char *db_name,
5469
5469
              const char *table_name, List_iterator<Item> *it,
5470
 
              bool any_privileges __attribute__((unused)))
 
5470
              bool )
5471
5471
{
5472
5472
  Field_iterator_table_ref field_iterator;
5473
5473
  bool found;
5627
5627
    false if all is OK
5628
5628
*/
5629
5629
 
5630
 
int setup_conds(Session *session, TableList *tables __attribute__((unused)),
 
5630
int setup_conds(Session *session, TableList *,
5631
5631
                TableList *leaves,
5632
5632
                COND **conds)
5633
5633
{
5841
5841
 
5842
5842
bool
5843
5843
fill_record(Session *session, Field **ptr, List<Item> &values,
5844
 
            bool ignore_errors __attribute__((unused)))
 
5844
            bool )
5845
5845
{
5846
5846
  List_iterator_fast<Item> v(values);
5847
5847
  Item *value;