~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_rename.cc

  • Committer: Brian Aker
  • Date: 2008-10-20 03:40:03 UTC
  • mto: (492.3.21 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: brian@tangent.org-20081020034003-t2dcnl0ayr2ymm8k
THD -> Session rename

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include <drizzled/server_includes.h>
20
20
#include <drizzled/drizzled_error_messages.h>
21
21
 
22
 
static TableList *rename_tables(THD *thd, TableList *table_list,
 
22
static TableList *rename_tables(Session *thd, TableList *table_list,
23
23
                                 bool skip_error);
24
24
 
25
25
static TableList *reverse_table_list(TableList *table_list);
29
29
  second entry is the new name.
30
30
*/
31
31
 
32
 
bool mysql_rename_tables(THD *thd, TableList *table_list, bool silent)
 
32
bool mysql_rename_tables(Session *thd, TableList *table_list, bool silent)
33
33
{
34
34
  bool error= 1;
35
35
  TableList *ren_table= 0;
151
151
*/
152
152
 
153
153
bool
154
 
do_rename(THD *thd, TableList *ren_table, char *new_db, char *new_table_name,
 
154
do_rename(Session *thd, TableList *ren_table, char *new_db, char *new_table_name,
155
155
          char *new_table_alias, bool skip_error)
156
156
{
157
157
  int rc= 1;
215
215
*/
216
216
 
217
217
static TableList *
218
 
rename_tables(THD *thd, TableList *table_list, bool skip_error)
 
218
rename_tables(Session *thd, TableList *table_list, bool skip_error)
219
219
{
220
220
  TableList *ren_table, *new_table;
221
221