~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

Cleaned up int/date related store functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5335
5335
    if (!t)
5336
5336
    {
5337
5337
      /* Table didn't exist */
5338
 
      protocol->store_null();
 
5338
      protocol->store();
5339
5339
      session->clear_error();
5340
5340
    }
5341
5341
    else
5345
5345
        protocol->store((uint64_t)t->file->checksum());
5346
5346
      else if (!(t->file->ha_table_flags() & HA_HAS_CHECKSUM) &&
5347
5347
               (check_opt->flags & T_QUICK))
5348
 
        protocol->store_null();
 
5348
        protocol->store();
5349
5349
      else
5350
5350
      {
5351
5351
        /* calculating table's checksum */
5355
5355
        t->use_all_columns();
5356
5356
 
5357
5357
        if (t->file->ha_rnd_init(1))
5358
 
          protocol->store_null();
 
5358
          protocol->store();
5359
5359
        else
5360
5360
        {
5361
5361
          for (;;)