~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbxt/src/pbms_enabled.cc

retrieve data from the local cache

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
 *
101
101
                        continue;
102
102
                        
103
103
                // Get the blob record:
104
 
                blob_rec = (char *)row_buffer + field->offset(field->table->getInsertRecord());
 
104
                blob_rec = (char *)row_buffer + field->offset(field->table->record[0]);
105
105
                packlength = field->pack_length() - field->table->s->blob_ptr_size;
106
106
 
107
107
                memcpy(&blob, blob_rec +packlength, sizeof(char*));
157
157
                        continue;
158
158
                        
159
159
                // Get the blob record:
160
 
                blob_rec = (char *)row_buffer + field->offset(field->table->getInsertRecord());
 
160
                blob_rec = (char *)row_buffer + field->offset(field->table->record[0]);
161
161
                packlength = field->pack_length() - field->table->s->blob_ptr_size;
162
162
 
163
163
                length = field->get_length((uchar *)blob_rec);
241
241
         return ;
242
242
}
243
243
 
244
 
#elif defined(__WIN__)
245
 
 
246
 
// Remove linker warning 4221 about empty file
247
 
namespace { char dummy; };
248
 
 
249
244
#endif // PBMS_ENABLED