~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/TransTest.cc

  • Committer: Brian Aker
  • Date: 2010-07-30 20:31:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1679.
  • Revision ID: brian@gaz-20100730203119-89g2ye4zwnvcacxg
First pass in encapsulating row

Show diffs side-by-side

added added

removed removed

Lines of Context:
523
523
        if (log_row_cnt == ref_row_cnt) {
524
524
                for ( i = 0; i < log_row_cnt; i++) {
525
525
                        l_record = mysql_fetch_row(l_results);
526
 
                        tab_id = atol(l_record[1]);
 
526
                        tab_id = atol(l_getUpdateRecord());
527
527
                        r_record = mysql_fetch_row(r_results[tab_id-1]);                
528
 
                        if ((atol(l_record[0]) != atol(r_record[0])) ||
529
 
                                (atol(l_record[1]) != atol(r_record[1])) ||
 
528
                        if ((atol(l_getInsertRecord()) != atol(r_getInsertRecord())) ||
 
529
                                (atol(l_getUpdateRecord()) != atol(r_getUpdateRecord())) ||
530
530
                                (atol(l_record[2]) != atol(r_record[2]))) {
531
531
                                
532
532
                                printf("verify_database() Failed: in row %d, tab_id %d\n", i+1, tab_id);
533
 
                                printf("field 1:  %d =? %d\n", atol(l_record[0]), atol(r_record[0]));
534
 
                                printf("field 2:  %d =? %d\n", atol(l_record[1]), atol(r_record[1]));
 
533
                                printf("field 1:  %d =? %d\n", atol(l_getInsertRecord()), atol(r_getInsertRecord()));
 
534
                                printf("field 2:  %d =? %d\n", atol(l_getUpdateRecord()), atol(r_getUpdateRecord()));
535
535
                                printf("field 3:  %d =? %d\n", atol(l_record[2]), atol(r_record[2]));
536
536
                                goto done;
537
537
                        }
716
716
                                                mysql_data_seek(results, rand()%cnt);
717
717
                                                record = mysql_fetch_row(results);
718
718
                                                        
719
 
                                                blob_ref_id = atol(record[0]);
 
719
                                                blob_ref_id = atol(getInsertRecord());
720
720
                                                blob_id = atol(record[2]);
721
721
                                                
722
722
                                                sprintf(stmt, "DELETE FROM "REF_TABLE" WHERE blob_ref = %"PRIu64" AND blob_id = %"PRIu64"", tab_id, blob_ref_id, blob_id);