~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_class.cc

  • Committer: Brian Aker
  • Date: 2008-08-19 21:53:32 UTC
  • Revision ID: brian@tangent.org-20080819215332-yoofgyn48ydie0ds
Refactor of Table methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2678
2678
    Pack records into format for transfer. We are allocating more
2679
2679
    memory than needed, but that doesn't matter.
2680
2680
  */
2681
 
  Row_data_memory memory(table, max_row_length(table, record));
 
2681
  Row_data_memory memory(table, table->max_row_length(record));
2682
2682
  if (!memory.has_memory())
2683
2683
    return HA_ERR_OUT_OF_MEM;
2684
2684
 
2702
2702
2703
2703
  assert(current_stmt_binlog_row_based && mysql_bin_log.is_open());
2704
2704
 
2705
 
  size_t const before_maxlen = max_row_length(table, before_record);
2706
 
  size_t const after_maxlen  = max_row_length(table, after_record);
 
2705
  size_t const before_maxlen = table->max_row_length(before_record);
 
2706
  size_t const after_maxlen  = table->max_row_length(after_record);
2707
2707
 
2708
2708
  Row_data_memory row_data(table, before_maxlen, after_maxlen);
2709
2709
  if (!row_data.has_memory())
2739
2739
     Pack records into format for transfer. We are allocating more
2740
2740
     memory than needed, but that doesn't matter.
2741
2741
  */
2742
 
  Row_data_memory memory(table, max_row_length(table, record));
 
2742
  Row_data_memory memory(table, table->max_row_length(record));
2743
2743
  if (unlikely(!memory.has_memory()))
2744
2744
    return HA_ERR_OUT_OF_MEM;
2745
2745