~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/rename.cc

  • Committer: Brian Aker
  • Date: 2009-05-22 22:09:30 UTC
  • mto: This revision was merged to the branch mainline in revision 1037.
  • Revision ID: brian@gaz-20090522220930-pwl91hefo5f4udzq
Fixed TableList to correctly construct (and removed memset() calls in
places).

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
*/
34
34
bool drizzle_rename_tables(Session *session, TableList *table_list, bool silent)
35
35
{
36
 
  bool error= 1;
37
 
  TableList *ren_table= 0;
 
36
  bool error= true;
 
37
  TableList *ren_table= NULL;
38
38
 
39
39
  /*
40
40
    Avoid problems with a rename on a table that we have locked or
116
116
*/
117
117
static TableList *reverse_table_list(TableList *table_list)
118
118
{
119
 
  TableList *prev= 0;
 
119
  TableList *prev= NULL;
120
120
 
121
121
  while (table_list)
122
122
  {