~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Brian Aker
  • Date: 2009-01-23 06:19:11 UTC
  • mfrom: (779.1.29 devel)
  • mto: (779.3.3 devel)
  • mto: This revision was merged to the branch mainline in revision 811.
  • Revision ID: brian@tangent.org-20090123061911-59es83nxzlyvh5fi
Merge of Monty

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
}
3709
3709
 
3710
3710
static Field *
3711
3711
find_field_in_natural_join(Session *session, TableList *table_ref, const char *name,
3712
 
                           uint32_t length __attribute__((unused)),
3713
 
                           Item **ref __attribute__((unused)), bool register_tree_change __attribute__((unused)),
 
3712
                           uint32_t ,
 
3713
                           Item **, bool register_tree_change __attribute__((unused)),
3714
3714
                           TableList **actual_table)
3715
3715
{
3716
3716
  List_iterator_fast<Natural_join_column>
4818
4818
*/
4819
4819
 
4820
4820
static bool
4821
 
store_natural_using_join_columns(Session *session __attribute__((unused)),
 
4821
store_natural_using_join_columns(Session *,
4822
4822
                                 TableList *natural_using_join,
4823
4823
                                 TableList *table_ref_1,
4824
4824
                                 TableList *table_ref_2,
5144
5144
****************************************************************************/
5145
5145
 
5146
5146
int setup_wild(Session *session,
5147
 
               TableList *tables __attribute__((unused)),
 
5147
               TableList *,
5148
5148
               List<Item> &fields,
5149
5149
               List<Item> *sum_func_list,
5150
5150
               uint32_t wild_num)
5475
5475
bool
5476
5476
insert_fields(Session *session, Name_resolution_context *context, const char *db_name,
5477
5477
              const char *table_name, List_iterator<Item> *it,
5478
 
              bool any_privileges __attribute__((unused)))
 
5478
              bool )
5479
5479
{
5480
5480
  Field_iterator_table_ref field_iterator;
5481
5481
  bool found;
5635
5635
    false if all is OK
5636
5636
*/
5637
5637
 
5638
 
int setup_conds(Session *session, TableList *tables __attribute__((unused)),
 
5638
int setup_conds(Session *session, TableList *,
5639
5639
                TableList *leaves,
5640
5640
                COND **conds)
5641
5641
{
5849
5849
 
5850
5850
bool
5851
5851
fill_record(Session *session, Field **ptr, List<Item> &values,
5852
 
            bool ignore_errors __attribute__((unused)))
 
5852
            bool )
5853
5853
{
5854
5854
  List_iterator_fast<Item> v(values);
5855
5855
  Item *value;