~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.h

  • Committer: Brian Aker
  • Date: 2010-10-27 21:19:18 UTC
  • mto: This revision was merged to the branch mainline in revision 1886.
  • Revision ID: brian@tangent.org-20101027211918-1xnp5koya8stw35j
Additional documenation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
class TableShare;
56
56
class Select_Lex_Unit;
57
57
class ForeignKeyInfo;
58
 
struct Order;
 
58
struct order_st;
59
59
 
60
60
class Item;
61
61
 
475
475
    or partitioned.
476
476
 
477
477
    @note that one can NOT rely on table->in_use in store_lock().  It may
478
 
    refer to a different thread if called from abortLockForThread().
 
478
    refer to a different thread if called from mysql_lock_abort_for_thread().
479
479
 
480
480
    @note If the table is MERGE, store_lock() can return less locks
481
481
    than lock_count() claimed. This can happen when the MERGE children
522
522
    the corresponding 'ha_*' method above.
523
523
  */
524
524
 
525
 
  virtual int open(const char *, int , uint32_t ) { assert(0); return -1; }
 
525
  virtual int open(const char *, int , uint32_t ) { assert(0); return -1; };
526
526
  virtual int doOpen(const TableIdentifier &identifier, int mode, uint32_t test_if_locked);
527
527
  virtual int doStartIndexScan(uint32_t idx, bool)
528
528
  { active_index= idx; return 0; }
583
583
  {
584
584
    return 0;
585
585
  }
586
 
  virtual void release_auto_increment(void) { return; }
 
586
  virtual void release_auto_increment(void) { return; };
587
587
  /** admin commands - called from mysql_admin_table */
588
588
  virtual int check(Session *)
589
589
  { return HA_ADMIN_NOT_IMPLEMENTED; }
640
640
void ha_init_errors(void);
641
641
 
642
642
class SortField;
643
 
SortField *make_unireg_sortorder(Order *order, uint32_t *length,
 
643
SortField *make_unireg_sortorder(order_st *order, uint32_t *length,
644
644
                                 SortField *sortorder);
645
645
int setup_order(Session *session, Item **ref_pointer_array, TableList *tables,
646
 
                List<Item> &fields, List <Item> &all_fields, Order *order);
 
646
                List<Item> &fields, List <Item> &all_fields, order_st *order);
647
647
int setup_group(Session *session, Item **ref_pointer_array, TableList *tables,
648
 
                List<Item> &fields, List<Item> &all_fields, Order *order,
 
648
                List<Item> &fields, List<Item> &all_fields, order_st *order,
649
649
                bool *hidden_group_fields);
650
650
bool fix_inner_refs(Session *session, List<Item> &all_fields, Select_Lex *select,
651
651
                    Item **ref_pointer_array);
664
664
                         int *timestamps, int *timestamps_with_niladic);
665
665
 
666
666
bool mysql_create_table(Session *session,
667
 
                        const TableIdentifier &identifier,
 
667
                        TableIdentifier &identifier,
668
668
                        HA_CREATE_INFO *create_info,
669
669
                        message::Table &table_proto,
670
670
                        AlterInfo *alter_info,
672
672
                        bool is_if_not_exists);
673
673
 
674
674
bool mysql_create_table_no_lock(Session *session,
675
 
                                const TableIdentifier &identifier,
 
675
                                TableIdentifier &identifier,
676
676
                                HA_CREATE_INFO *create_info,
677
677
                                message::Table &table_proto,
678
678
                                AlterInfo *alter_info,
680
680
                                bool is_if_not_exists);
681
681
 
682
682
bool mysql_create_like_table(Session* session,
683
 
                             const TableIdentifier &destination_identifier,
 
683
                             TableIdentifier &destination_identifier,
684
684
                             TableList* table, TableList* src_table,
685
685
                             message::Table &create_table_proto,
686
686
                             bool is_if_not_exists,
688
688
 
689
689
bool mysql_rename_table(Session &session,
690
690
                        plugin::StorageEngine *base,
691
 
                        const TableIdentifier &old_identifier,
692
 
                        const TableIdentifier &new_identifier);
 
691
                        TableIdentifier &old_identifier,
 
692
                        TableIdentifier &new_identifier);
693
693
 
694
694
bool mysql_prepare_update(Session *session, TableList *table_list,
695
 
                          Item **conds, uint32_t order_num, Order *order);
 
695
                          Item **conds, uint32_t order_num, order_st *order);
696
696
int mysql_update(Session *session,TableList *tables,List<Item> &fields,
697
697
                 List<Item> &values,COND *conds,
698
 
                 uint32_t order_num, Order *order, ha_rows limit,
 
698
                 uint32_t order_num, order_st *order, ha_rows limit,
699
699
                 enum enum_duplicates handle_duplicates, bool ignore);
700
700
bool mysql_prepare_insert(Session *session, TableList *table_list, Table *table,
701
701
                          List<Item> &fields, List_item *values,