~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/table.cc

  • Committer: Monty Taylor
  • Date: 2008-07-09 15:52:52 UTC
  • mto: (77.6.1 glibclient-merge)
  • mto: This revision was merged to the branch mainline in revision 112.
  • Revision ID: monty@inaugust.com-20080709155252-lnzmxxje1g40z3a7
Warning fixes. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
2228
2228
    given a buffer with a key value, and a map of keyparts
2229
2229
    that are present in this value, returns the length of the value
2230
2230
*/
2231
 
uint calculate_key_len(TABLE *table, uint key, const uchar *buf,
 
2231
uint calculate_key_len(TABLE *table, uint key,
 
2232
                       const uchar *buf __attribute__((__unused__)),
2232
2233
                       key_part_map keypart_map)
2233
2234
{
2234
2235
  /* works only with key prefixes */
2902
2903
  return create_view_field(thd, view, &ptr->item, ptr->name);
2903
2904
}
2904
2905
 
2905
 
Item *create_view_field(THD *thd, TABLE_LIST *view, Item **field_ref,
2906
 
                        const char *name)
 
2906
Item *create_view_field(THD *thd __attribute__((__unused__)),
 
2907
                        TABLE_LIST *view, Item **field_ref,
 
2908
                        const char *name __attribute__((__unused__)))
2907
2909
{
2908
2910
  if (view->schema_table_reformed)
2909
2911
  {
3658
3660
  path        path to file
3659
3661
 
3660
3662
  RETURN
3661
 
  FRMTYPE_ERROR       error                
3662
 
  FRMTYPE_TABLE       table                
3663
 
 */    
 
3663
  FRMTYPE_ERROR       error
 
3664
  FRMTYPE_TABLE       table
 
3665
*/
3664
3666
 
3665
 
frm_type_enum mysql_frm_type(THD *thd, char *path, enum legacy_db_type *dbt)
3666
 
{   
 
3667
frm_type_enum mysql_frm_type(THD *thd __attribute__((__unused__)),
 
3668
                             char *path, enum legacy_db_type *dbt)
 
3669
{
3667
3670
  File file;
3668
3671
  uchar header[10];     /* This should be optimized */
3669
3672
  int error;