~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_select.cc

  • Committer: Brian Aker
  • Date: 2009-10-16 10:27:33 UTC
  • mfrom: (1183.1.4 merge)
  • Revision ID: brian@gaz-20091016102733-b10po5oup0hjlilh
MergeĀ EngineĀ changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
317
317
/**
318
318
  An entry point to single-unit select (a select without UNION).
319
319
 
320
 
  @param session                  thread handler
 
320
  @param session                  thread Cursor
321
321
  @param rref_pointer_array   a reference to ref_pointer_array of
322
322
                              the top-level select_lex for this query
323
323
  @param tables               list of all tables used in this query.
2229
2229
    can get more freedom in performing join operations.
2230
2230
    Althogh we don't use this property now, it probably makes sense to use
2231
2231
    it in the future.
2232
 
  @param session                      Thread handler
 
2232
  @param session                      Thread Cursor
2233
2233
  @param cond                condition to build the multiple equalities for
2234
2234
  @param inherited           path to all inherited multiple equality items
2235
2235
  @param join_list           list of join tables to which the condition
5203
5203
 
5204
5204
  SYNOPSIS
5205
5205
   create_sort_index()
5206
 
     session            Thread handler
 
5206
     session            Thread Cursor
5207
5207
     tab                Table to sort (in join structure)
5208
5208
     order              How table should be sorted
5209
5209
     filesort_limit     Max number of rows that needs to be sorted
5328
5328
 
5329
5329
int remove_dup_with_compare(Session *session, Table *table, Field **first_field, uint32_t offset, Item *having)
5330
5330
{
5331
 
  handler *file=table->file;
 
5331
  Cursor *file=table->file;
5332
5332
  char *org_record,*new_record;
5333
5333
  unsigned char *record;
5334
5334
  int error;
5423
5423
{
5424
5424
  unsigned char *key_buffer, *key_pos, *record=table->record[0];
5425
5425
  int error;
5426
 
  handler *file= table->file;
 
5426
  Cursor *file= table->file;
5427
5427
  uint32_t extra_length= ALIGN_SIZE(key_length)-key_length;
5428
5428
  uint32_t *field_lengths,*field_length;
5429
5429
  HASH hash;
5804
5804
/**
5805
5805
  Intitialize the GROUP BY list.
5806
5806
 
5807
 
  @param session                        Thread handler
 
5807
  @param session                        Thread Cursor
5808
5808
  @param ref_pointer_array      We store references to all fields that was
5809
5809
                               not in 'fields' here.
5810
5810
  @param fields         All fields in the select part. Any item in
6374
6374
/**
6375
6375
  Call ::setup for all sum functions.
6376
6376
 
6377
 
  @param session           thread handler
 
6377
  @param session           thread Cursor
6378
6378
  @param func_ptr      sum function list
6379
6379
 
6380
6380
  @retval
7090
7090
 
7091
7091
/**
7092
7092
  Print joins from the FROM clause.
7093
 
  @param session     thread handler
 
7093
  @param session     thread Cursor
7094
7094
  @param str     string where table should be printed
7095
7095
  @param tables  list of tables in join
7096
7096
  @query_type    type of the query is being generated