~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/events_ms.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:
58
58
                field = data.table.getBlobFieldAt(i);
59
59
 
60
60
                // Get the blob record:
61
 
                blob_rec = new_row + field->offset(data.table.record[0]);
 
61
                blob_rec = new_row + field->offset(data.table.getInsertRecord());
62
62
                packlength = field->pack_length() - data.table.getBlobPtrSize();
63
63
 
64
64
                length = field->get_length(blob_rec);
136
136
                field = data.table.getBlobFieldAt(i);
137
137
 
138
138
                // Get the blob record:
139
 
                blob_rec = (char *)old_row + field->offset(data.table.record[0]);
 
139
                blob_rec = (char *)old_row + field->offset(data.table.getInsertRecord());
140
140
                packlength = field->pack_length() - data.table.getBlobPtrSize();
141
141
 
142
142
                length = field->get_length((unsigned char *)blob_rec);
286
286
                // Get the blob record:
287
287
                packlength = field->pack_length() - data.table.getBlobPtrSize();
288
288
 
289
 
                blob_rec = (unsigned char *)data.row + field->offset(data.table.record[0]);
 
289
                blob_rec = (unsigned char *)data.row + field->offset(data.table.getInsertRecord());
290
290
                length = field->get_length(blob_rec);
291
291
                memcpy(&blob_url, blob_rec +packlength, sizeof(char*));
292
292
 
343
343
                // Check to see if the BLOB data was updated.
344
344
 
345
345
                // Get the blob records:
346
 
                field_offset = field->offset(data.table.record[0]);
 
346
                field_offset = field->offset(data.table.getInsertRecord());
347
347
                packlength = field->pack_length() - data.table.getBlobPtrSize();
348
348
 
349
349
                if (new_null) {
397
397
                
398
398
                if ( (new_null == false) || (old_null == false)) {
399
399
                        const unsigned char *blob_rec;                  
400
 
                        size_t field_offset = field->offset(data.table.record[0]);
 
400
                        size_t field_offset = field->offset(data.table.getInsertRecord());
401
401
                        size_t packlength = field->pack_length() - data.table.getBlobPtrSize();
402
402
                        char *old_blob_url, *new_blob_url;
403
403
                        
440
440
                // Get the blob record:
441
441
                packlength = field->pack_length() - data.table.getBlobPtrSize();
442
442
 
443
 
                blob_rec = data.row + field->offset(data.table.record[0]);
 
443
                blob_rec = data.row + field->offset(data.table.getInsertRecord());
444
444
                length = field->get_length(blob_rec);
445
445
                memcpy(&blob_url, blob_rec +packlength, sizeof(char*));
446
446