~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: lbieber
  • Date: 2010-10-02 19:48:35 UTC
  • mfrom: (1730.6.19 drizzle-make-lcov)
  • Revision ID: lbieber@orisndriz08-20101002194835-q5zd9qc4lvx1xnfo
Merge Hartmut - clean up lex, now require flex to build, also "make lcov" improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2009 PrimeBase Technologies GmbH, Germany
 
1
/* Copyright (c) 2009 PrimeBase Technologies GmbH, Germany
2
2
 *
3
3
 * PrimeBase Media Stream for MySQL
4
4
 *
14
14
 *
15
15
 * You should have received a copy of the GNU General Public License
16
16
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 
17
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
18
 *
19
19
 * Barry Leslie
20
20
 *
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);