~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.h

  • Committer: Brian Aker
  • Date: 2008-12-06 23:57:32 UTC
  • mfrom: (656.1.10 devel)
  • Revision ID: brian@tangent.org-20081206235732-jx228bczpvmxu8ww
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
                       virtual_column_info *vcol_info);
49
49
Create_field * new_create_field(Session *session, char *field_name, enum_field_types type,
50
50
                                char *length, char *decimals,
51
 
                                uint32_t type_modifier, 
 
51
                                uint32_t type_modifier,
52
52
                                Item *default_value, Item *on_update_value,
53
 
                                LEX_STRING *comment, char *change, 
 
53
                                LEX_STRING *comment, char *change,
54
54
                                List<String> *interval_list, CHARSET_INFO *cs,
55
55
                                virtual_column_info *vcol_info);
56
56
void store_position_for_column(const char *name);
85
85
  This enumeration type is used only by the function find_item_in_list
86
86
  to return the info on how an item has been resolved against a list
87
87
  of possibly aliased items.
88
 
  The item can be resolved: 
 
88
  The item can be resolved:
89
89
   - against an alias name of the list's element (RESOLVED_AGAINST_ALIAS)
90
90
   - against non-aliased field name of the list  (RESOLVED_WITH_NO_ALIAS)
91
91
   - against an aliased field name of the list   (RESOLVED_BEHIND_ALIAS)
92
92
   - ignoring the alias name in cases when SQL requires to ignore aliases
93
93
     (e.g. when the resolved field reference contains a table name or
94
 
     when the resolved item is an expression)   (RESOLVED_IGNORING_ALIAS)    
 
94
     when the resolved item is an expression)   (RESOLVED_IGNORING_ALIAS)
95
95
*/
96
96
enum enum_resolution_type {
97
97
  NOT_RESOLVED=0,
111
111
bool setup_tables(Session *session, Name_resolution_context *context,
112
112
                  List<TableList> *from_clause, TableList *tables,
113
113
                  TableList **leaves, bool select_insert);
114
 
bool setup_tables_and_check_access(Session *session, 
 
114
bool setup_tables_and_check_access(Session *session,
115
115
                                   Name_resolution_context *context,
116
 
                                   List<TableList> *from_clause, 
117
 
                                   TableList *tables, 
118
 
                                   TableList **leaves, 
 
116
                                   List<TableList> *from_clause,
 
117
                                   TableList *tables,
 
118
                                   TableList **leaves,
119
119
                                   bool select_insert);
120
120
int setup_wild(Session *session, TableList *tables, List<Item> &fields,
121
121
               List<Item> *sum_func_list, uint32_t wild_num);