~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_share.cc

  • Committer: Brian Aker
  • Date: 2010-10-15 01:52:41 UTC
  • mfrom: (1843.6.2 tmp-trunk)
  • Revision ID: brian@tangent.org-20101015015241-sj2gz9dfncd8483b
Merge in shuffle for table in creation (this patch needs to go in before a
few others in order to preserve the correct behavior).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1337
1337
    }
1338
1338
 
1339
1339
 
1340
 
    Table temp_table; /* Use this so that BLOB DEFAULT '' works */
1341
 
    temp_table.setShare(this);
1342
 
    temp_table.in_use= &session;
1343
 
    temp_table.getMutableShare()->db_low_byte_first= true; //Cursor->low_byte_first();
1344
 
    temp_table.getMutableShare()->blob_ptr_size= portable_sizeof_char_ptr;
 
1340
    db_low_byte_first= true; //Cursor->low_byte_first();
 
1341
    blob_ptr_size= portable_sizeof_char_ptr;
1345
1342
 
1346
1343
    uint32_t field_length= 0; //Assignment is for compiler complaint.
1347
1344
 
1445
1442
 
1446
1443
    field[fieldnr]= f;
1447
1444
 
 
1445
    // This needs to go, we should be setting the "use" on the field so that
 
1446
    // it does not reference the share/table.
 
1447
    Table temp_table; /* Use this so that BLOB DEFAULT '' works */
 
1448
    temp_table.setShare(this);
 
1449
    temp_table.in_use= &session;
 
1450
 
1448
1451
    f->init(&temp_table); /* blob default values need table obj */
1449
1452
 
1450
1453
    if (! (f->flags & NOT_NULL_FLAG))