~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/key.cc

  • Committer: Eric Herman
  • Date: 2008-12-06 19:42:46 UTC
  • mto: (656.1.6 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: eric@mysql.com-20081206194246-5cdexuu81i366eek
removed trailing whitespace with simple script:

for file in $(find . -name "*.c") $(find . -name "*.cc") $(find . -name "*.h"); do ruby -pe 'gsub(/\s+$/, $/)' < $file > $file.out; mv $file.out $file; done;

Show diffs side-by-side

added added

removed removed

Lines of Context:
264
264
  const unsigned char *key_end= key + key_length;;
265
265
 
266
266
  for (key_part=table->key_info[idx].key_part;
267
 
       key < key_end ; 
 
267
       key < key_end ;
268
268
       key_part++, key+= store_length)
269
269
  {
270
270
    uint32_t length;
272
272
 
273
273
    if (key_part->null_bit)
274
274
    {
275
 
      if (*key != test(table->record[0][key_part->null_offset] & 
 
275
      if (*key != test(table->record[0][key_part->null_offset] &
276
276
                       key_part->null_bit))
277
277
        return 1;
278
278
      if (*key)
314
314
/*
315
315
  unpack key-fields from record to some buffer.
316
316
 
317
 
  This is used mainly to get a good error message.  We temporary 
 
317
  This is used mainly to get a good error message.  We temporary
318
318
  change the column bitmap so that all columns are readable.
319
319
 
320
320
  @param
368
368
                                 char_length)) < key_part->length)
369
369
          tmp.length(charpos);
370
370
      }
371
 
      
 
371
 
372
372
      if (key_part->length < field->pack_length())
373
373
        tmp.length(cmin(tmp.length(),(uint32_t)key_part->length));
374
374
      to->append(tmp);