~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-05 11:30:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2395.
  • Revision ID: olafvdspek@gmail.com-20110805113037-qufc9s7ju4w18ize
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
1600
1600
        tables.table= from;
1601
1601
        tables.setTableName(from->getMutableShare()->getTableNameRef());
1602
1602
        tables.alias= tables.getTableName();
1603
 
        tables.setSchemaName(from->getMutableShare()->getSchemaName(), from->getMutableShare()->getSchemaNameSize());
 
1603
        tables.setSchemaName(from->getMutableShare()->getSchemaNameRef());
1604
1604
        error= 1;
1605
1605
 
1606
1606
        session->lex().select_lex.setup_ref_array(session, order_num);
1694
1694
 
1695
1695
    info.end_read_record();
1696
1696
    from->free_io_cache();
1697
 
    delete [] copy;                             // This is never 0
 
1697
    delete [] copy;
1698
1698
 
1699
1699
    if (to->cursor->ha_end_bulk_insert() && error <= 0)
1700
1700
    {
1723
1723
 
1724
1724
  if (to->cursor->ha_external_lock(session, F_UNLCK))
1725
1725
  {
1726
 
    error=1;
 
1726
    error= 1;
1727
1727
  }
1728
1728
 
1729
1729
  return error > 0 ? -1 : 0;
1735
1735
  if (table->getShare()->getType())
1736
1736
  {
1737
1737
    TableList tbl;
1738
 
    tbl.setSchemaName(identifier.getSchemaName().c_str(), identifier.getSchemaName().size());
 
1738
    tbl.setSchemaName(identifier.getSchemaName());
1739
1739
    tbl.alias= identifier.getTableName().c_str();
1740
1740
    tbl.setTableName(identifier.getTableName());
1741
1741