~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/data/data0data.c

  • Committer: Stewart Smith
  • Date: 2010-11-03 03:28:23 UTC
  • mto: (1902.1.1 build) (1910.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1903.
  • Revision ID: stewart@flamingspork.com-20101103032823-44k21f0njmk97omr
fix docs warning: Title underline (and overline) is too short in brief_history_of_drizzle.rst

Show diffs side-by-side

added added

removed removed

Lines of Context:
367
367
        prtype = dtype_get_prtype(dfield_get_type(dfield));
368
368
 
369
369
        switch (dtype_get_mtype(dfield_get_type(dfield))) {
370
 
                ib_id_t id;
 
370
                dulint  id;
371
371
        case DATA_INT:
372
372
                switch (len) {
373
373
                        ulint   val;
419
419
 
420
420
                case 6:
421
421
                        id = mach_read_from_6(data);
422
 
                        fprintf(stderr, "%llu", (ullint) id);
 
422
                        fprintf(stderr, "{%lu %lu}",
 
423
                                ut_dulint_get_high(id),
 
424
                                ut_dulint_get_low(id));
423
425
                        break;
424
426
 
425
427
                case 7:
426
428
                        id = mach_read_from_7(data);
427
 
                        fprintf(stderr, "%llu", (ullint) id);
 
429
                        fprintf(stderr, "{%lu %lu}",
 
430
                                ut_dulint_get_high(id),
 
431
                                ut_dulint_get_low(id));
428
432
                        break;
429
433
                case 8:
430
434
                        id = mach_read_from_8(data);
431
 
                        fprintf(stderr, "%llu", (ullint) id);
 
435
                        fprintf(stderr, "{%lu %lu}",
 
436
                                ut_dulint_get_high(id),
 
437
                                ut_dulint_get_low(id));
432
438
                        break;
433
439
                default:
434
440
                        goto print_hex;
440
446
                case DATA_TRX_ID:
441
447
                        id = mach_read_from_6(data);
442
448
 
443
 
                        fprintf(stderr, "trx_id " TRX_ID_FMT, id);
 
449
                        fprintf(stderr, "trx_id " TRX_ID_FMT,
 
450
                                TRX_ID_PREP_PRINTF(id));
444
451
                        break;
445
452
 
446
453
                case DATA_ROLL_PTR:
447
454
                        id = mach_read_from_7(data);
448
455
 
449
 
                        fprintf(stderr, "roll_ptr " TRX_ID_FMT, id);
 
456
                        fprintf(stderr, "roll_ptr {%lu %lu}",
 
457
                                ut_dulint_get_high(id), ut_dulint_get_low(id));
450
458
                        break;
451
459
 
452
460
                case DATA_ROW_ID:
453
461
                        id = mach_read_from_6(data);
454
462
 
455
 
                        fprintf(stderr, "row_id " TRX_ID_FMT, id);
 
463
                        fprintf(stderr, "row_id {%lu %lu}",
 
464
                                ut_dulint_get_high(id), ut_dulint_get_low(id));
456
465
                        break;
457
466
 
458
467
                default:
459
 
                        id = mach_ull_read_compressed(data);
 
468
                        id = mach_dulint_read_compressed(data);
460
469
 
461
 
                        fprintf(stderr, "mix_id " TRX_ID_FMT, id);
 
470
                        fprintf(stderr, "mix_id {%lu %lu}",
 
471
                                ut_dulint_get_high(id), ut_dulint_get_low(id));
462
472
                }
463
473
                break;
464
474
 
658
668
                                goto skip_field;
659
669
                        }
660
670
 
661
 
                        /* In DYNAMIC and COMPRESSED format, store
662
 
                        locally any non-BLOB columns whose maximum
663
 
                        length does not exceed 256 bytes.  This is
664
 
                        because there is no room for the "external
665
 
                        storage" flag when the maximum length is 255
666
 
                        bytes or less. This restriction trivially
667
 
                        holds in REDUNDANT and COMPACT format, because
668
 
                        there we always store locally columns whose
669
 
                        length is up to local_len == 788 bytes.
670
 
                        @see rec_init_offsets_comp_ordinary */
671
 
                        if (ifield->col->mtype != DATA_BLOB
672
 
                            && ifield->col->len < 256) {
673
 
                                goto skip_field;
674
 
                        }
675
 
 
676
 
                        /* In DYNAMIC and COMPRESSED format, store
677
 
                        locally any non-BLOB columns whose maximum
678
 
                        length does not exceed 256 bytes.  This is
679
 
                        because there is no room for the "external
680
 
                        storage" flag when the maximum length is 255
681
 
                        bytes or less. This restriction trivially
682
 
                        holds in REDUNDANT and COMPACT format, because
683
 
                        there we always store locally columns whose
684
 
                        length is up to local_len == 788 bytes.
685
 
                        @see rec_init_offsets_comp_ordinary */
686
 
                        if (ifield->col->mtype != DATA_BLOB
687
 
                            && ifield->col->len < 256) {
688
 
                                goto skip_field;
689
 
                        }
690
 
 
691
 
                        /* In DYNAMIC and COMPRESSED format, store
692
 
                        locally any non-BLOB columns whose maximum
693
 
                        length does not exceed 256 bytes.  This is
694
 
                        because there is no room for the "external
695
 
                        storage" flag when the maximum length is 255
696
 
                        bytes or less. This restriction trivially
697
 
                        holds in REDUNDANT and COMPACT format, because
698
 
                        there we always store locally columns whose
699
 
                        length is up to local_len == 788 bytes.
700
 
                        @see rec_init_offsets_comp_ordinary */
701
 
                        if (ifield->col->mtype != DATA_BLOB
702
 
                            && ifield->col->len < 256) {
703
 
                                goto skip_field;
704
 
                        }
705
 
 
706
671
                        longest_i = i;
707
672
                        longest = savings;
708
673