~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_table.cc

  • Committer: Brian Aker
  • Date: 2008-07-19 06:08:40 UTC
  • Revision ID: brian@tangent.org-20080719060840-edggt9u2ak1cq0x3
Partial fix for alter table 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1439
1439
      my_printf_error(ER_BAD_TABLE_ERROR, ER(ER_BAD_TABLE_ERROR), MYF(0),
1440
1440
                      wrong_tables.c_ptr());
1441
1441
    else
 
1442
    {
1442
1443
      my_message(ER_ROW_IS_REFERENCED, ER(ER_ROW_IS_REFERENCED), MYF(0));
 
1444
    }
1443
1445
    error= 1;
1444
1446
  }
1445
1447
 
5503
5505
    goto err;
5504
5506
  new_db_type= create_info->db_type;
5505
5507
 
5506
 
  if (new_db_type != old_db_type ||
 
5508
  if (new_db_type != old_db_type &&
5507
5509
      !table->file->can_switch_engines())
5508
5510
  {
 
5511
    assert(0);
5509
5512
    my_error(ER_ROW_IS_REFERENCED, MYF(0));
5510
5513
    goto err;
5511
5514
  }